(self)
| 1016 | self._http.close() |
| 1017 | |
| 1018 | def __del__(self) -> None: |
| 1019 | # Best-effort cleanup; tests + short-lived callers may not call |
| 1020 | # close() explicitly. |
| 1021 | with contextlib.suppress(Exception): |
| 1022 | self._http.close() |
| 1023 | |
| 1024 | def current_access_token(self) -> str: |
| 1025 | """Return a non-expired access token, refreshing if needed.""" |