MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / withRequester

Method withRequester

github/Auth.py:462–479  ·  view source on GitHub ↗
(self, requester: Requester)

Source from the content-addressed store, hash-verified

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:

Callers 1

__init__Method · 0.95

Calls 3

ApplicationOAuthClass · 0.90
withAuthMethod · 0.80
withRequesterMethod · 0.45

Tested by

no test coverage detected