Skip to content

Commit

Permalink
Update warnings.py fixed mypy postition
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipPartsch authored Oct 17, 2024
1 parent 41a9266 commit 9e902b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinx_needs/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def process_warnings(app: Sphinx, exception: Exception | None) -> None:
result = []
for need in needs_view.values():
sig = signature(warning_filter)
if len(sig.parameters) >= 3: # type: ignore[call-arg]
if warning_filter(need, logger, needs_view):
if len(sig.parameters) >= 3:
if warning_filter(need, logger, needs_view): # type: ignore[call-arg]
result.append(need)
else:
if warning_filter(need, logger):
Expand Down

0 comments on commit 9e902b8

Please sign in to comment.