Enable PGH003: use specific type ignore codes

This commit is contained in:
Krzysztof kuhy Rudnicki 2025-11-30 15:06:51 +01:00
parent d8e17e92e7
commit 3fcc7b62d9
2 changed files with 2 additions and 3 deletions

View File

@ -31,9 +31,9 @@ import re
import sys
try:
import psutil # type: ignore
import psutil # type: ignore[import-untyped]
except Exception: # pragma: no cover - optional dependency; we fall back if unavailable
psutil = None # type: ignore
psutil = None # type: ignore[assignment]
try:
import chess

View File

@ -58,7 +58,6 @@ ignore = [
"FBT003", # Boolean positional value - common pattern
"ARG001", # Unused function argument - often needed for API compatibility
"ARG002", # Unused method argument - often needed for API compatibility
"PGH003", # blanket-type-ignore - existing code
"PLC0415", # import-outside-top-level - sometimes necessary
"N816", # mixed-case-variable-in-global-scope - often constants
"N806", # non-lowercase-variable - sometimes intentional