pylint icon indicating copy to clipboard operation
pylint copied to clipboard

no-name-in-module for Sequence, Callable, Iterator in Python 3.11 collections.abc

Open TylerYep opened this issue 2 years ago • 3 comments

Bug description

Importing from collections.abc gives off these false positive errors

Configuration

No response

Command used

pre-commit

Pylint output

************* Module stats
stats.py:3:0: E0611: No name 'Callable' in module 'collections.abc' (no-name-in-module)
************* Module user
user.py:1:0: E0611: No name 'Sequence' in module 'collections.abc' (no-name-in-module)

Expected behavior

No errors

Pylint version

pylint 2.13.9 and 2.14.0-b1

OS / Environment

Mac OSX Python 3.11.0b1

Additional dependencies

No response

TylerYep avatar May 31 '22 19:05 TylerYep

This has been fixed on current main of astroid. We just need to release a version and bump it in pylint.

DanielNoord avatar Jun 01 '22 05:06 DanielNoord

There's currently nothing that need backport in astroid : https://github.com/PyCQA/astroid/issues?q=is%3Aopen+is%3Aissue+label%3Aneeds-backport. We were not going to use 2.12 in pylint 2.14 so probably fixed in 2.15 (?) Or we need to backport the fix in astroid 2.11.

Pierre-Sassoulas avatar Jun 01 '22 06:06 Pierre-Sassoulas

Let's not backport. 2.11 doesn't explicitly support Python 2.11.

We need all our attention for releasing 2.14 and then 2.12 now.

DanielNoord avatar Jun 01 '22 06:06 DanielNoord

Closing this as we now have basic support for 3.11.

DanielNoord avatar Oct 02 '22 07:10 DanielNoord