Skip to content

Commit

Permalink
Use typing_extensions from GitHub until a new version is released.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Apr 11, 2021
1 parent 320d67e commit c679ca5
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 63 deletions.
1 change: 1 addition & 0 deletions doc-source/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
git+https://github.com/python/typing#egg=typing_extensions&subdirectory=typing_extensions
attr-utils>=0.5.5
autodocsumm>=0.2.0
default-values>=0.4.2
Expand Down
54 changes: 0 additions & 54 deletions github3_utils/_typing.py

This file was deleted.

4 changes: 0 additions & 4 deletions github3_utils/_typing.pyi

This file was deleted.

6 changes: 2 additions & 4 deletions github3_utils/secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
from github3.repos import Repository
from nacl import encoding, public # type: ignore
from requests import Response

# this package
from github3_utils._typing import make_typed_dict
from typing_extensions import TypedDict

__all__ = [
"build_secrets_url",
Expand All @@ -58,7 +56,7 @@ def build_secrets_url(repo: Repository) -> URL:
return URL(repo._build_url("actions/secrets", base_url=repo._api))


_PublicKey = make_typed_dict("_PublicKey", {"ETag": str, "Last-Modified": str}, total=False)
_PublicKey = TypedDict("_PublicKey", {"ETag": str, "Last-Modified": str}, total=False)


class PublicKey(_PublicKey):
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ domdf-python-tools>=1.1.0
github3-py>=1.3.0
pynacl>=1.4.0
requests>=2.25.1
typing-extensions>=3.7.4.3
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
git+https://github.com/python/typing#egg=typing_extensions&subdirectory=typing_extensions
backports-entry-points-selectable>=1.0.2
betamax>=0.8.1
coincidence>=0.2.0
Expand Down

0 comments on commit c679ca5

Please sign in to comment.