X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c47b91f513052cd39b818ea7c19716423c85c04e..0e9d29ab73d608a79028e22a713ee717b5dcca96:/src/black/files.py 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