Skip to content

Commit

Permalink
add typing helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Altay Sansal committed Mar 1, 2024
1 parent e374991 commit 99a9954
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/segy/typing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""Useful aliases for typing."""


from typing import TypeAlias

from numpy import float32
from numpy import uint32
from numpy.typing import NDArray

NDArrayUint32: TypeAlias = NDArray[uint32]
NDArrayFloat32: TypeAlias = NDArray[float32]

0 comments on commit 99a9954

Please sign in to comment.