Skip to content

Commit f6f3c75

Browse files
authored
Update awkward.py
1 parent 254e5c9 commit f6f3c75

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/vector/backends/awkward.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,10 @@ def elements(self) -> tuple[ArrayOrRecord]:
576576
return (self.tau,)
577577

578578

579-
def _class_to_name(cls: type[VectorProtocol]) -> str:
579+
T = typing.TypeVar("T", bound=VectorProtocol)
580+
581+
582+
def _class_to_name(cls: type[T]) -> str:
580583
if issubclass(cls, Momentum):
581584
if issubclass(cls, Vector2D):
582585
return "Momentum2D"

0 commit comments

Comments
 (0)