Skip to content

Commit

Permalink
fix: use 'TypeAlias' for compatibility with older Pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
ahal committed Oct 23, 2023
1 parent eb04e29 commit f7f44f0
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, Union
from typing import TYPE_CHECKING, Dict, Optional, TypeAlias, 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"

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


class Client:
Expand Down

0 comments on commit f7f44f0

Please sign in to comment.