Skip to content

Commit ee9a110

Browse files
authored
Enable some stricter typing rules (#679)
1 parent 30155c7 commit ee9a110

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

numcodecs/checksum32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
_crc32c: Optional[ModuleType] = None
1515
with suppress(ImportError):
16-
import crc32c as _crc32c # type: ignore[no-redef]
16+
import crc32c as _crc32c # type: ignore[no-redef, unused-ignore]
1717

1818
if TYPE_CHECKING: # pragma: no cover
1919
from typing_extensions import Buffer

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,3 +237,6 @@ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
237237
# TODO: set options below to true
238238
strict = false
239239
warn_unreachable = false
240+
warn_redundant_casts = true
241+
warn_unused_ignores = true
242+
warn_unused_configs = true

0 commit comments

Comments
 (0)