mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 14:43:01 +02:00
Enable PGH003: use specific type ignore codes
This commit is contained in:
parent
8cc4bb89fc
commit
5cec131ebe
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user