8000 Fix 0.750 regression: union (non-)simplification should not affect inference by ilevkivskyi · Pull Request #8077 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typo
  • Loading branch information
Ivan Levkivskyi committed Dec 4, 2019
commit 396e74f375a5af9330aa0ce3498fb3d61b726b2f
2 changes: 1 addition & 1 deletion mypy/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _infer_constraints(template: Type, actual: Type,
template = get_proper_type(template)
actual = get_proper_type(actual)

# Type inference shouldn't be affected by whether union types have bee simplified.
# Type inference shouldn't be affected by whether union types have been simplified.
if isinstance(template, UnionType):
template = mypy.typeops.make_simplified_union(template.items)
if isinstance(actual, UnionType):
Expand Down
0