Skip to content

Commit 1d144f0

Browse files
authored
fix: typo fix for positional-only and keyword-only arguments (#15231)
Forgotten comma between parameters.
1 parent c1fb57d commit 1d144f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/cheat_sheet_py3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Functions
133133
# Mypy understands positional-only and keyword-only arguments
134134
# Positional-only arguments can also be marked by using a name starting with
135135
# two underscores
136-
def quux(x: int, / *, y: int) -> None:
136+
def quux(x: int, /, *, y: int) -> None:
137137
pass
138138
139139
quux(3, y=5) # Ok

0 commit comments

Comments
 (0)