Created
August 8, 2022 09:57
-
-
Save bjoernricks/85ee4249cedb10248574036d7fb6c9cc to your computer and use it in GitHub Desktop.
TypeError: '<' not supported between instances of 'NoneType' and 'String'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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