Skip to content

Commit 379d0a1

Browse files
julthepsprytnykPierre-Sassoulas
authored
Add documentation examples for redundant-keyword-arg (#7064)
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
1 parent 3833013 commit 379d0a1

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def square(x):
2+
return x * x
3+
4+
5+
square(5, x=4) # [redundant-keyword-arg]

doc/data/messages/r/redundant-keyword-arg/details.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
# This is a placeholder for correct code for this message.
1+
def square(x):
2+
return x * x
3+
4+
5+
square(x=4)
6+
# or
7+
square(5)

0 commit comments

Comments
 (0)