text_lint.operations.lookups.encoders.sorted.SortedEncoder

class text_lint.operations.lookups.encoders.sorted.SortedEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[Quellcode]

Bases: JSONEncoder

JSON encoder that sorts dictionaries, lists and tuples.

encode(o: Any) Any[Quellcode]

Encode as JSON while sorting dictionaries, lists and tuples.

Parameter:

o (Any) – The object being converted.

Rückgabe:

The converted object.

Rückgabetyp:

Any