Skip to content

Commit a7b18f5

Browse files
Python
1 parent eba47a5 commit a7b18f5

26 files changed

+457
-15
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
class Foo:
2+
def __init__(
3+
self,
4+
aaa: str,
5+
bbb: int
6+
):
7+
pass
8+
---
9+
10+
[#1 Content] =
11+
[#1 Domain] = 2:8-2:12
12+
>----<
13+
2| self,
14+
15+
[#1 Removal] = 2:8-3:8
16+
>-----
17+
2| self,
18+
3| aaa: str,
19+
--------<
20+
21+
[#1 Trailing delimiter] = 2:12-3:8
22+
>-
23+
2| self,
24+
3| aaa: str,
25+
--------<
26+
27+
[#1 Insertion delimiter] = ",\n"
28+
29+
30+
[#2 Content] =
31+
[#2 Domain] = 3:8-3:16
32+
>--------<
33+
3| aaa: str,
34+
35+
[#2 Removal] = 3:8-4:8
36+
>---------
37+
3| aaa: str,
38+
4| bbb: int
39+
--------<
40+
41+
[#2 Leading delimiter] = 2:12-3:8
42+
>-
43+
2| self,
44+
3| aaa: str,
45+
--------<
46+
47+
[#2 Trailing delimiter] = 3:16-4:8
48+
>-
49+
3| aaa: str,
50+
4| bbb: int
51+
--------<
52+
53+
[#2 Insertion delimiter] = ",\n"
54+
55+
56+
[#3 Content] =
57+
[#3 Domain] = 4:8-4:16
58+
>--------<
59+
4| bbb: int
60+
61+
[#3 Removal] = 3:16-4:16
62+
>-
63+
3| aaa: str,
64+
4| bbb: int
65+
----------------<
66+
67+
[#3 Leading delimiter] = 3:16-4:8
68+
>-
69+
3| aaa: str,
70+
4| bbb: int
71+
--------<
72+
73+
[#3 Insertion delimiter] = ",\n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
lambda a, b: pass
2+
---
3+
4+
[Range] = 0:7-0:11
5+
>----<
6+
0| lambda a, b: pass
7+
8+
[Domain] = 0:0-0:17
9+
>-----------------<
10+
0| lambda a, b: pass
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
lambda a, b: pass
2+
---
3+
4+
[#1 Content] =
5+
[#1 Domain] = 0:7-0:8
6+
>-<
7+
0| lambda a, b: pass
8+
9+
[#1 Removal] = 0:7-0:10
10+
>---<
11+
0| lambda a, b: pass
12+
13+
[#1 Trailing delimiter] = 0:8-0:10
14+
>--<
15+
0| lambda a, b: pass
16+
17+
[#1 Insertion delimiter] = ", "
18+
19+
20+
[#2 Content] =
21+
[#2 Domain] = 0:10-0:11
22+
>-<
23+
0| lambda a, b: pass
24+
25+
[#2 Removal] = 0:8-0:11
26+
>---<
27+
0| lambda a, b: pass
28+
29+
[#2 Leading delimiter] = 0:8-0:10
30+
>--<
31+
0| lambda a, b: pass
32+
33+
[#2 Insertion delimiter] = ", "
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
class Foo:
2+
def bar(
3+
aaa: str,
4+
bbb: int
5+
):
6+
pass
7+
---
8+
9+
[#1 Content] =
10+
[#1 Domain] = 2:8-2:16
11+
>--------<
12+
2| aaa: str,
13+
14+
[#1 Removal] = 2:8-3:8
15+
>---------
16+
2| aaa: str,
17+
3| bbb: int
18+
--------<
19+
20+
[#1 Trailing delimiter] = 2:16-3:8
21+
>-
22+
2| aaa: str,
23+
3| bbb: int
24+
--------<
25+
26+
[#1 Insertion delimiter] = ",\n"
27+
28+
29+
[#2 Content] =
30+
[#2 Domain] = 3:8-3:16
31+
>--------<
32+
3| bbb: int
33+
34+
[#2 Removal] = 2:16-3:16
35+
>-
36+
2| aaa: str,
37+
3| bbb: int
38+
----------------<
39+
40+
[#2 Leading delimiter] = 2:16-3:8
41+
>-
42+
2| aaa: str,
43+
3| bbb: int
44+
--------<
45+
46+
[#2 Insertion delimiter] = ",\n"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class Foo:
2+
def __init__(self, aaa: str, bbb: int):
3+
pass
4+
---
5+
6+
[Content] =
7+
[Removal] = 1:17-1:41
8+
>------------------------<
9+
1| def __init__(self, aaa: str, bbb: int):
10+
11+
[Domain] = 1:4-2:12
12+
>---------------------------------------
13+
1| def __init__(self, aaa: str, bbb: int):
14+
2| pass
15+
------------<
16+
17+
[Insertion delimiter] = ", "
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
class Foo:
2+
def __init__(
3+
self,
4+
aaa: str,
5+
bbb: int
6+
):
7+
pass
8+
---
9+
10+
[Content] =
11+
[Removal] = 1:17-5:4
12+
>
13+
1| def __init__(
14+
2| self,
15+
3| aaa: str,
16+
4| bbb: int
17+
5| ):
18+
----<
19+
20+
[Domain] = 1:4-6:12
21+
>-------------
22+
1| def __init__(
23+
2| self,
24+
3| aaa: str,
25+
4| bbb: int
26+
5| ):
27+
6| pass
28+
------------<
29+
30+
[Insertion delimiter] = ",\n"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class Foo:
2+
def __init__():
3+
pass
4+
---
5+
6+
[Content] =
7+
[Removal] = 1:17-1:17
8+
><
9+
1| def __init__():
10+
11+
[Domain] = 1:4-2:12
12+
>---------------
13+
1| def __init__():
14+
2| pass
15+
------------<
16+
17+
[Insertion delimiter] = ""
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
lambda a, b: pass
2+
---
3+
4+
[Content] = 0:7-0:11
5+
>----<
6+
0| lambda a, b: pass
7+
8+
[Removal] = 0:6-0:11
9+
>-----<
10+
0| lambda a, b: pass
11+
12+
[Leading delimiter] = 0:6-0:7
13+
>-<
14+
0| lambda a, b: pass
15+
16+
[Domain] = 0:0-0:17
17+
>-----------------<
18+
0| lambda a, b: pass
19+
20+
[Insertion delimiter] = ", "
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
lambda: pass
2+
---
3+
4+
[Content] =
5+
[Removal] = 0:6-0:6
6+
><
7+
0| lambda: pass
8+
9+
[Domain] = 0:0-0:12
10+
>------------<
11+
0| lambda: pass
12+
13+
[Insertion delimiter] = " "
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class Foo:
2+
def bar(aaa: str, bbb: int):
3+
pass
4+
---
5+
6+
[Content] =
7+
[Removal] = 1:12-1:30
8+
>------------------<
9+
1| def bar(aaa: str, bbb: int):
10+
11+
[Domain] = 1:4-2:12
12+
>----------------------------
13+
1| def bar(aaa: str, bbb: int):
14+
2| pass
15+
------------<
16+
17+
[Insertion delimiter] = ", "

0 commit comments

Comments
 (0)