We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 254e5c9 commit f6f3c75Copy full SHA for f6f3c75
1 file changed
src/vector/backends/awkward.py
@@ -576,7 +576,10 @@ def elements(self) -> tuple[ArrayOrRecord]:
576
return (self.tau,)
577
578
579
-def _class_to_name(cls: type[VectorProtocol]) -> str:
+T = typing.TypeVar("T", bound=VectorProtocol)
580
+
581
582
+def _class_to_name(cls: type[T]) -> str:
583
if issubclass(cls, Momentum):
584
if issubclass(cls, Vector2D):
585
return "Momentum2D"
0 commit comments