diff --git a/pytential/symbolic/mappers.py b/pytential/symbolic/mappers.py index 69c5d4c3f..13f3e78d1 100644 --- a/pytential/symbolic/mappers.py +++ b/pytential/symbolic/mappers.py @@ -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: