| Total Complexity | 1 |
| Total Lines | 8 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from functools import partial |
||
| 7 | class InputRegistry(UserDict, object): |
||
| 8 | """Uses Borg design pattern. Core idea is that there is a global registry for each step's |
||
| 9 | possible methods |
||
| 10 | """ |
||
| 11 | __shared_state = {} |
||
| 12 | def __init__(self): |
||
| 13 | self.__dict__ = self.__shared_state |
||
| 14 | super(InputRegistry, self).__init__() |
||
| 15 | |||
| 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.