Skip to content

Commit

Permalink
Improve TomlSort class documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pappasam committed Aug 14, 2019
1 parent 1668bc5 commit c7c2c84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions toml_sort/tomlsort.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __init__(
:attr input_toml: the input toml data for processing
:attr only_sort_tables: turns on sorting for only tables
:attr no_header: omit leading comments from the output
"""
self.input_toml = input_toml
self.only_sort_tables = only_sort_tables
Expand Down Expand Up @@ -100,9 +101,9 @@ def toml_elements_sorted(self, original: Item) -> Item:
if isinstance(original, AoT):
# REFACTOR WHEN POSSIBLE:
#
# NOTE: this section contains a necessary hack tomlkit's AoT
# NOTE: this section contains a necessary hack. Tomlkit's AoT
# implementation currently generates duplicate elements. I rely on
# the object id remove these duplicates, since the object id will
# the object id to remove these duplicates; the object id will
# allow correct duplicates to remain
new_aot = aot()
id_lookup = set() # type: Set[int]
Expand Down

0 comments on commit c7c2c84

Please sign in to comment.