Skip to content

Commit a55af8b

Browse files
authored
[DOC] Add some docstrings (#316)
1 parent cfc9976 commit a55af8b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

tomlkit/container.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def body(self) -> list[tuple[Key | None, Item]]:
4444
return self._body
4545

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

6566
@property
6667
def value(self) -> dict[str, Any]:
68+
"""The wrapped dict value"""
6769
d = {}
6870
for k, v in self._body:
6971
if k is None:

tomlkit/items.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,7 @@ def indent(self, indent: int) -> Table:
16651665
return self
16661666

16671667
def invalidate_display_name(self):
1668+
"""Call ``invalidate_display_name`` on the contained tables"""
16681669
self.display_name = None
16691670

16701671
for child in self.values():

0 commit comments

Comments
 (0)