MCPcopy Create free account
hub / github.com/bpython/bpython / fun_annotations

Method fun_annotations

bpython/test/test_inspection.py:163–171  ·  view source on GitHub ↗

Return a list of numbers Example: ======== C.cmethod(1337, [1, 2]) # => [1, 2, 1337]

(number: int, lst: list[int] = [])

Source from the content-addressed store, hash-verified

161 return lst + [number]
162
163 def fun_annotations(number: int, lst: list[int] = []) -> list[int]:
164 """
165 Return a list of numbers
166
167 Example:
168 ========
169 C.cmethod(1337, [1, 2]) # => [1, 2, 1337]
170 """
171 return lst + [number]
172
173 props = inspection.getfuncprops("fun", fun)
174 self.assertEqual(props.func, "fun")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected