Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Python 3.10 compatibility #38

Open
hoodmane opened this issue Mar 1, 2022 · 4 comments
Open

Python 3.10 compatibility #38

hoodmane opened this issue Mar 1, 2022 · 4 comments

Comments

@hoodmane
Copy link

hoodmane commented Mar 1, 2022

Trying to use in Python 3.10 yields the error:

  File "/usr/local/lib/python3.10/site-packages/sphinxcontrib/napoleon/__init__.py", line 13, in <module>
    from sphinxcontrib.napoleon.docstring import GoogleDocstring, NumpyDocstring
  File "/usr/local/lib/python3.10/site-packages/sphinxcontrib/napoleon/docstring.py", line 16, in <module>
    from collections import Callable
ImportError: cannot import name 'Callable' from 'collections' (/usr/local/lib/python3.10/collections/__init__.py)
@marscher
Copy link

marscher commented May 9, 2022

Thanks for bringing it up @hoodmane and thanks for fixing it @Mab879. Any idea, when this will be released?

@tomvothecoder
Copy link

tomvothecoder commented Jun 27, 2022

Any update on when a new version will be released that includes this fix?

572de99

This was referenced Jun 27, 2022
@demberto
Copy link

Callable is in collections.abc

@tomvothecoder
Copy link

I think this package is deprecated (#43).

It is now available directly through Sphinx via sphinx.ext.napoleon. I was able to update my conda environments to Python 3.10 with this method.

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

No branches or pull requests

4 participants