chore(types): change optional parameter type from NotGiven to Omit

This commit is contained in:
stainless-app[bot] 2025-09-19 02:34:35 +00:00
parent 9751764207
commit 215857f1ee
20 changed files with 272 additions and 256 deletions

View file

@ -5,7 +5,7 @@ from __future__ import annotations
import httpx
from ..types import path_get_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 PathResource(SyncAPIResource):
def get(
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,
) -> Path:
"""
Get the current path
@ -100,13 +100,13 @@ class AsyncPathResource(AsyncAPIResource):
async def get(
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,
) -> Path:
"""
Get the current path