Skip to content

Commit

Permalink
Update awkward.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Saswatsusmoy authored Oct 17, 2023
1 parent 254e5c9 commit f6f3c75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vector/backends/awkward.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,10 @@ def elements(self) -> tuple[ArrayOrRecord]:
return (self.tau,)


def _class_to_name(cls: type[VectorProtocol]) -> str:
T = typing.TypeVar("T", bound=VectorProtocol)


def _class_to_name(cls: type[T]) -> str:
if issubclass(cls, Momentum):
if issubclass(cls, Vector2D):
return "Momentum2D"
Expand Down

0 comments on commit f6f3c75

Please sign in to comment.