Skip to content
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

Support python3.11 #257

Open
pyhedgehog opened this issue Dec 5, 2022 · 1 comment
Open

Support python3.11 #257

pyhedgehog opened this issue Dec 5, 2022 · 1 comment

Comments

@pyhedgehog
Copy link
Contributor

pyhedgehog commented Dec 5, 2022

In python3.11 inspect.getargspec removed at last (after deprecation in 3.0).
Proposed fix:

try:
    from inspect import getargspec
except ImportError:
    from inspect import getfullargspec
    def getargspec(f):
        return tuple(getfullargspec(f))[:4]
@MurtadhaInit
Copy link

I was just wondering about the sort of error I was getting when running ntfy.
Now it makes sense, because I was using Python 3.11

I hope this is fixed in an upcoming release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants