mirror of
https://github.com/anomalyco/opencode-sdk-python.git
synced 2026-05-17 12:42:25 +00:00
chore(types): change optional parameter type from NotGiven to Omit
This commit is contained in:
parent
9751764207
commit
215857f1ee
20 changed files with 272 additions and 256 deletions
|
|
@ -5,7 +5,7 @@ from __future__ import annotations
|
|||
import httpx
|
||||
|
||||
from ..types import command_list_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
|
||||
|
|
@ -44,13 +44,13 @@ class CommandResource(SyncAPIResource):
|
|||
def list(
|
||||
self,
|
||||
*,
|
||||
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,
|
||||
) -> CommandListResponse:
|
||||
"""
|
||||
List all commands
|
||||
|
|
@ -100,13 +100,13 @@ class AsyncCommandResource(AsyncAPIResource):
|
|||
async def list(
|
||||
self,
|
||||
*,
|
||||
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,
|
||||
) -> CommandListResponse:
|
||||
"""
|
||||
List all commands
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue