8000 Fix mishandling of typing.Self in attrs generated inits by davfsa · Pull Request #14689 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Fix mishandling of typing.Self in attrs generated inits #14689

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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Remove un-used imports
  • Loading branch information
davfsa committed Feb 17, 2023
commit 96c564706b2c3df88542a5f9566ed36ab48d2f1e
2 changes: 1 addition & 1 deletion mypy/expandtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Iterable, Mapping, Sequence, TypeVar, cast, overload
from typing_extensions import Final

from mypy.nodes import ARG_POS, ARG_STAR, ArgKind, TypeInfo, Var
from mypy.nodes import ARG_POS, ARG_STAR, ArgKind, Var
from mypy.type_visitor import TypeTranslator
from mypy.types import (
ANY_STRATEGY,
Expand Down
2 changes: 1 addition & 1 deletion mypy/plugins/attrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import mypy.plugin # To avoid circular imports.
from mypy.errorcodes import LITERAL_REQ
from mypy.expandtype import expand_self_type, expand_type
from mypy.expandtype import expand_type
from mypy.exprtotype import TypeTranslationError, expr_to_unanalyzed_type
from mypy.nodes import (
ARG_NAMED,
Expand Down
2 changes: 1 addition & 1 deletion mypy/plugins/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing_extensions import Final

from mypy import errorcodes, message_registry
from mypy.expandtype import expand_self_type, expand_type
from mypy.expandtype import expand_type
from mypy.nodes import (
ARG_NAMED,
ARG_NAMED_OPT,
Expand Down
0