Derived from the flake8-pyi linter.
Fix is sometimes available.
What it does#
from collections.abc import Set imports that do not alias
Why is this bad?#
Set type in
collections.abc is an abstract base class for set-like types.
It is easily confused with, and not equivalent to, the
To avoid confusion,
Set should be aliased to
AbstractSet when imported. This
makes it clear that the imported type is an abstract base class, and not the