Don't complain about compatibility code for missing optional dependencies

This commit is contained in:
Hugo van Kemenade 2023-12-31 10:30:22 -07:00 committed by GitHub
parent 9475c46d30
commit b7d64ac177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,8 +10,8 @@ exclude_also =
def create_lut():
# Don't complain about debug code
if DEBUG:
# Don't complain about compatibility code
class TypeGuard:
# Don't complain about compatibility code for missing optional dependencies
except ImportError
[run]
omit =