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

Method cmethod

bpython/test/test_inspection.py:186–194  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

184 class Issue966(Sequence):
185 @classmethod
186 def cmethod(cls, number: int, lst: list[int] = []):
187 """
188 Return a list of numbers
189
190 Example:
191 ========
192 C.cmethod(1337, [1, 2]) # => [1, 2, 1337]
193 """
194 return lst + [number]
195
196 @classmethod
197 def bmethod(cls, number, lst):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected