Skip to content

Commit

Permalink
(hopefully) fix old (<3.10) python type annotation syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Sep 13, 2024
1 parent e57e2c3 commit e338332
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/awkward/_namedaxis.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
AxisName: tp.TypeAlias = tp.Hashable

AxisMapping: tp.TypeAlias = tp.Mapping[AxisName, int] # e.g.: {"x": 0, "y": 1, "z": 2}
AxisTuple: tp.TypeAlias = tp.Tuple[AxisName, ...] # e.g.: ("x", "y", None) where None is a wildcard
AxisTuple: tp.TypeAlias = tp.Tuple[
AxisName, ...
] # e.g.: ("x", "y", None) where None is a wildcard

_NamedAxisKey: str = "__named_axis__"

Expand Down

0 comments on commit e338332

Please sign in to comment.