Skip to content

Commit

Permalink
Add Python 3.10 support (#3)
Browse files Browse the repository at this point in the history
NotRequired is a Python 3.11 addition. By using typing_extensions we can
get support for it in Python 3.10.
  • Loading branch information
changlinli committed Jun 9, 2023
1 parent 6a950ef commit aae9f18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies = [
"click==8.1.3",
"requests==2.29.0",
"tqdm==4.65.0",
"typing_extensions==4.6.3",
]

[project.optional-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion reddit_user_to_sqlite/reddit_api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing_extensions import NotRequired
from typing import (
Any,
Literal,
NotRequired,
Optional,
Sequence,
TypedDict,
Expand Down

0 comments on commit aae9f18

Please sign in to comment.