Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions CHANGES/259.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use stdlib typing.final in Python 3.8+, limiting typing-extensions dependency to older Python versions.
6 changes: 5 additions & 1 deletion async_timeout/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
from types import TracebackType
from typing import Any, Optional, Type

from typing_extensions import final

if sys.version_info >= (3, 8):
from typing import final
else:
from typing_extensions import final


__version__ = "4.0.1"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ zip_safe = True
include_package_data = True

install_requires =
typing_extensions>=3.6.5
typing_extensions>=3.6.5; python_version < "3.8"


[flake8]
Expand Down