Skip to content

Instantly share code, notes, and snippets.

@bjoernricks
Created August 8, 2022 09:57
Show Gist options
  • Save bjoernricks/85ee4249cedb10248574036d7fb6c9cc to your computer and use it in GitHub Desktop.
Save bjoernricks/85ee4249cedb10248574036d7fb6c9cc to your computer and use it in GitHub Desktop.
TypeError: '<' not supported between instances of 'NoneType' and 'String'
import copy
import tomlkit
toml = """
a=[
# foo,
"abc"
]
"""
doc = tomlkit.parse(toml)
array = doc["a"]
print(set(array))
array = copy.copy(array)
array = set(array)
print(array)
sorted(array)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment