-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
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
Missing loads
and load
definitions in __init__.pyi
#103
Comments
loads
definition in __init__.pyi
loads
and load
definitions in __init__.pyi
The same as |
@kifuan Would you prepare a pull request? I am sure it would be considered. |
Sure, there are two ways.
def loads(s, *, cls=None, object_hook=None, parse_float=None, parse_int=None,
parse_constant=None, object_pairs_hook=None, **kwargs):
...
loads = json.loads
load = json.load As |
But I prefer the first way, which will not confuse users. |
Can't this be done automatically... |
Automatic generation doesn't work terribly well with native extensions. |
We don't have a 1:1 interface with |
Is |
I know it is defined in
__init__.py
, but it seems that PyCharm only analyzes__init__.pyi
, whereloads
is not defined.Maybe I could create a PR to fix this tiny problem if you appreciate it.
The text was updated successfully, but these errors were encountered: