MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / auto_namedtuple

Function auto_namedtuple

testing/auto_namedtuple.py:6–13  ·  view source on GitHub ↗

Returns an automatic namedtuple object. Args: classname - The class name for the returned object. **kwargs - Properties to give the returned object.

(classname='auto_namedtuple', **kwargs)

Source from the content-addressed store, hash-verified

4
5
6def auto_namedtuple(classname='auto_namedtuple', **kwargs):
7 """Returns an automatic namedtuple object.
8
9 Args:
10 classname - The class name for the returned object.
11 **kwargs - Properties to give the returned object.
12 """
13 return (collections.namedtuple(classname, kwargs.keys())(**kwargs))

Callers 10

mock_commandsFunction · 0.90
foo_stagedFunction · 0.90
img_stagedFunction · 0.90
repo_with_commitsFunction · 0.90
sub_stagedFunction · 0.90
_get_default_versionFunction · 0.90
try_repo_optsFunction · 0.90
out_of_dateFunction · 0.90
hook_disappearingFunction · 0.90
run_optsFunction · 0.90

Calls

no outgoing calls

Tested by 9

mock_commandsFunction · 0.72
foo_stagedFunction · 0.72
img_stagedFunction · 0.72
repo_with_commitsFunction · 0.72
sub_stagedFunction · 0.72
_get_default_versionFunction · 0.72
try_repo_optsFunction · 0.72
out_of_dateFunction · 0.72
hook_disappearingFunction · 0.72