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

Change to support python 3.10 #199

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

gdhoupis
Copy link

@gdhoupis gdhoupis commented Dec 5, 2023

The Mapping and MutableMapping classes have moved from collections to collections.abc.

https://docs.python.org/3.10/library/collections.abc.html

This will allow running for Python 3.10

@warnes
Copy link

warnes commented Jun 24, 2024

Unfortunately, this has missed at least one reference to collections.Mapping 😞

Traceback (most recent call last):
  File "/home/rstudio/src/fccData/inst/python/pyswagger_test.py", line 18, in <module>
    client.request(app.op['addPet'](body=pet_Tom))
  File "/home/rstudio/src/fccData/inst/python/pyswagger/contrib/client/requests.py", line 71, in request
    resp.apply_with(
  File "/home/rstudio/src/fccData/inst/python/pyswagger/io.py", line 392, in apply_with
    if isinstance(header, (collections.Mapping, MutableMapping)):
AttributeError: module 'collections' has no attribute 'Mapping'

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

Successfully merging this pull request may close these issues.

2 participants