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

Method load

github/MainClass.py:1017–1025  ·  view source on GitHub ↗

Loads (unpickles) a PyGithub object from a file-like object. :param f: the file-like object to unpickle from :return: the unpickled object

(self, f: BinaryIO)

Source from the content-addressed store, hash-verified

1015 pickle.dump((obj.__class__, obj.raw_data, obj.raw_headers), file, protocol)
1016
1017 def load(self, f: BinaryIO) -> Any:
1018 """
1019 Loads (unpickles) a PyGithub object from a file-like object.
1020
1021 :param f: the file-like object to unpickle from
1022 :return: the unpickled object
1023
1024 """
1025 return self.create_from_raw_data(*pickle.load(f))
1026
1027 def get_oauth_application(self, client_id: str, client_secret: str) -> ApplicationOAuth:
1028 return github.ApplicationOAuth.ApplicationOAuth(

Callers 12

mainFunction · 0.80
__init__Method · 0.80
read_jsonMethod · 0.80
applyMethod · 0.80
indexMethod · 0.80
suggest_pathsMethod · 0.80
suggest_schemasMethod · 0.80
create_classMethod · 0.80
create_methodMethod · 0.80
testLoadMethod · 0.80
testLoadAndUpdateMethod · 0.80

Calls 1

create_from_raw_dataMethod · 0.95

Tested by

no test coverage detected