Update either a set or dict
(self, other: t.Any)
| 157 | _update = Any() |
| 158 | |
| 159 | def update(self, other: t.Any) -> None: |
| 160 | """Update either a set or dict""" |
| 161 | if self._update is None: |
| 162 | if isinstance(other, dict): |
| 163 | self._update = {} |
| 164 | else: |
| 165 | self._update = set() |
| 166 | self._update.update(other) |
| 167 | |
| 168 | # set methods |
| 169 | def add(self, obj: t.Any) -> None: |
no outgoing calls