MCPcopy Index your code
hub / github.com/python/cpython / use_meth_o

Method use_meth_o

Tools/clinic/libclinic/parse_args.py:303–309  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

301 and (self.parameters[0].group or self.parameters[-1].group)))
302
303 def use_meth_o(self) -> bool:
304 return (len(self.parameters) == 1
305 and self.parameters[0].is_positional_only()
306 and not self.converters[0].is_optional()
307 and not self.varpos
308 and not self.requires_defining_class
309 and not self.is_new_or_init())
310
311 def use_simple_return(self) -> bool:
312 return (self.func.return_converter.type == 'PyObject *'

Callers 1

parse_argsMethod · 0.95

Calls 3

is_new_or_initMethod · 0.95
is_positional_onlyMethod · 0.80
is_optionalMethod · 0.45

Tested by

no test coverage detected