From 9fb4f9a3a984a29ddd0cedd28c69e42d94444e4d Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Fri, 10 Jan 2025 11:32:20 +0800 Subject: [PATCH] Apply suggestions from code review --- githubkit/github.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/githubkit/github.py b/githubkit/github.py index 1b5f864f..c5fc3029 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,