Skip to content

Commit

Permalink
Remove StringArrayTypes type hint
Browse files Browse the repository at this point in the history
Reverts 0a6cda5, f59f93c, and 17c1e9c
  • Loading branch information
weiji14 committed Nov 15, 2024
1 parent 7dc353b commit ce76152
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pygmt/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@
Type aliases for type hints.
"""

import contextlib
import importlib
from collections.abc import Sequence
from typing import Literal

import numpy as np

# Anchor codes
AnchorCode = Literal["TL", "TC", "TR", "ML", "MC", "MR", "BL", "BC", "BR"]

# String array types
StringArrayTypes = Sequence[str] | np.ndarray
with contextlib.suppress(ImportError):
StringArrayTypes |= importlib.import_module(name="pyarrow").StringArray

0 comments on commit ce76152

Please sign in to comment.