MCPcopy 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
5class 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
16foo = Foo(5)

Callers 1

syntax_class.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected