mirror of
https://github.com/anomalyco/opencode-sdk-python.git
synced 2026-05-19 08:09:57 +00:00
chore(types): change optional parameter type from NotGiven to Omit
This commit is contained in:
parent
6ae1aed3aa
commit
ed48f59b53
20 changed files with 272 additions and 256 deletions
|
|
@ -5,7 +5,7 @@ from __future__ import annotations
|
|||
import httpx
|
||||
|
||||
from ..types import find_text_params, find_files_params, find_symbols_params
|
||||
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
|
||||
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
||||
from .._utils import maybe_transform, async_maybe_transform
|
||||
from .._compat import cached_property
|
||||
from .._resource import SyncAPIResource, AsyncAPIResource
|
||||
|
|
@ -47,13 +47,13 @@ class FindResource(SyncAPIResource):
|
|||
self,
|
||||
*,
|
||||
query: str,
|
||||
directory: str | NotGiven = NOT_GIVEN,
|
||||
directory: str | Omit = omit,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
||||
) -> FindFilesResponse:
|
||||
"""
|
||||
Find files
|
||||
|
|
@ -89,13 +89,13 @@ class FindResource(SyncAPIResource):
|
|||
self,
|
||||
*,
|
||||
query: str,
|
||||
directory: str | NotGiven = NOT_GIVEN,
|
||||
directory: str | Omit = omit,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
||||
) -> FindSymbolsResponse:
|
||||
"""
|
||||
Find workspace symbols
|
||||
|
|
@ -131,13 +131,13 @@ class FindResource(SyncAPIResource):
|
|||
self,
|
||||
*,
|
||||
pattern: str,
|
||||
directory: str | NotGiven = NOT_GIVEN,
|
||||
directory: str | Omit = omit,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
||||
) -> FindTextResponse:
|
||||
"""
|
||||
Find text in files
|
||||
|
|
@ -194,13 +194,13 @@ class AsyncFindResource(AsyncAPIResource):
|
|||
self,
|
||||
*,
|
||||
query: str,
|
||||
directory: str | NotGiven = NOT_GIVEN,
|
||||
directory: str | Omit = omit,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
||||
) -> FindFilesResponse:
|
||||
"""
|
||||
Find files
|
||||
|
|
@ -236,13 +236,13 @@ class AsyncFindResource(AsyncAPIResource):
|
|||
self,
|
||||
*,
|
||||
query: str,
|
||||
directory: str | NotGiven = NOT_GIVEN,
|
||||
directory: str | Omit = omit,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
||||
) -> FindSymbolsResponse:
|
||||
"""
|
||||
Find workspace symbols
|
||||
|
|
@ -278,13 +278,13 @@ class AsyncFindResource(AsyncAPIResource):
|
|||
self,
|
||||
*,
|
||||
pattern: str,
|
||||
directory: str | NotGiven = NOT_GIVEN,
|
||||
directory: str | Omit = omit,
|
||||
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
||||
# The extra values given here take precedence over values defined on the client or passed to this method.
|
||||
extra_headers: Headers | None = None,
|
||||
extra_query: Query | None = None,
|
||||
extra_body: Body | None = None,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
|
||||
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
||||
) -> FindTextResponse:
|
||||
"""
|
||||
Find text in files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue