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 6ae1aed3aa
commit ed48f59b53
20 changed files with 272 additions and 256 deletions

View file

@ -5,7 +5,7 @@ from __future__ import annotations
import httpx
from ..types import project_list_params, project_current_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
@ -45,13 +45,13 @@ class ProjectResource(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,
) -> ProjectListResponse:
"""
List all projects
@ -80,13 +80,13 @@ class ProjectResource(SyncAPIResource):
def current(
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,
) -> Project:
"""
Get the current project
@ -136,13 +136,13 @@ class AsyncProjectResource(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,
) -> ProjectListResponse:
"""
List all projects
@ -171,13 +171,13 @@ class AsyncProjectResource(AsyncAPIResource):
async def current(
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,
) -> Project:
"""
Get the current project