from types import coroutine#368
Merged
fabianp merged 1 commit intopythonprofilers:masterfrom Nov 1, 2022
Merged
Conversation
`coroutine` is no longer available via the `asyncio` module as of Python 3.11.
```python-traceback
$ venv311/bin/python -c 'import memory_profiler'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/altendky//venv311/lib/python3.11/site-packages/memory_profiler.py", line 10, in <module>
from asyncio import coroutine, iscoroutinefunction
ImportError: cannot import name 'coroutine' from 'asyncio' (/home/altendky/.pyenv/versions/3.11.0rc2/lib/python3.11/asyncio/__init__.py)
```
Collaborator
Author
|
Looks like the failure is due to codespell processing the |
Collaborator
|
could you submit a fix for that? |
Collaborator
Author
|
Trying at #369. |
Collaborator
Author
|
kick ci |
Collaborator
Author
|
Thoughts on this now? I figured it would be helpful to test and show this being broken so I added a matrix across the Python versions but had a question at #370 (comment). |
Collaborator
|
great, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
coroutineis no longer available via theasynciomodule as of Python 3.11.