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

Method fun

bpython/test/test_inspection.py:153–161  ·  view source on GitHub ↗

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

(number, lst=[])

Source from the content-addressed store, hash-verified

151
152 def test_issue_966_freestanding(self):
153 def fun(number, lst=[]):
154 """
155 Return a list of numbers
156
157 Example:
158 ========
159 C.cmethod(1337, [1, 2]) # => [1, 2, 1337]
160 """
161 return lst + [number]
162
163 def fun_annotations(number: int, lst: list[int] = []) -> list[int]:
164 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected