Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ Foo
Class
Foo
extra_tests/snippets/syntax_class.py:5–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
4
5
class
Foo:
6
def
__init__(self, x):
7
assert x == 5
8
self.x = x
9
10
def
square(self):
11
return
self.x * self.x
12
13
y = 7
14
15
16
foo = Foo(5)
Callers
1
syntax_class.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected