(self, requester: Requester)
| 460 | return self._token |
| 461 | |
| 462 | def withRequester(self, requester: Requester) -> AppUserAuth: |
| 463 | assert isinstance(requester, Requester), requester |
| 464 | super().withRequester(requester.withAuth(None)) |
| 465 | |
| 466 | # imported here to avoid circular import |
| 467 | from github.ApplicationOAuth import ApplicationOAuth |
| 468 | |
| 469 | self.__app = ApplicationOAuth( |
| 470 | # take requester given to super().withRequester, not given to this method |
| 471 | super().requester, |
| 472 | headers={}, |
| 473 | attributes={ |
| 474 | "client_id": self._client_id, |
| 475 | "client_secret": self._client_secret, |
| 476 | }, |
| 477 | ) |
| 478 | |
| 479 | return self |
| 480 | |
| 481 | @property |
| 482 | def _is_expired(self) -> bool: |
no test coverage detected