Hey, there may be a bug in the __init__.py I think.
When I try from jsons import * I got an error: TypeError: Item in jsons.__all__ must be str, not function
And I checked your __init__.py and found below may be a bug:
if default_zone_info_serializer and default_zone_info_deserializer:
from zoneinfo import ZoneInfo
__all__.append(default_zone_info_serializer)
__all__.append(default_zone_info_deserializer)
set_serializer(default_zone_info_serializer, ZoneInfo)
set_deserializer(default_zone_info_deserializer, ZoneInfo)
The two append line appended function into it, so I try to change it like below:
if default_zone_info_serializer and default_zone_info_deserializer:
from zoneinfo import ZoneInfo
__all__.append(default_zone_info_serializer.__name__)
__all__.append(default_zone_info_deserializer.__name__)
set_serializer(default_zone_info_serializer, ZoneInfo)
set_deserializer(default_zone_info_deserializer, ZoneInfo)
After this change, from grammar can work normally.
Hey, there may be a bug in the
__init__.py
I think.When I try
from jsons import *
I got anerror
:TypeError: Item in jsons.__all__ must be str, not function
And I checked your
__init__.py
and found below may be a bug:The two
append
line appended function into it, so I try to change it like below:After this change,
from
grammar can work normally.