(self, d: Dict[str, Any])
| 127 | return langhelpers._exec_code_in_env(meth_text, {}, method_name) |
| 128 | |
| 129 | def _shallow_from_dict(self, d: Dict[str, Any]) -> None: |
| 130 | cls = self.__class__ |
| 131 | |
| 132 | shallow_from_dict: Callable[[HasShallowCopy, Dict[str, Any]], None] |
| 133 | try: |
| 134 | shallow_from_dict = cls.__dict__[ |
| 135 | "_generated_shallow_from_dict_traversal" |
| 136 | ] |
| 137 | except KeyError: |
| 138 | shallow_from_dict = self._generate_shallow_from_dict( |
| 139 | cls._traverse_internals, |
| 140 | "_generated_shallow_from_dict_traversal", |
| 141 | ) |
| 142 | |
| 143 | cls._generated_shallow_from_dict_traversal = shallow_from_dict # type: ignore # noqa: E501 |
| 144 | |
| 145 | shallow_from_dict(self, d) |
| 146 | |
| 147 | def _shallow_to_dict(self) -> Dict[str, Any]: |
| 148 | cls = self.__class__ |
no test coverage detected