We set the adapted methods in the object's dict.
(self, obj: T, **adapted_methods: Callable[..., Any])
| 75 | """ |
| 76 | |
| 77 | def __init__(self, obj: T, **adapted_methods: Callable[..., Any]) -> None: |
| 78 | """We set the adapted methods in the object's dict.""" |
| 79 | self.obj = obj |
| 80 | self.__dict__.update(adapted_methods) |
| 81 | |
| 82 | def __getattr__(self, attr: str) -> Any: |
| 83 | """All non-adapted calls are passed to the object.""" |