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

Method withAuth

github/Requester.py:571–581  ·  view source on GitHub ↗

Create a new requester instance with identical configuration but the given authentication method. :param auth: authentication method :return: new Requester instance

(self, auth: Auth | None)

Source from the content-addressed store, hash-verified

569 return self.__auth
570
571 def withAuth(self, auth: Auth | None) -> Requester:
572 """
573 Create a new requester instance with identical configuration but the given authentication method.
574
575 :param auth: authentication method
576 :return: new Requester instance
577
578 """
579 kwargs = self.kwargs
580 kwargs.update(auth=auth)
581 return Requester(**kwargs)
582
583 @property
584 def is_lazy(self) -> bool:

Callers 6

testWithAuthMethod · 0.95
withRequesterMethod · 0.80
withRequesterMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 2

RequesterClass · 0.70
updateMethod · 0.45

Tested by

no test coverage detected