X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c47b91f513052cd39b818ea7c19716423c85c04e..6b42c2b8c9f9bd666120a2c19b8da509fe477f27:/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