Skip to content

Commit 94191e2

Browse files
committed
Update shapefile.py
1 parent 3eabda9 commit 94191e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shapefile.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
from collections.abc import Sequence
2020
from datetime import date
2121
from struct import Struct, calcsize, error, pack, unpack
22-
from typing import Any, ByteString, Union
22+
from typing import Any, Union
2323
from urllib.error import HTTPError
2424
from urllib.parse import urlparse, urlunparse
2525
from urllib.request import Request, urlopen
2626

27+
2728
# Create named logger
2829
logger = logging.getLogger(__name__)
2930

@@ -106,7 +107,7 @@ def b(v: Any, encoding="utf-8", encodingErrors="strict") -> bytes:
106107

107108

108109
def u(
109-
v: Union[bytes, str, None, int, ByteString],
110+
v: Union[bytes, str, None, int],
110111
encoding="utf-8",
111112
encodingErrors="strict",
112113
) -> str:

0 commit comments

Comments
 (0)