Skip to content

Commit

Permalink
fix: use literal from typing extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed Oct 30, 2022
1 parent 30fd751 commit ec6618b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gotrue/_async/gotrue_base_api.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from __future__ import annotations

from typing import Any, Callable, Dict, Literal, TypeVar, Union, overload
from typing import Any, Callable, Dict, TypeVar, Union, overload

from httpx import Response
from pydantic import BaseModel
from typing_extensions import Self
from typing_extensions import Literal, Self

from ..helpers import handle_exception
from ..http_clients import AsyncClient
Expand Down
4 changes: 2 additions & 2 deletions gotrue/_sync/gotrue_base_api.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from __future__ import annotations

from typing import Any, Callable, Dict, Literal, TypeVar, Union, overload
from typing import Any, Callable, Dict, TypeVar, Union, overload

from httpx import Response
from pydantic import BaseModel
from typing_extensions import Self
from typing_extensions import Literal, Self

from ..helpers import handle_exception
from ..http_clients import SyncClient
Expand Down
4 changes: 2 additions & 2 deletions gotrue/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

from datetime import datetime
from time import time
from typing import Any, Callable, Dict, List, Literal, Union
from typing import Any, Callable, Dict, List, Union

from pydantic import BaseModel, root_validator
from typing_extensions import NotRequired, TypedDict
from typing_extensions import Literal, NotRequired, TypedDict

Provider = Literal[
"apple",
Expand Down

0 comments on commit ec6618b

Please sign in to comment.