Merge Event type stub back to source (#2660)

This commit is contained in:
Trim21
2023-08-30 09:17:20 +02:00
committed by GitHub
parent 356022d1d5
commit a04c1c2a5a
3 changed files with 28 additions and 75 deletions
+4 -2
View File
@@ -19,8 +19,10 @@
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
# #
################################################################################
from __future__ import annotations
from datetime import datetime
from typing import Any, Dict
from typing import Any
from github.GithubObject import Attribute, NonCompletableGithubObject, NotSet
@@ -90,7 +92,7 @@ class Topic(NonCompletableGithubObject):
def score(self) -> float:
return self._score.value
def _useAttributes(self, attributes: Dict[str, Any]) -> None:
def _useAttributes(self, attributes: dict[str, Any]) -> None:
if "name" in attributes: # pragma no branch
self._name = self._makeStringAttribute(attributes["name"])
if "display_name" in attributes: # pragma no branch