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

Method make

tests/GithubObject.py:70–71  ·  view source on GitHub ↗
(type_name: str | None, fallback_type: str | None = "User")

Source from the content-addressed store, hash-verified

68 class_and_names = [(ghusr.NamedUser, "User"), (ghorg.Organization, "Organization")]
69
70 def make(type_name: str | None, fallback_type: str | None = "User"):
71 return obj._makeUnionClassAttributeFromTypeName(type_name, fallback_type, data, *class_and_names)
72
73 none = make(None)
74 usr = make("User")

Callers

nothing calls this directly

Tested by

no test coverage detected