We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, there may be a bug in the __init__.py I think.
__init__.py
When I try from jsons import * I got an error: TypeError: Item in jsons.__all__ must be str, not function
from jsons import *
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:
append
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.
from
The text was updated successfully, but these errors were encountered:
Thanks for reporting, that's a bug indeed!
Sorry, something went wrong.
No branches or pull requests
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.The text was updated successfully, but these errors were encountered: