Skip to content

Commit

Permalink
🔧 Add strict typing for sphinx_needs.warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Aug 28, 2023
1 parent 54167b7 commit 6bddc76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Expand Up @@ -127,7 +127,6 @@ module = [
'sphinx_needs.services.github',
'sphinx_needs.services.manager',
'sphinx_needs.utils',
'sphinx_needs.warnings',
]
ignore_errors = true

Expand Down
2 changes: 1 addition & 1 deletion sphinx_needs/warnings.py
Expand Up @@ -43,7 +43,7 @@ def process_warnings(app: Sphinx, exception: Optional[Exception]) -> None:
if hasattr(env, "needs_warnings_executed") and env.needs_warnings_executed:
return

env.needs_warnings_executed = True
env.needs_warnings_executed = True # type: ignore[attr-defined]

needs = SphinxNeedsData(env).get_or_create_needs()

Expand Down

0 comments on commit 6bddc76

Please sign in to comment.