MCPcopy
hub / github.com/PyGithub/PyGithub / __init__

Method __init__

scripts/openapi.py:818–831  ·  view source on GitHub ↗
(
        self,
        module_name: str,
        class_name: str,
        properties: dict[str, (PythonType | GithubClass | None, bool)],
        deprecate: bool,
    )

Source from the content-addressed store, hash-verified

816
817class ApplySchemaBaseTransformer(CstTransformerBase, abc.ABC):
818 def __init__(
819 self,
820 module_name: str,
821 class_name: str,
822 properties: dict[str, (PythonType | GithubClass | None, bool)],
823 deprecate: bool,
824 ):
825 super().__init__()
826 self.module_name = module_name
827 self.class_name = class_name
828 properties = [Property(name=n, data_type=t, deprecated=d) for n, (t, d) in properties.items()]
829 self.properties = sorted(properties, key=lambda p: p.name)
830 self.all_properties = self.properties.copy()
831 self.deprecate = deprecate
832
833 @property
834 def current_property(self) -> Property | None:

Callers

nothing calls this directly

Calls 2

PropertyClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected