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

Method close

github/MainClass.py:290–299  ·  view source on GitHub ↗

Close connections to the server. Alternatively, use the Github object as a context manager: .. code-block:: python with github.Github(...) as gh: # do something

(self)

Source from the content-addressed store, hash-verified

288 return Github(**kwargs)
289
290 def close(self) -> None:
291 """Close connections to the server. Alternatively, use the Github
292 object as a context manager:
293
294 .. code-block:: python
295
296 with github.Github(...) as gh:
297 # do something
298 """
299 self.__requester.close()
300
301 def __enter__(self) -> Github:
302 return self

Callers 2

__exit__Method · 0.95
create_classMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected