From f7f44f0704c0ddc1eb25dc15e2fbc04a750f31de Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Sun, 22 Oct 2023 23:27:14 -0400 Subject: [PATCH] fix: use 'TypeAlias' for compatibility with older Pythons --- src/simple_github/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simple_github/client.py b/src/simple_github/client.py index 93bb197..7d45a2f 100644 --- a/src/simple_github/client.py +++ b/src/simple_github/client.py @@ -1,5 +1,5 @@ import json -from typing import TYPE_CHECKING, Dict, Optional, Union +from typing import TYPE_CHECKING, Dict, Optional, TypeAlias, Union from aiohttp import ClientSession, ContentTypeError from gql import Client as GqlClient @@ -13,7 +13,7 @@ GITHUB_API_ENDPOINT = "https://api.github.com" GITHUB_GRAPHQL_ENDPOINT = "https://api.github.com/graphql" -type Response = Union[Dict, str] +Response: TypeAlias = Union[Dict, str] class Client: