diff options
author | Marc Mueller <30130371+cdce8p@users.noreply.github.com> | 2022-03-26 12:22:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-26 12:22:05 +0100 |
commit | 5d21f4235fec4833d10e09870cbe4134d565f3d5 (patch) | |
tree | 56e3dd9f80a5fab503fe19a919d651237cdaf3fe /pylint/constants.py | |
parent | 2c29f4b7dff26730a067f135ee18f7a3c18263e3 (diff) | |
download | pylint-git-5d21f4235fec4833d10e09870cbe4134d565f3d5.tar.gz |
Don't emit broken typing errors inside TYPE_CHECKING blocks (#5984)
Diffstat (limited to 'pylint/constants.py')
-rw-r--r-- | pylint/constants.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pylint/constants.py b/pylint/constants.py index 2ecbd9778..adb8f5ca1 100644 --- a/pylint/constants.py +++ b/pylint/constants.py @@ -193,3 +193,6 @@ INCOMPATIBLE_WITH_USELESS_SUPPRESSION = frozenset( "W1513", # deprecated-decorator ] ) + + +TYPING_TYPE_CHECKS_GUARDS = frozenset({"typing.TYPE_CHECKING", "TYPE_CHECKING"}) |