Skip to content

Commit 82e6c8d

Browse files
Saswatsusmoyhenryiii
authored andcommitted
Update awkward.py
1 parent a882c34 commit 82e6c8d

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
@@ -584,7 +584,10 @@ def elements(self) -> tuple[ArrayOrRecord]:
584584
return (self.tau,)
585585

586586

587-
def _class_to_name(cls: type[VectorProtocol]) -> str:
587+
T = typing.TypeVar("T", bound=VectorProtocol)
588+
589+
590+
def _class_to_name(cls: type[T]) -> str:
588591
# respect the type of classes inheriting VectorAwkward classes
589592
is_vector = "vector.backends" in cls.__module__
590593
if issubclass(cls, Momentum):

0 commit comments

Comments
 (0)