MCPcopy Create free account
hub / github.com/ZiniuLu/Python-100-Days / __init__

Method __init__

Day66-75/code/main.py:31–35  ·  view source on GitHub ↗
(self, *, retry_times=3,
                 wait_secs=5, errors=(Exception, ))

Source from the content-addressed store, hash-verified

29class Retry(object):
30
31 def __init__(self, *, retry_times=3,
32 wait_secs=5, errors=(Exception, )):
33 self.retry_times = retry_times
34 self.wait_secs = wait_secs
35 self.errors = errors
36
37 def __call__(self, fn):
38

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected