1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-31 04:58:12 +00:00

Actually fixed the http typehints

This commit is contained in:
sudosnok 2022-04-09 11:58:36 +01:00
parent a4c59375d0
commit d5a99bb0c4

View file

@ -1,6 +1,11 @@
#== objects.py ==#
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .http import http
from datetime import datetime
__all__ = (
@ -29,7 +34,7 @@ class APIObject:
'_http'
)
def __init__(self, response: dict[str, str | int | dict[str, str | int]], _http) -> None:
def __init__(self, response: dict[str, str | int | dict[str, str | int]], _http: http) -> None:
self._http = _http
self._response = response