Skip to content

Commit d9afbfc

Browse files
committed
sourcegraph#86 - Updates test snapshots
1 parent f358b1a commit d9afbfc

File tree

8 files changed

+38
-77
lines changed

8 files changed

+38
-77
lines changed

packages/pyright-scip/snapshots/input/enclosing_range_class/advanced.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# format-options: showRanges
12
def class_decorator(cls):
23
def wrapper(*args, **kwargs):
34
return cls(*args, **kwargs)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# format-options: showRanges
12
class Test():
23
pass

packages/pyright-scip/snapshots/input/enclosing_range_function/advanced.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# format-options: showRanges
12
def decorator(func):
23
def wrapper(*args, **kwargs):
34
return func(*args, **kwargs)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# format-options: showRanges
12
def simple(x):
23
return x
Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,50 @@
11
# < definition scip-python python snapshot-util 0.1 advanced/__init__:
2-
#documentation (module) advanced
32

3+
# format-options: showRanges
4+
# ⌄ start enclosing_range scip-python python snapshot-util 0.1 advanced/class_decorator().
45
def class_decorator(cls):
5-
# ^^^^^^^^^^^^^^^ definition <enclosing 0, 0, 3, 18> snapshot-util 0.1 advanced/class_decorator().
6-
# documentation ```python
7-
# > def class_decorator(
8-
# > cls
9-
# > ): # -> (*args: Unknown, **kwargs: Unkno...
10-
# > ```
6+
# ^^^^^^^^^^^^^^^ definition snapshot-util 0.1 advanced/class_decorator().
117
# ^^^ definition snapshot-util 0.1 advanced/class_decorator().(cls)
8+
# ⌄ start enclosing_range scip-python python snapshot-util 0.1 advanced/class_decorator().wrapper().
129
def wrapper(*args, **kwargs):
13-
# ^^^^^^^ definition <enclosing 1, 4, 2, 35> snapshot-util 0.1 advanced/class_decorator().wrapper().
14-
# documentation ```python
15-
# > def wrapper(
16-
# > *args,
17-
# > **kwargs
18-
# > ):
19-
# > ```
10+
# ^^^^^^^ definition snapshot-util 0.1 advanced/class_decorator().wrapper().
2011
# ^^^^ definition snapshot-util 0.1 advanced/class_decorator().wrapper().(args)
2112
# ^^^^^^ definition snapshot-util 0.1 advanced/class_decorator().wrapper().(kwargs)
2213
return cls(*args, **kwargs)
2314
# ^^^ reference snapshot-util 0.1 advanced/class_decorator().(cls)
2415
# ^^^^ reference snapshot-util 0.1 advanced/class_decorator().wrapper().(args)
2516
# ^^^^^^ reference snapshot-util 0.1 advanced/class_decorator().wrapper().(kwargs)
17+
# ⌃ end enclosing_range scip-python python snapshot-util 0.1 advanced/class_decorator().wrapper().
2618
return wrapper
2719
# ^^^^^^^ reference snapshot-util 0.1 advanced/class_decorator().wrapper().
20+
# ⌃ end enclosing_range scip-python python snapshot-util 0.1 advanced/class_decorator().
2821

22+
# ⌄ start enclosing_range scip-python python snapshot-util 0.1 advanced/Test#
2923
@class_decorator
3024
#^^^^^^^^^^^^^^^ reference snapshot-util 0.1 advanced/class_decorator().
3125
class Test:
32-
# ^^^^ definition <enclosing 5, 0, 11, 21> snapshot-util 0.1 advanced/Test#
33-
# documentation ```python
34-
# > @class_decorator
35-
# > class Test:
36-
# > ```
3726
# ^^^^ definition snapshot-util 0.1 advanced/Test#
27+
# ^^^^ definition snapshot-util 0.1 advanced/Test#
28+
# ⌄ start enclosing_range scip-python python snapshot-util 0.1 advanced/Test#__init__().
3829
def __init__(self, x: float):
39-
# ^^^^^^^^ definition <enclosing 7, 4, 8, 18> snapshot-util 0.1 advanced/Test#__init__().
40-
# documentation ```python
41-
# > def __init__(
42-
# > self,
43-
# > x: float
44-
# > ) -> None:
45-
# > ```
30+
# ^^^^^^^^ definition snapshot-util 0.1 advanced/Test#__init__().
4631
# ^^^^ definition snapshot-util 0.1 advanced/Test#__init__().(self)
4732
# ^ definition snapshot-util 0.1 advanced/Test#__init__().(x)
4833
# ^^^^^ reference python-stdlib 3.11 builtins/float#
49-
# external documentation ```python
50-
# > (class) float
51-
# > ```
5234
self.x = x
5335
# ^^^^ reference snapshot-util 0.1 advanced/Test#__init__().(self)
5436
# ^ definition snapshot-util 0.1 advanced/Test#x.
55-
# documentation ```python
56-
# > (variable) x: float
57-
# > ```
5837
# ^ reference snapshot-util 0.1 advanced/Test#__init__().(x)
38+
# ⌃ end enclosing_range scip-python python snapshot-util 0.1 advanced/Test#__init__().
5939

40+
# ⌄ start enclosing_range scip-python python snapshot-util 0.1 advanced/Test#test().
6041
def test(self) -> float:
61-
# ^^^^ definition <enclosing 10, 4, 11, 21> snapshot-util 0.1 advanced/Test#test().
62-
# documentation ```python
63-
# > def test(
64-
# > self
65-
# > ) -> float:
66-
# > ```
42+
# ^^^^ definition snapshot-util 0.1 advanced/Test#test().
6743
# ^^^^ definition snapshot-util 0.1 advanced/Test#test().(self)
6844
# ^^^^^ reference python-stdlib 3.11 builtins/float#
6945
return self.x
7046
# ^^^^ reference snapshot-util 0.1 advanced/Test#test().(self)
7147
# ^ reference snapshot-util 0.1 advanced/Test#x.
48+
# ⌃ end enclosing_range scip-python python snapshot-util 0.1 advanced/Test#test().
49+
# ⌃ end enclosing_range scip-python python snapshot-util 0.1 advanced/Test#
7250

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# < definition scip-python python snapshot-util 0.1 simple/__init__:
2-
#documentation (module) simple
32

3+
# format-options: showRanges
4+
# ⌄ start enclosing_range scip-python python snapshot-util 0.1 simple/Test#
45
class Test():
5-
# ^^^^ definition <enclosing 0, 0, 1, 6> snapshot-util 0.1 simple/Test#
6-
# documentation ```python
7-
# > class Test:
8-
# > ```
6+
# ^^^^ definition snapshot-util 0.1 simple/Test#
97
# ^^^^ definition snapshot-util 0.1 simple/Test#
108
pass
9+
# ⌃ end enclosing_range scip-python python snapshot-util 0.1 simple/Test#
1110

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,37 @@
11
# < definition scip-python python snapshot-util 0.1 advanced/__init__:
2-
#documentation (module) advanced
32

3+
# format-options: showRanges
4+
# ⌄ start enclosing_range scip-python python snapshot-util 0.1 advanced/decorator().
45
def decorator(func):
5-
# ^^^^^^^^^ definition <enclosing 0, 0, 3, 18> snapshot-util 0.1 advanced/decorator().
6-
# documentation ```python
7-
# > def decorator(
8-
# > func
9-
# > ): # -> (*args: Unknown, **kwargs: Unkno...
10-
# > ```
6+
# ^^^^^^^^^ definition snapshot-util 0.1 advanced/decorator().
117
# ^^^^ definition snapshot-util 0.1 advanced/decorator().(func)
8+
# ⌄ start enclosing_range scip-python python snapshot-util 0.1 advanced/decorator().wrapper().
129
def wrapper(*args, **kwargs):
13-
# ^^^^^^^ definition <enclosing 1, 4, 2, 36> snapshot-util 0.1 advanced/decorator().wrapper().
14-
# documentation ```python
15-
# > def wrapper(
16-
# > *args,
17-
# > **kwargs
18-
# > ):
19-
# > ```
10+
# ^^^^^^^ definition snapshot-util 0.1 advanced/decorator().wrapper().
2011
# ^^^^ definition snapshot-util 0.1 advanced/decorator().wrapper().(args)
2112
# ^^^^^^ definition snapshot-util 0.1 advanced/decorator().wrapper().(kwargs)
2213
return func(*args, **kwargs)
2314
# ^^^^ reference snapshot-util 0.1 advanced/decorator().(func)
2415
# ^^^^ reference snapshot-util 0.1 advanced/decorator().wrapper().(args)
2516
# ^^^^^^ reference snapshot-util 0.1 advanced/decorator().wrapper().(kwargs)
17+
# ⌃ end enclosing_range scip-python python snapshot-util 0.1 advanced/decorator().wrapper().
2618
return wrapper
2719
# ^^^^^^^ reference snapshot-util 0.1 advanced/decorator().wrapper().
20+
# ⌃ end enclosing_range scip-python python snapshot-util 0.1 advanced/decorator().
2821

22+
# ⌄ start enclosing_range scip-python python snapshot-util 0.1 advanced/func().
2923
@decorator
3024
#^^^^^^^^^ reference snapshot-util 0.1 advanced/decorator().
3125
def func(x: float) -> float:
32-
# ^^^^ definition <enclosing 5, 0, 9, 15> snapshot-util 0.1 advanced/func().
33-
# documentation ```python
34-
# > @decorator
35-
# > def func(
36-
# > x: float
37-
# > ) -> float:
38-
# > ```
26+
# ^^^^ definition snapshot-util 0.1 advanced/func().
3927
# ^ definition snapshot-util 0.1 advanced/func().(x)
4028
# ^^^^^ reference python-stdlib 3.11 builtins/float#
41-
# external documentation ```python
42-
# > (class) float
43-
# > ```
4429
# ^^^^^ reference python-stdlib 3.11 builtins/float#
4530
test = x
4631
# ^^^^ definition local 0
47-
# documentation ```python
48-
# > builtins.float
49-
# > ```
5032
# ^ reference snapshot-util 0.1 advanced/func().(x)
5133

5234
return test
5335
# ^^^^ reference local 0
36+
# ⌃ end enclosing_range scip-python python snapshot-util 0.1 advanced/func().
5437

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
# < definition scip-python python snapshot-util 0.1 simple/__init__:
2-
#documentation (module) simple
32

3+
# format-options: showRanges
4+
# ⌄ start enclosing_range scip-python python snapshot-util 0.1 simple/simple().
45
def simple(x):
5-
# ^^^^^^ definition <enclosing 0, 0, 1, 10> snapshot-util 0.1 simple/simple().
6-
# documentation ```python
7-
# > def simple(
8-
# > x
9-
# > ):
10-
# > ```
6+
# ^^^^^^ definition snapshot-util 0.1 simple/simple().
117
# ^ definition snapshot-util 0.1 simple/simple().(x)
128
return x
139
# ^ reference snapshot-util 0.1 simple/simple().(x)
10+
# ⌃ end enclosing_range scip-python python snapshot-util 0.1 simple/simple().
1411

0 commit comments

Comments
 (0)