Skip to content

Commit

Permalink
Merge branch 'refine-enum-branch-analysis' of github.com:Michael0x2a/…
Browse files Browse the repository at this point in the history
…mypy into refine-enum-branch-analysis
  • Loading branch information
Michael0x2a committed Jul 8, 2019
2 parents d1d99a7 + 0c084dc commit 5b70ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -4526,7 +4526,7 @@ def is_singleton_type(typ: Type) -> bool:


def try_expanding_enum_to_union(typ: Type, target_fullname: str) -> Type:
"""Attempts to recursively any enum Instances with the given target_fullname
"""Attempts to recursively expand any enum Instances with the given target_fullname
into a Union of all of its component LiteralTypes.
For example, if we have:
Expand Down

0 comments on commit 5b70ff5

Please sign in to comment.