Skip to content

Commit

Permalink
[DOC] Add some docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
n-takumasa committed Oct 8, 2023
1 parent cfc9976 commit 7d72b10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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

0 comments on commit 7d72b10

Please sign in to comment.