| 63 | |
| 64 | |
| 65 | class _ClientConfigDescriptor: |
| 66 | def __init__(self, name): |
| 67 | self.name = name |
| 68 | |
| 69 | def __get__(self, obj, cls): |
| 70 | return obj.__dict__[self.name] |
| 71 | |
| 72 | def __set__(self, obj, value) -> None: |
| 73 | if self.name == "_websocket_interval": |
| 74 | warnings.warn( |
| 75 | "websocket_interval does nothing and will be removed", |
| 76 | DeprecationWarning, |
| 77 | stacklevel=2, |
| 78 | ) |
| 79 | obj.__dict__[self.name] = value |
| 80 | |
| 81 | |
| 82 | class ClientConfig: |