Enable mypy disallow_untyped_defs (#2609)

This commit is contained in:
Trim21
2023-07-14 21:47:24 +02:00
committed by GitHub
parent 8816889a7d
commit 294c0cc9c5
130 changed files with 597 additions and 412 deletions
+2 -2
View File
@@ -22,7 +22,7 @@
from __future__ import annotations
from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, Any
import github.Repository
from github.GithubObject import Attribute, NonCompletableGithubObject, NotSet
@@ -49,7 +49,7 @@ class RepositoryPreferences(NonCompletableGithubObject):
def repository(self) -> Repository:
return self._repository.value
def _useAttributes(self, attributes) -> None:
def _useAttributes(self, attributes: dict[str, Any]) -> None:
if "preferences" in attributes: # pragma no branch
self._preferences = self._makeDictAttribute(attributes["preferences"])
if "repository" in attributes: # pragma no branch