Skip to main content

method_has_no_args

Return True if a method only accepts 'self'.

def method_has_no_args(
meth: callable
) - > boolean

Return True if a method only accepts 'self'.

Parameters

NameTypeDescription
methcallableThe method or function object to inspect for parameter count

Returns

TypeDescription
booleanTrue if the method has no arguments beyond the instance reference, False otherwise