X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c47b91f513052cd39b818ea7c19716423c85c04e..2704dc796b49b4c5d348c92ba14ef1cfd908e7f1:/src/black/files.py?ds=sidebyside diff --git a/src/black/files.py b/src/black/files.py index d51c1bc..ed503f5 100644 --- a/src/black/files.py +++ b/src/black/files.py @@ -26,7 +26,8 @@ if sys.version_info >= (3, 11): import tomllib except ImportError: # Help users on older alphas - import tomli as tomllib + if not TYPE_CHECKING: + import tomli as tomllib else: import tomli as tomllib