Skip to content

Commit

Permalink
Fix typo in checkpattern.py (#12484)
Browse files Browse the repository at this point in the history
lenght -> length
  • Loading branch information
eltociear authored Mar 29, 2022
1 parent 433544b commit b7d74f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/checkpattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def expand_starred_pattern_types(self,
"""Undoes the contraction done by contract_starred_pattern_types.
For example if the sequence pattern is [a, *b, c] and types [bool, int, str] are extended
to lenght 4 the result is [bool, int, int, str].
to length 4 the result is [bool, int, int, str].
"""
if star_pos is None:
return types
Expand Down

0 comments on commit b7d74f3

Please sign in to comment.