Skip to content

Commit d50a73b

Browse files
committed
mypy
1 parent 4609c89 commit d50a73b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

ufl/algorithms/apply_restrictions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def __init__(
5050
self.current_restriction: Literal["+", "-"] | None = side
5151
self.default_restrictions = default_restrictions
5252
# Caches for propagating the restriction with map_expr_dag
53-
self.vcaches = {"+": {}, "-": {}}
54-
self.rcaches = {"+": {}, "-": {}}
53+
self.vcaches: dict[Literal["+", "-"], dict] = {"+": {}, "-": {}}
54+
self.rcaches: dict[Literal["+", "-"], dict] = {"+": {}, "-": {}}
5555
if self.current_restriction is None:
5656
self._rp = {
5757
"+": RestrictionPropagator("+", default_restrictions),

ufl/domain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def join_domains(domains: Sequence[AbstractDomain], expand_mesh_sequence: bool =
384384
# TODO: Move these to an analysis module?
385385

386386

387-
def extract_domains(expr: Expr | Form, expand_mesh_sequence: bool = True) -> tuple[AbstractDomain]:
387+
def extract_domains(expr: Expr | Form, expand_mesh_sequence: bool = True) -> tuple[AbstractDomain, ...]:
388388
"""Return all domains expression is defined on.
389389
390390
Args:

ufl/integral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(
7171
else:
7272
self._extra_domain_integral_type_map = {
7373
d: extra_domain_integral_type_map[d]
74-
for d in sort_domains(extra_domain_integral_type_map.keys())
74+
for d in sort_domains(tuple(extra_domain_integral_type_map.keys()))
7575
}
7676

7777
def reconstruct(

0 commit comments

Comments
 (0)