MCPcopy Create free account
hub / github.com/alibaba/bigcomputing / __get__

Method __get__

DIEN/wrap_time.py:71–86  ·  view source on GitHub ↗

Summary Args: instance (TYPE): Description cls (TYPE): Description Returns: TYPE: Description

(self, instance, cls)

Source from the content-addressed store, hash-verified

69 return result
70
71 def __get__(self, instance, cls):
72 """Summary
73
74 Args:
75 instance (TYPE): Description
76 cls (TYPE): Description
77
78 Returns:
79 TYPE: Description
80 """
81 if instance is None:
82 return self
83 else:
84 self.class_name = "%s." % type(instance).__name__
85 # bind this method to instance
86 return types.MethodType(self, instance)
87
88 return time_cls
89

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected