aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/parso/py3/tests/normalizer_issue_files/python.py
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/python/parso/py3/tests/normalizer_issue_files/python.py
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
downloadydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/python/parso/py3/tests/normalizer_issue_files/python.py')
-rw-r--r--contrib/python/parso/py3/tests/normalizer_issue_files/python.py180
1 files changed, 90 insertions, 90 deletions
diff --git a/contrib/python/parso/py3/tests/normalizer_issue_files/python.py b/contrib/python/parso/py3/tests/normalizer_issue_files/python.py
index 566e90360a..9afc3821b3 100644
--- a/contrib/python/parso/py3/tests/normalizer_issue_files/python.py
+++ b/contrib/python/parso/py3/tests/normalizer_issue_files/python.py
@@ -1,90 +1,90 @@
-#!/usr/bin/env python3
-from typing import ClassVar, List
-
-print(1, 2)
-
-
-# Annotated function (Issue #29)
-def foo(x: int) -> int:
- return x + 1
-
-
-# Annotated variables #575
-CONST: int = 42
-
-
-class Class:
- cls_var: ClassVar[str]
-
- def m(self):
- xs: List[int] = []
-
-
-# True and False are keywords in Python 3 and therefore need a space.
-#: E275:13 E275:14
-norman = True+False
-
-
-#: E302+3:0
-def a():
- pass
-
-async def b():
- pass
-
-
-# Okay
-async def add(a: int = 0, b: int = 0) -> int:
- return a + b
-
-
-# Previously E251 four times
-#: E221:5
-async def add(a: int = 0, b: int = 0) -> int:
- return a + b
-
-
-# Previously just E272+1:5 E272+4:5
-#: E302+3 E221:5 E221+3:5
-async def x():
- pass
-
-async def x(y: int = 1):
- pass
-
-
-#: E704:16
-async def f(x): return 2
-
-
-a[b1, :] == a[b1, ...]
-
-
-# Annotated Function Definitions
-# Okay
-def munge(input: AnyStr, sep: AnyStr = None, limit=1000,
- extra: Union[str, dict] = None) -> AnyStr:
- pass
-
-
-#: E225:24 E225:26
-def x(b: tuple = (1, 2))->int:
- return a + b
-
-
-#: E252:11 E252:12 E231:8
-def b(a:int=1):
- pass
-
-
-if alpha[:-i]:
- *a, b = (1, 2, 3)
-
-
-# Named only arguments
-def foo(*, asdf):
- pass
-
-
-def foo2(bar, *, asdf=2):
- pass
+#!/usr/bin/env python3
+from typing import ClassVar, List
+
+print(1, 2)
+
+
+# Annotated function (Issue #29)
+def foo(x: int) -> int:
+ return x + 1
+
+
+# Annotated variables #575
+CONST: int = 42
+
+
+class Class:
+ cls_var: ClassVar[str]
+
+ def m(self):
+ xs: List[int] = []
+
+
+# True and False are keywords in Python 3 and therefore need a space.
+#: E275:13 E275:14
+norman = True+False
+
+
+#: E302+3:0
+def a():
+ pass
+
+async def b():
+ pass
+
+
+# Okay
+async def add(a: int = 0, b: int = 0) -> int:
+ return a + b
+
+
+# Previously E251 four times
+#: E221:5
+async def add(a: int = 0, b: int = 0) -> int:
+ return a + b
+
+
+# Previously just E272+1:5 E272+4:5
+#: E302+3 E221:5 E221+3:5
+async def x():
+ pass
+
+async def x(y: int = 1):
+ pass
+
+
+#: E704:16
+async def f(x): return 2
+
+
+a[b1, :] == a[b1, ...]
+
+
+# Annotated Function Definitions
+# Okay
+def munge(input: AnyStr, sep: AnyStr = None, limit=1000,
+ extra: Union[str, dict] = None) -> AnyStr:
+ pass
+
+
+#: E225:24 E225:26
+def x(b: tuple = (1, 2))->int:
+ return a + b
+
+
+#: E252:11 E252:12 E231:8
+def b(a:int=1):
+ pass
+
+
+if alpha[:-i]:
+ *a, b = (1, 2, 3)
+
+
+# Named only arguments
+def foo(*, asdf):
+ pass
+
+
+def foo2(bar, *, asdf=2):
+ pass