Skip to content

Commit

Permalink
Replace env.needs_all_needs with env._needs_all_needs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsewell committed Oct 1, 2024
1 parent ec62d7f commit 51b2963
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinx_needs/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,10 +702,10 @@ def __init__(self, env: BuildEnvironment) -> None:
@property
def _env_needs(self) -> dict[str, NeedsInfoType]:
try:
return self.env.needs_all_needs
return self.env._needs_all_needs
except AttributeError:
self.env.needs_all_needs = {}
return self.env.needs_all_needs
self.env._needs_all_needs = {}
return self.env._needs_all_needs

def has_need(self, need_id: str) -> bool:
"""Check if a need with the given ID exists."""
Expand Down

0 comments on commit 51b2963

Please sign in to comment.