Allow Any
to match sequence patterns in match/case by sterliakov · Pull Request #18448 · python/mypy (original) (raw)
Fixes #17095 (comment, the primary issue was already fixed somewhere before). Fixes #16272. Fixes #12532. Fixes #12770.
Prior to this PR mypy did not consider that Any
can match any patterns, including sequence patterns (e.g. case [_]
). This PR allows matching Any
against any such patterns.