@@ -215,38 +215,38 @@ def _getitem(
215215 )
216216 if hasattr (array , "_longitudinal_type" ):
217217 longitudinal = array ._longitudinal_type .ObjectClass (
218- * (out [x ] for x in _coordinate_class_to_names [_ltype (array )]) # type: ignore[arg-type]
218+ * (out [x ] for x in _coordinate_class_to_names [_ltype (array )])
219219 )
220220 if hasattr (array , "_temporal_type" ):
221221 temporal = array ._temporal_type .ObjectClass (
222- * (out [x ] for x in _coordinate_class_to_names [_ttype (array )]) # type: ignore[arg-type]
222+ * (out [x ] for x in _coordinate_class_to_names [_ttype (array )])
223223 )
224224 if temporal is not None :
225225 return array .ObjectClass (
226226 azimuthal = azimuthal ,
227- longitudinal = longitudinal , # type: ignore[arg-type, return-value ]
227+ longitudinal = longitudinal , # type: ignore[arg-type]
228228 temporal = temporal , # type: ignore[arg-type]
229229 )
230230 elif longitudinal is not None :
231- return array .ObjectClass (azimuthal = azimuthal , longitudinal = longitudinal ) # type: ignore[arg-type, return-value ]
231+ return array .ObjectClass (azimuthal = azimuthal , longitudinal = longitudinal ) # type: ignore[arg-type]
232232 elif azimuthal is not None :
233- return array .ObjectClass (azimuthal = azimuthal ) # type: ignore[return-value]
233+ return array .ObjectClass (azimuthal = azimuthal )
234234 elif issubclass (array .ObjectClass , vector .backends .object .AzimuthalObject ):
235- return array .ObjectClass (* tuple (out )[:2 ]) # type: ignore[arg-type, return-value ]
235+ return array .ObjectClass (* tuple (out )[:2 ]) # type: ignore[arg-type]
236236 elif issubclass (array .ObjectClass , vector .backends .object .LongitudinalObject ):
237237 coords = (
238238 out .view (numpy .ndarray )[0 ]
239239 if len (out ) == 1 # type: ignore[arg-type]
240240 else out .view (numpy .ndarray )[2 ]
241241 )
242- return array .ObjectClass (coords ) # type: ignore[return-value]
242+ return array .ObjectClass (coords )
243243 else :
244244 coords = (
245245 out .view (numpy .ndarray )[0 ]
246246 if len (out ) == 1 # type: ignore[arg-type]
247247 else out .view (numpy .ndarray )[3 ]
248248 )
249- return array .ObjectClass (coords ) # type: ignore[return-value]
249+ return array .ObjectClass (coords )
250250
251251
252252def _array_repr (
@@ -879,14 +879,14 @@ def sum(
879879 keepdims = keepdims ,
880880 initial = initial ,
881881 where = where ,
882- ), # type: ignore[call-overload]
882+ ),
883883 )
884884
885885 def __eq__ (self , other : typing .Any ) -> typing .Any :
886- return numpy .equal (self , other ) # type: ignore[call-overload]
886+ return numpy .equal (self , other )
887887
888888 def __ne__ (self , other : typing .Any ) -> typing .Any :
889- return numpy .not_equal (self , other ) # type: ignore[call-overload]
889+ return numpy .not_equal (self , other )
890890
891891 def __reduce__ (self ) -> str | tuple [typing .Any , ...]:
892892 pickled_state = super ().__reduce__ ()
@@ -1197,7 +1197,7 @@ def azimuthal(self) -> AzimuthalNumpy:
11971197 AzimuthalNumpyXY([(1.1, 2.1), (1.2, 2.2), (1.3, 2.3), (1.4, 2.4),
11981198 (1.5, 2.5)], dtype=[('x', '<f8'), ('y', '<f8')])
11991199 """
1200- return self .view (self ._azimuthal_type ) # type: ignore[return-value]
1200+ return self .view (self ._azimuthal_type )
12011201
12021202 def _wrap_result (
12031203 self ,
@@ -1305,7 +1305,7 @@ def __setitem__(self, where: typing.Any, what: typing.Any) -> None:
13051305 return _setitem (self , where , what , False )
13061306
13071307
1308- class MomentumNumpy2D (PlanarMomentum , VectorNumpy2D ): # type: ignore[misc]
1308+ class MomentumNumpy2D (PlanarMomentum , VectorNumpy2D ):
13091309 """
13101310 Two dimensional momentum vector class for the NumPy backend. This class can be directly
13111311 used to construct two dimensional NumPy momentum vectors. For two dimensional
@@ -1427,13 +1427,13 @@ def __repr__(self) -> str:
14271427 def azimuthal (self ) -> AzimuthalNumpy :
14281428 """Returns the azimuthal type class for the given ``VectorNumpy3D`` object."""
14291429 # TODO: Add an example here - see https://github.com/scikit-hep/vector/issues/194
1430- return self .view (self ._azimuthal_type ) # type: ignore[return-value]
1430+ return self .view (self ._azimuthal_type )
14311431
14321432 @property
14331433 def longitudinal (self ) -> LongitudinalNumpy :
14341434 """Returns the longitudinal type class for the given ``VectorNumpy3D`` object."""
14351435 # TODO: Add an example here - see https://github.com/scikit-hep/vector/issues/194
1436- return self .view (self ._longitudinal_type ) # type: ignore[return-value]
1436+ return self .view (self ._longitudinal_type )
14371437
14381438 def _wrap_result (
14391439 self ,
@@ -1562,7 +1562,7 @@ def __setitem__(self, where: typing.Any, what: typing.Any) -> None:
15621562 return _setitem (self , where , what , False )
15631563
15641564
1565- class MomentumNumpy3D (SpatialMomentum , VectorNumpy3D ): # type: ignore[misc]
1565+ class MomentumNumpy3D (SpatialMomentum , VectorNumpy3D ):
15661566 """
15671567 Three dimensional momentum vector class for the NumPy backend. This class can be directly
15681568 used to construct three dimensional NumPy momentum vectors. For three dimensional
@@ -1707,19 +1707,19 @@ def __repr__(self) -> str:
17071707 def azimuthal (self ) -> AzimuthalNumpy :
17081708 """Returns the azimuthal type class for the given ``VectorNumpy4D`` object."""
17091709 # TODO: Add an example here - see https://github.com/scikit-hep/vector/issues/194
1710- return self .view (self ._azimuthal_type ) # type: ignore[return-value]
1710+ return self .view (self ._azimuthal_type )
17111711
17121712 @property
17131713 def longitudinal (self ) -> LongitudinalNumpy :
17141714 """Returns the longitudinal type class for the given ``Vectornumpy4D`` object."""
17151715 # TODO: Add an example here - see https://github.com/scikit-hep/vector/issues/194
1716- return self .view (self ._longitudinal_type ) # type: ignore[return-value]
1716+ return self .view (self ._longitudinal_type )
17171717
17181718 @property
17191719 def temporal (self ) -> TemporalNumpy :
17201720 """Returns the azimuthal type class for the given ``VectorNumpy4D`` object."""
17211721 # TODO: Add an example here - see https://github.com/scikit-hep/vector/issues/194
1722- return self .view (self ._temporal_type ) # type: ignore[return-value]
1722+ return self .view (self ._temporal_type )
17231723
17241724 def _wrap_result (
17251725 self ,
@@ -1882,7 +1882,7 @@ def __setitem__(self, where: typing.Any, what: typing.Any) -> None:
18821882 return _setitem (self , where , what , False )
18831883
18841884
1885- class MomentumNumpy4D (LorentzMomentum , VectorNumpy4D ): # type: ignore[misc]
1885+ class MomentumNumpy4D (LorentzMomentum , VectorNumpy4D ):
18861886 """
18871887 Four dimensional momentum vector class for the NumPy backend. This class can be directly
18881888 used to construct four dimensional NumPy momentum vectors. For three dimensional
0 commit comments