X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f07832eac44eb38f8b048aae3e1de3512a06057c..966baaacbc24a4affa88ea5bb0b5a44b0f52fe2f:/src/black/__init__.py diff --git a/src/black/__init__.py b/src/black/__init__.py index c7c5d72..9b9903c 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -42,7 +42,6 @@ from typing import ( cast, TYPE_CHECKING, ) -from typing_extensions import Final from mypy_extensions import mypyc_attr from appdirs import user_cache_dir @@ -61,6 +60,11 @@ from blib2to3.pgen2.parse import ParseError from _black_version import version as __version__ +if sys.version_info < (3, 8): + from typing_extensions import Final +else: + from typing import Final + if TYPE_CHECKING: import colorama # noqa: F401