Skip to content

Commit

Permalink
Attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteendo committed Aug 2, 2024
1 parent ec4a6fc commit 33e1325
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/jsonyx/allow.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,21 @@
"TRAILING_COMMA",
]

#: Allow nothing
NOTHING: frozenset[str] = frozenset()
#: Allow comments
COMMENTS: frozenset[str] = frozenset({"comments"})
#: Allow duplicate keys
DUPLICATE_KEYS: frozenset[str] = frozenset({"duplicate_keys"})
#: Allow missing comma's
MISSING_COMMAS: frozenset[str] = frozenset({"missing_commas"})
#: Allow NaN and infinity
NAN_AND_INFINITY: frozenset[str] = frozenset({"nan_and_infinity"})
#: Allow trailing comma
TRAILING_COMMA: frozenset[str] = frozenset({"trailing_comma"})
#: Allow surrogates
SURROGATES: frozenset[str] = frozenset({"surrogates"})
#: Allow everything
EVERYTHING: frozenset[str] = (
COMMENTS | DUPLICATE_KEYS | MISSING_COMMAS | NAN_AND_INFINITY | SURROGATES
| TRAILING_COMMA
Expand Down

0 comments on commit 33e1325

Please sign in to comment.