Skip to content

Commit a9c02dc

Browse files
MNT: silence pylint 4 abstract-method false positives
Optional methods that raise NotImplementedError (polations, sensors, plots) are now reported as abstract; also move the broad-exception pragma onto the except line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XDW574AQLHTSeBM9K172TX
1 parent a9d608e commit a9c02dc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.pylintrc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ disable=raw-checker-failed,
501501
method-cache-max-size-none,
502502
no-else-raise, # pointless
503503
unnecessary-lambda-assignment, # ruff already checks this
504+
abstract-method, # NotImplementedError marks optional methods (polations, sensors, plots)
504505

505506

506507

‎rocketpy/tools.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,8 +1203,7 @@ def wrapper(*args, **kwargs):
12031203
for i in range(max_attempts):
12041204
try:
12051205
return func(*args, **kwargs)
1206-
# pylint: disable=broad-except
1207-
except Exception as e: # pragma: no cover
1206+
except Exception as e: # pragma: no cover # pylint: disable=broad-exception-caught
12081207
if i == max_attempts - 1:
12091208
raise e from None
12101209
delay = min(delay * 2, max_delay)

0 commit comments

Comments
 (0)