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 -1
View File
@@ -24,6 +24,7 @@
# #
################################################################################
from datetime import datetime
from typing import Any, Dict
import github.GithubObject
from github.GithubObject import Attribute
@@ -51,7 +52,7 @@ class StatsCommitActivity(github.GithubObject.NonCompletableGithubObject):
def days(self) -> int:
return self._days.value
def _useAttributes(self, attributes) -> None:
def _useAttributes(self, attributes: Dict[str, Any]) -> None:
if "week" in attributes: # pragma no branch
self._week = self._makeTimestampAttribute(attributes["week"])
if "total" in attributes: # pragma no branch