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 a882c34 commit 82e6c8dCopy full SHA for 82e6c8d
1 file changed
src/vector/backends/awkward.py
@@ -584,7 +584,10 @@ def elements(self) -> tuple[ArrayOrRecord]:
584
return (self.tau,)
585
586
587
-def _class_to_name(cls: type[VectorProtocol]) -> str:
+T = typing.TypeVar("T", bound=VectorProtocol)
588
+
589
590
+def _class_to_name(cls: type[T]) -> str:
591
# respect the type of classes inheriting VectorAwkward classes
592
is_vector = "vector.backends" in cls.__module__
593
if issubclass(cls, Momentum):
0 commit comments