mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Enable mypy disallow_untyped_defs (#2609)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user