Skip to content

Commit

Permalink
remove typing_extensions, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-hesse committed May 8, 2020
1 parent 1a5d832 commit 0a6e2ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 8 additions & 2 deletions blobfile/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@
NamedTuple,
List,
Union,
TYPE_CHECKING,
)
from typing_extensions import Literal

if TYPE_CHECKING:
# only supported in python 3.8+
# because this isn't used for a base class or casting, we don't need to postpone
# evaluation of type annotations with https://www.python.org/dev/peps/pep-0563/
from typing import Literal


import urllib3
Expand Down Expand Up @@ -2404,7 +2410,7 @@ class _ProxyFile(io.FileIO):
def __init__(
self,
local_path: str,
mode: Literal["r", "rb", "w", "wb", "a", "ab"],
mode: 'Literal["r", "rb", "w", "wb", "a", "ab"]',
tmp_dir: Optional[str],
remote_path: Optional[str],
) -> None:
Expand Down
1 change: 0 additions & 1 deletion env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ dependencies:
- imageio-ffmpeg==0.3.0
- xmltodict==0.12.0
- azure-cli==2.0.75
- typing-extensions==3.7.4.1
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def run(self):

setup_dict = dict(
name="blobfile",
version="0.16.8",
version="0.16.9",
description="Read GCS and local paths with the same interface, clone of tensorflow.io.gfile",
long_description=README,
long_description_content_type="text/markdown",
Expand All @@ -47,7 +47,6 @@ def run(self):
"urllib3~=1.25",
"xmltodict~=0.12.0",
"filelock~=3.0",
"typing-extensions>=3.7.4.1",
],
extras_require={
"dev": [
Expand Down

0 comments on commit 0a6e2ea

Please sign in to comment.