MCPcopy Create free account
hub / github.com/SplootCode/splootcode / is_required_param

Function is_required_param

python/generate_tray.py:55–56  ·  view source on GitHub ↗
(param)

Source from the content-addressed store, hash-verified

53
54
55def is_required_param(param):
56 return (param['kind'] == 'POSITIONAL_ONLY' or param['kind'] == 'POSITIONAL_OR_KEYWORD') and 'default' not in param
57
58def get_entry_for_builtin_attr(key, typeName, attrName, builtin_docs):
59 entry = {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected