Skip to content

Commit

Permalink
fix: stop using 'TypeAlias' to support older Pythons
Browse files Browse the repository at this point in the history
This was introduced in Python 3.10
  • Loading branch information
ahal committed Oct 23, 2023
1 parent 38f527c commit 021bd8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simple_github/client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import json
from typing import TYPE_CHECKING, Dict, Optional, TypeAlias, Union
from typing import TYPE_CHECKING, Dict, Optional, Union

from aiohttp import ClientSession, ContentTypeError
from gql import Client as GqlClient
Expand All @@ -13,7 +13,7 @@
GITHUB_API_ENDPOINT = "https://api.github.com"
GITHUB_GRAPHQL_ENDPOINT = "https://api.github.com/graphql"

Response: TypeAlias = Union[Dict, str]
Response = Union[Dict, str]


class Client:
Expand Down

0 comments on commit 021bd8b

Please sign in to comment.