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

Deprecation Warnings for inspect.getargspec() and collections.abc #76

Open
pyloolex opened this issue Jan 15, 2022 · 0 comments
Open

Deprecation Warnings for inspect.getargspec() and collections.abc #76

pyloolex opened this issue Jan 15, 2022 · 0 comments

Comments

@pyloolex
Copy link

Just a friendly reminder.

When I run tests through pytest on Python 3.8.10, I see warnings:

../home/vagrant/.local/lib/python3.8/site-packages/lollipop/compat.py:29
  /home/vagrant/.local/lib/python3.8/site-packages/lollipop/compat.py:29: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
    from collections import MutableMapping as DictMixin

../home/vagrant/.local/lib/python3.8/site-packages/lollipop/utils.py:46
  /home/vagrant/.local/lib/python3.8/site-packages/lollipop/utils.py:46: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
    arg_count = len(inspect.getargspec(func.__call__).args) - 1

../home/vagrant/.local/lib/python3.8/site-packages/lollipop/utils.py:42
  /home/vagrant/.local/lib/python3.8/site-packages/lollipop/utils.py:42: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
    arg_count = len(inspect.getargspec(func).args)

../home/vagrant/.local/lib/python3.8/site-packages/lollipop/utils.py:44
  /home/vagrant/.local/lib/python3.8/site-packages/lollipop/utils.py:44: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
    arg_count = len(inspect.getargspec(func.__init__).args) - 1

../home/vagrant/.local/lib/python3.8/site-packages/lollipop/utils.py:24
  /home/vagrant/.local/lib/python3.8/site-packages/lollipop/utils.py:24: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
    return isinstance(value, collections.Mapping)

-- Docs: https://docs.pytest.org/en/stable/warnings.html

I'm not creating a pull request since I'm not fully aware of what python versions are going to be supported. But it looks like some actions to resolve this are required.

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

1 participant