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