Skip to content

Commit ce76152

Browse files
committed
Remove StringArrayTypes type hint
Reverts 0a6cda5, f59f93c, and 17c1e9c
1 parent 7dc353b commit ce76152

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pygmt/_typing.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,7 @@
22
Type aliases for type hints.
33
"""
44

5-
import contextlib
6-
import importlib
7-
from collections.abc import Sequence
85
from typing import Literal
96

10-
import numpy as np
11-
127
# Anchor codes
138
AnchorCode = Literal["TL", "TC", "TR", "ML", "MC", "MR", "BL", "BC", "BR"]
14-
15-
# String array types
16-
StringArrayTypes = Sequence[str] | np.ndarray
17-
with contextlib.suppress(ImportError):
18-
StringArrayTypes |= importlib.import_module(name="pyarrow").StringArray

0 commit comments

Comments
 (0)