Skip to content

Commit e6e1df9

Browse files
authored
typing (#3961)
1 parent 5a79609 commit e6e1df9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

python/dolfinx/fem/function.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ def __init__(
133133
# Get MPI communicator
134134
if comm is None:
135135
try:
136-
mesh = ufl.domain.extract_unique_domain(e).ufl_cargo()
136+
domain = ufl.domain.extract_unique_domain(e)
137+
assert isinstance(domain, ufl.Mesh)
138+
mesh = domain.ufl_cargo()
137139
comm = mesh.comm
138140
except AttributeError:
139141
print(

0 commit comments

Comments
 (0)