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

Replace inspect.getargspec with inspect.getfullargspec (or possibly inspect.signature) #1445

Closed
kkaris opened this issue Jun 5, 2024 · 0 comments · Fixed by #1447
Closed

Comments

@kkaris
Copy link
Member

kkaris commented Jun 5, 2024

inspect.getargspec is deprecated since 3.0(!), was removed in 3.11 and is replaced by inspect.getfullargspec. inspect.signature is also mentioned as the python 3 preferred way to deal with introspection, but inspect.getfullargspec seems to be safe from removal (for now) so easiest is to just replace it.

This affects the pipeline module: https://github.com/sorgerlab/indra/blob/master/indra/pipeline/pipeline.py#L323

See the Python 3.10 docs for the last version mentioning of inspect.getargspec:
https://docs.python.org/3.10/library/inspect.html#inspect.getargspec

@kkaris kkaris linked a pull request Jun 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant