Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 5164f4b

Browse files
committed
test: not a method
1 parent 3dfe218 commit 5164f4b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)