MCPcopy Index your code
hub / github.com/hugapi/hug / __init__

Method __init__

hug/directives.py:117–119  ·  view source on GitHub ↗
(self, default=None, api_version=None, **kwargs)

Source from the content-addressed store, hash-verified

115 __slots__ = ("api_version", "api")
116
117 def __init__(self, default=None, api_version=None, **kwargs):
118 self.api_version = api_version
119 self.api = api(**kwargs)
120
121 def __getattr__(self, name):
122 function = self.api.http.versioned.get(self.api_version, {}).get(name, None)

Callers

nothing calls this directly

Calls 1

apiFunction · 0.70

Tested by

no test coverage detected