summaryrefslogtreecommitdiff
path: root/t/t4018/python-indented-def
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-12-05 12:52:44 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-12-05 12:52:44 -0800
commit9502b616f187c567b93db69cd9c6f0028019bd15 (patch)
tree63c35ad83af6ad1ddc1059ce5132698d8e771530 /t/t4018/python-indented-def
parentMerge branch 'ec/fetch-mark-common-refs-trace2' (diff)
parentuserdiff: support Python async functions (diff)
downloadtgif-9502b616f187c567b93db69cd9c6f0028019bd15.tar.xz
Merge branch 'jh/userdiff-python-async'
The userdiff machinery has been taught that "async def" is another way to begin a "function" in Python. * jh/userdiff-python-async: userdiff: support Python async functions
Diffstat (limited to 't/t4018/python-indented-def')
-rw-r--r--t/t4018/python-indented-def7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t4018/python-indented-def b/t/t4018/python-indented-def
new file mode 100644
index 0000000000..208fbadd2b
--- /dev/null
+++ b/t/t4018/python-indented-def
@@ -0,0 +1,7 @@
+class Foo:
+ def RIGHT(self, x: int):
+ return [
+ 1,
+ 2,
+ ChangeMe,
+ ]