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

Method bmethod

bpython/test/test_inspection.py:197–205  ·  view source on GitHub ↗

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

(cls, number, lst)

Source from the content-addressed store, hash-verified

195
196 @classmethod
197 def bmethod(cls, number, lst):
198 """
199 Return a list of numbers
200
201 Example:
202 ========
203 C.cmethod(1337, [1, 2]) # => [1, 2, 1337]
204 """
205 return lst + [number]
206
207 props = inspection.getfuncprops(
208 "bmethod", inspection.getattr_safe(Issue966, "bmethod")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected