@@ -626,7 +626,7 @@ class IsShapeClass(DiscretizationProperty):
626626 # FIXME: this is added for backwards compatibility with pre-dataclass expressions
627627 def __init__ (self , shape : mp .Shape , dofdesc : DOFDescriptor ) -> None :
628628 object .__setattr__ (self , "shape" , shape )
629- super ().__init__ (dofdesc ) # type: ignore[arg-type]
629+ super ().__init__ (dofdesc )
630630
631631
632632@expr_dataclass ()
@@ -648,7 +648,7 @@ def __init__(self,
648648 ambient_axis : int ,
649649 dofdesc : DOFDescriptor ) -> None :
650650 object .__setattr__ (self , "ambient_axis" , ambient_axis )
651- super ().__init__ (dofdesc ) # type: ignore[arg-type]
651+ super ().__init__ (dofdesc )
652652
653653
654654def nodes (ambient_dim : int , dofdesc : DOFDescriptorLike = None ):
@@ -695,9 +695,7 @@ def __new__(cls,
695695 def make_op (operand_i ):
696696 return cls (ref_axes , operand_i , as_dofdesc (dofdesc ))
697697
698- # FIXME: mypy is right: new should return `cls` instances and we're
699- # abusing it to vectorize the call like this.
700- return componentwise (make_op , operand ) # type: ignore[return-value]
698+ return componentwise (make_op , operand )
701699 else :
702700 return DiscretizationProperty .__new__ (cls )
703701
@@ -731,7 +729,7 @@ def __init__(self,
731729
732730 object .__setattr__ (self , "ref_axes" , ref_axes )
733731 object .__setattr__ (self , "operand" , operand )
734- super ().__init__ (dofdesc ) # type: ignore[arg-type]
732+ super ().__init__ (dofdesc )
735733
736734
737735@for_each_expression
@@ -1363,7 +1361,7 @@ def __new__(cls,
13631361 to_dd = as_dofdesc (to_dd )
13641362
13651363 if from_dd == to_dd :
1366- return operand # type: ignore[return-value]
1364+ return operand
13671365
13681366 if isinstance (operand , np .ndarray | MultiVector ):
13691367 warn (f"Passing { type (operand )} directly to { cls .__name__ !r} "
@@ -1374,7 +1372,7 @@ def __new__(cls,
13741372 def make_op (operand_i ):
13751373 return cls (from_dd , to_dd , operand_i )
13761374
1377- return componentwise (make_op , operand ) # type: ignore[return-value]
1375+ return componentwise (make_op , operand )
13781376 else :
13791377 return ExpressionNode .__new__ (cls )
13801378
@@ -1439,7 +1437,7 @@ def __new__(cls,
14391437 def make_op (operand_i ):
14401438 return cls (operand_i )
14411439
1442- return componentwise (make_op , operand ) # type: ignore[return-value]
1440+ return componentwise (make_op , operand )
14431441 else :
14441442 return ExpressionNode .__new__ (cls )
14451443
@@ -1525,7 +1523,7 @@ def __new__(cls,
15251523 def make_op (operand_i ):
15261524 return cls (operand_i , as_dofdesc (dofdesc ))
15271525
1528- return componentwise (make_op , operand ) # type: ignore[return-value]
1526+ return componentwise (make_op , operand )
15291527 else :
15301528 return ExpressionNode .__new__ (cls )
15311529
0 commit comments