MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / argc_

Function argc_

python-package/lightgbmmt/compat.py:20–22  ·  view source on GitHub ↗

Count the number of arguments of a function.

(func)

Source from the content-addressed store, hash-verified

18 range_ = range
19
20 def argc_(func):
21 """Count the number of arguments of a function."""
22 return len(inspect.signature(func).parameters)
23
24 def decode_string(bytestring):
25 """Decode C bytestring to ordinary string."""

Callers 2

__call__Method · 0.85
__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected