Skip to content

Adding inital types to remote.py #1229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
May 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
copy sys.version checks for literal and final to git.types
  • Loading branch information
Yobmod committed May 3, 2021
commit 18b75d9e63f513e972cbc09c06b040bcdb15aa05
5 changes: 5 additions & 0 deletions git/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
import sys
from typing import Union, Any

if sys.version_info[:2] >= (3, 8):
from typing import Final, Literal # noqa: F401
else:
from typing_extensions import Final, Literal # noqa: F401


TBD = Any

Expand Down