Merge Gist type stub back to source (#2655)

This commit is contained in:
Trim21
2023-08-30 09:08:02 +02:00
committed by GitHub
parent ac36f6a9e2
commit a972be24d2
3 changed files with 70 additions and 196 deletions
+2 -2
View File
@@ -273,12 +273,12 @@ class GithubObject:
def _makeDictOfStringsToClassesAttribute(
self,
klass: Type["NonCompletableGithubObject"],
klass: Type[T_gh],
value: Dict[
str,
Union[int, Dict[str, Union[str, int, None]], Dict[str, Union[str, int]]],
],
) -> Union[_ValuedAttribute, _BadAttribute]:
) -> Attribute[Dict[str, T_gh]]:
if isinstance(value, dict) and all(
isinstance(key, str) and isinstance(element, dict) for key, element in value.items()
):