Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _subclass_container(self):
"""
Call subclasses via function to allow passing parent namespace to subclasses.
**Returns:** dict with subclass references.
"""
_parent_class = self
return_object = {}
class GetWrapper(Get):
def __init__(self):
self._parent_class = _parent_class
return_object['get'] = GetWrapper
class PostWrapper(Post):
def __init__(self):
self._parent_class = _parent_class
return_object['post'] = PostWrapper
class PutWrapper(Put):
def __init__(self):
self._parent_class = _parent_class
return_object['put'] = PutWrapper