summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-03-24 14:44:57 -0700
committerGitHub <noreply@github.com>2020-03-24 14:44:57 -0700
commit0e0b95883313b53d377c2df51349bf10d9571cfb (patch)
treea6032b4381c86815021cb863cb59e88a3809982e /testsuite
parenta9e8ebcf821b99c7587cc0b566396fc3f1c9d81b (diff)
parente7abf262b6ffb992bf53bb8e33e213d77928d64a (diff)
downloadpep8-0e0b95883313b53d377c2df51349bf10d9571cfb.tar.gz
Merge pull request #918 from asottile/only_positional
Fix E225 for PEP 570 all positional-only arguments
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/python38.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/testsuite/python38.py b/testsuite/python38.py
index 5f62a3f..57ee613 100644
--- a/testsuite/python38.py
+++ b/testsuite/python38.py
@@ -1,5 +1,17 @@
#: Okay
-def f(a, /, b):
+def f1(a, /, b):
+ pass
+
+
+def f2(a, b, /):
+ pass
+
+
+def f3(
+ a,
+ /,
+ b,
+):
pass
#: Okay
if x := 1: