Exclude code only for type checking

This commit is contained in:
Andrew Murray 2024-02-10 22:39:18 +11:00
parent 8ef0ffc2b8
commit e614bbfe50

View File

@ -10,6 +10,7 @@ exclude_also =
if DEBUG:
# Don't complain about compatibility code for missing optional dependencies
except ImportError
if TYPE_CHECKING:
[run]
omit =