Skip to content

JsonType could be better declared #3519

Open
@shughes-uk

Description

@shughes-uk

Currently y'all declare JsonType:

JsonType = Union[str, int, float, bool, None, Dict[str, Any], List[Any]]

I think would be better declared as

JsonType = Union[str, int, float, bool, None, Mapping[str, "JsonType"], List["JsonType"]]

Any thoughts?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions