diff --git a/githubkit/github.py b/githubkit/github.py index 1b5f864f9..c5fc30293 100644 --- a/githubkit/github.py +++ b/githubkit/github.py @@ -1,4 +1,4 @@ -from collections.abc import Awaitable, Iterable +from collections.abc import Awaitable, Sequence from functools import cached_property from typing import TYPE_CHECKING, Any, Callable, Optional, TypeVar, Union, overload from typing_extensions import ParamSpec @@ -70,7 +70,7 @@ def __init__( *, base_url: Optional[Union[str, httpx.URL]] = None, accept_format: Optional[str] = None, - previews: Optional[Iterable[str]] = None, + previews: Optional[Sequence[str]] = None, user_agent: Optional[str] = None, follow_redirects: bool = True, timeout: Optional[Union[float, httpx.Timeout]] = None, @@ -89,7 +89,7 @@ def __init__( *, base_url: Optional[Union[str, httpx.URL]] = None, accept_format: Optional[str] = None, - previews: Optional[Iterable[str]] = None, + previews: Optional[Sequence[str]] = None, user_agent: Optional[str] = None, follow_redirects: bool = True, timeout: Optional[Union[float, httpx.Timeout]] = None, @@ -108,7 +108,7 @@ def __init__( *, base_url: Optional[Union[str, httpx.URL]] = None, accept_format: Optional[str] = None, - previews: Optional[Iterable[str]] = None, + previews: Optional[Sequence[str]] = None, user_agent: Optional[str] = None, follow_redirects: bool = True, timeout: Optional[Union[float, httpx.Timeout]] = None,