Skip to content

Commit

Permalink
fixup! fix(mypy): fix errors after pymbolic typing additions
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 13, 2024
1 parent 707dec3 commit 2140d25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pytential/symbolic/mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ def __init__(self, default_target, default_source):
self.default_target = default_target

def map_common_subexpression_uncached(self, expr) -> ExpressionT:
return super().map_common_subexpression(expr)
# Mypy 1.13 complains about this:
# error: Too few arguments for "map_common_subexpression" of "IdentityMapper" [call-arg] # noqa: E501
# error: Argument 1 to "map_common_subexpression" of "IdentityMapper" has incompatible type "LocationTagger"; expected "IdentityMapper[P]" [arg-type] # noqa: E501
# This seems spurious?
return IdentityMapper.map_common_subexpression(self, expr) # type: ignore[arg-type, call-arg]

def _default_dofdesc(self, dofdesc):
if dofdesc.geometry is None:
Expand Down

0 comments on commit 2140d25

Please sign in to comment.