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
+4 -2
View File
@@ -24,6 +24,8 @@
# #
################################################################################
from typing import Any, Dict
import github.GithubObject
@@ -53,12 +55,12 @@ class StatsCodeFrequency(github.GithubObject.NonCompletableGithubObject):
"""
return self._deletions.value
def _initAttributes(self):
def _initAttributes(self) -> None:
self._week = github.GithubObject.NotSet
self._additions = github.GithubObject.NotSet
self._deletions = github.GithubObject.NotSet
def _useAttributes(self, attributes):
def _useAttributes(self, attributes: Dict[str, Any]) -> None:
self._week = self._makeTimestampAttribute(attributes[0])
self._additions = self._makeIntAttribute(attributes[1])
self._deletions = self._makeIntAttribute(attributes[2])