Closed tbarkai closed 2 years ago
This code:
@dataclass class Sample: prop: str json = {'prop': '1025'} print(jsons.load(json, Sample, strict=True))
Outputs:
Sample(prop=datetime.datetime(1025, 1, 1, 0, 0))
It seems that the default_string_deserializer despite the str type annotation.
default_string_deserializer
str
Sorry, GitHub incident (https://www.githubstatus.com/incidents/zhtplv7zd052) caused multiple issues to be opened.
This code:
Outputs:
It seems that the
default_string_deserializer
despite thestr
type annotation.