Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Add some docstrings #316

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tomlkit/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def body(self) -> list[tuple[Key | None, Item]]:
return self._body

def unwrap(self) -> dict[str, Any]:
"""Returns as pure python object (ppo)"""
unwrapped = {}
for k, v in self.items():
if k is None:
Expand All @@ -64,6 +65,7 @@ def unwrap(self) -> dict[str, Any]:

@property
def value(self) -> dict[str, Any]:
"""The wrapped dict value"""
d = {}
for k, v in self._body:
if k is None:
Expand Down
1 change: 1 addition & 0 deletions tomlkit/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,7 @@ def indent(self, indent: int) -> Table:
return self

def invalidate_display_name(self):
"""Call ``invalidate_display_name`` on the contained tables"""
self.display_name = None

for child in self.values():
Expand Down
Loading