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

Function is_optional_list

github/GithubObject.py:145–146  ·  view source on GitHub ↗
(v: Any, type: type | tuple[type, ...])

Source from the content-addressed store, hash-verified

143
144
145def is_optional_list(v: Any, type: type | tuple[type, ...]) -> bool:
146 return isinstance(v, _NotSetType) or isinstance(v, list) and all(isinstance(element, type) for element in v)
147
148
149camel_to_snake_case_regexp = re.compile(r"(?<!^)(?=[A-Z])")

Callers 15

editMethod · 0.90
create_reviewMethod · 0.90
create_review_requestMethod · 0.90
delete_review_requestMethod · 0.90
editMethod · 0.90
create_hookMethod · 0.90
create_secretMethod · 0.90
create_teamMethod · 0.90
edit_hookMethod · 0.90
get_issuesMethod · 0.90
invite_userMethod · 0.90
create_hookMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…