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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user