From d5a99bb0c4df12d8f69e42bed3d3c0c9bec8520d Mon Sep 17 00:00:00 2001 From: sudosnok Date: Sat, 9 Apr 2022 11:58:36 +0100 Subject: [PATCH] Actually fixed the http typehints --- Github/objects.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Github/objects.py b/Github/objects.py index e26eb03..f0e6a23 100644 --- a/Github/objects.py +++ b/Github/objects.py @@ -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