8000 Use polymorphic inference in unification by ilevkivskyi · Pull Request #17348 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Use polymorphic inference in unification #17348

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

Merged
merged 10 commits into from
Jun 10, 2024
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 9, 2024
commit 0ee2ee1cb4309e52d1710676ad6675fa676e9f04
7 changes: 6 additions & 1 deletion mypy/subtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
import mypy.constraints
import mypy.typeops
from mypy.erasetype import erase_type
from mypy.expandtype import expand_self_type, expand_type, expand_type_by_instance, freshen_function_type_vars
from mypy.expandtype import (
expand_self_type,
expand_type,
expand_type_by_instance,
freshen_function_type_vars,
)
from mypy.maptype import map_instance_to_supertype

# Circular import; done in the function instead.
Expand Down
8 changes: 7 additions & 1 deletion mypy/typeanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
from mypy.errorcodes import ErrorCode
from mypy.expandtype import expand_type
from mypy.message_registry import INVALID_PARAM_SPEC_LOCATION, INVALID_PARAM_SPEC_LOCATION_NOTE
from mypy.messages import MessageBuilder, format_type, format_type_bare, quote_type_string, wrong_type_arg_count
from mypy.messages import (
MessageBuilder,
format_type,
format_type_bare,
quote_type_string,
wrong_type_arg_count,
)
from mypy.nodes import (
ARG_NAMED,
ARG_NAMED_OPT,
Expand Down
0