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

Method __init__

github/InputGitAuthor.py:50–57  ·  view source on GitHub ↗
(self, name: str, email: str, date: Opt[str] = NotSet)

Source from the content-addressed store, hash-verified

48 """
49
50 def __init__(self, name: str, email: str, date: Opt[str] = NotSet):
51 assert isinstance(name, str), name
52 assert isinstance(email, str), email
53 assert is_optional(date, str), date # @todo Datetime?
54
55 self.__name: str = name
56 self.__email: str = email
57 self.__date: Opt[str] = date
58
59 def __repr__(self) -> str:
60 return f'InputGitAuthor(name="{self.__name}")'

Callers

nothing calls this directly

Calls 1

is_optionalFunction · 0.90

Tested by

no test coverage detected