(self, type_)
| 98 | """ |
| 99 | |
| 100 | def __init__(self, type_): |
| 101 | # Because we override __setattr__, we need to attach these attributes using |
| 102 | # the superclass' setattr. |
| 103 | object.__setattr__(self, 'type', type_) |
| 104 | object.__setattr__(self, '_stack', []) |
| 105 | if not hasattr(type_, 'no_root'): |
| 106 | self.enter() |
| 107 | |
| 108 | def enter(self): |
| 109 | self._stack.append(self.type()) |
nothing calls this directly
no test coverage detected