MCPcopy
hub / github.com/PyGithub/PyGithub / PythonType

Class PythonType

scripts/openapi.py:205–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203
204@dataclasses.dataclass(frozen=True)
205class PythonType:
206 type: str
207 inner_types: list[PythonType | GithubClass] | None = None
208
209 def __hash__(self):
210 return hash(self.__repr__())
211
212 def __repr__(self):
213 return (
214 f"{self.type}[{', '.join([str(inner) for inner in self.inner_types])}]" if self.inner_types else self.type
215 )
216
217 def __lt__(self, other) -> bool:
218 return self.__repr__() < other.__repr__()
219
220
221@dataclasses.dataclass(frozen=True)

Callers 2

as_python_typeFunction · 0.85
create_methodMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…