Total Complexity | 1 |
Total Lines | 8 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from functools import partial |
||
17 | class OutputRegistry(UserDict, object): |
||
18 | """Uses Borg design pattern. Core idea is that there is a global registry for each step's |
||
19 | possible methods |
||
20 | """ |
||
21 | __shared_state = {} |
||
22 | def __init__(self): |
||
23 | self.__dict__ = self.__shared_state |
||
24 | super(OutputRegistry, self).__init__() |
||
25 | |||
35 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.