We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dfe218 commit 5164f4bCopy full SHA for 5164f4b
1 file changed
languages/tree-sitter-stack-graphs-python/test/not_a_method.py
@@ -0,0 +1,13 @@
1
+class Foo:
2
+ a = 1
3
+
4
+ # Self can be named anything
5
+ def first_method(actually_self):
6
+ return actually_self.a
7
+ # ^ defined: 2
8
9
+ def second_method(self):
10
+ # First argument here is not self
11
+ def not_a_method(not_self):
12
+ return not_self.a
13
+ # ^ defined:
0 commit comments