Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ include = ["my_test_api_client/py.typed"]
python = "^3.10"
httpx = ">=0.23.0,<0.29.0"
attrs = ">=22.2.0"
python-dateutil = "^2.8.0"

[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def _get_kwargs(
*,
common: str | Unset = UNSET,
) -> dict[str, Any]:

params: dict[str, Any] = {}

params["common"] = common
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/models/allof",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/models/oneof-with-required-const",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def _get_kwargs(
*,
common: str | Unset = UNSET,
) -> dict[str, Any]:

params: dict[str, Any] = {}

params["common"] = common
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def _get_kwargs(
client_query: str,
url_query: str,
) -> dict[str, Any]:

params: dict[str, Any] = {}

params["client"] = client_query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from typing import Any

import httpx
from dateutil.parser import isoparse

from ... import errors
from ...client import AuthenticatedClient, Client
Expand All @@ -17,7 +16,7 @@ def _get_kwargs(
*,
string_prop: str = "the default string",
string_with_num: str = "1",
date_prop: datetime.date = isoparse("1010-10-10").date(),
date_prop: datetime.date = datetime.date.fromisoformat("1010-10-10"),
float_prop: float = 3.14,
float_with_int: float = 3.0,
int_prop: int = 7,
Expand All @@ -29,7 +28,6 @@ def _get_kwargs(
model_prop: ModelWithUnionProperty,
required_model_prop: ModelWithUnionProperty,
) -> dict[str, Any]:

params: dict[str, Any] = {}

params["string_prop"] = string_prop
Expand Down Expand Up @@ -121,7 +119,7 @@ def sync_detailed(
client: AuthenticatedClient | Client,
string_prop: str = "the default string",
string_with_num: str = "1",
date_prop: datetime.date = isoparse("1010-10-10").date(),
date_prop: datetime.date = datetime.date.fromisoformat("1010-10-10"),
float_prop: float = 3.14,
float_with_int: float = 3.0,
int_prop: int = 7,
Expand All @@ -138,7 +136,7 @@ def sync_detailed(
Args:
string_prop (str): Default: 'the default string'.
string_with_num (str): Default: '1'.
date_prop (datetime.date): Default: isoparse('1010-10-10').date().
date_prop (datetime.date): Default: datetime.date.fromisoformat('1010-10-10').
float_prop (float): Default: 3.14.
float_with_int (float): Default: 3.0.
int_prop (int): Default: 7.
Expand Down Expand Up @@ -186,7 +184,7 @@ def sync(
client: AuthenticatedClient | Client,
string_prop: str = "the default string",
string_with_num: str = "1",
date_prop: datetime.date = isoparse("1010-10-10").date(),
date_prop: datetime.date = datetime.date.fromisoformat("1010-10-10"),
float_prop: float = 3.14,
float_with_int: float = 3.0,
int_prop: int = 7,
Expand All @@ -203,7 +201,7 @@ def sync(
Args:
string_prop (str): Default: 'the default string'.
string_with_num (str): Default: '1'.
date_prop (datetime.date): Default: isoparse('1010-10-10').date().
date_prop (datetime.date): Default: datetime.date.fromisoformat('1010-10-10').
float_prop (float): Default: 3.14.
float_with_int (float): Default: 3.0.
int_prop (int): Default: 7.
Expand Down Expand Up @@ -246,7 +244,7 @@ async def asyncio_detailed(
client: AuthenticatedClient | Client,
string_prop: str = "the default string",
string_with_num: str = "1",
date_prop: datetime.date = isoparse("1010-10-10").date(),
date_prop: datetime.date = datetime.date.fromisoformat("1010-10-10"),
float_prop: float = 3.14,
float_with_int: float = 3.0,
int_prop: int = 7,
Expand All @@ -263,7 +261,7 @@ async def asyncio_detailed(
Args:
string_prop (str): Default: 'the default string'.
string_with_num (str): Default: '1'.
date_prop (datetime.date): Default: isoparse('1010-10-10').date().
date_prop (datetime.date): Default: datetime.date.fromisoformat('1010-10-10').
float_prop (float): Default: 3.14.
float_with_int (float): Default: 3.0.
int_prop (int): Default: 7.
Expand Down Expand Up @@ -309,7 +307,7 @@ async def asyncio(
client: AuthenticatedClient | Client,
string_prop: str = "the default string",
string_with_num: str = "1",
date_prop: datetime.date = isoparse("1010-10-10").date(),
date_prop: datetime.date = datetime.date.fromisoformat("1010-10-10"),
float_prop: float = 3.14,
float_with_int: float = 3.0,
int_prop: int = 7,
Expand All @@ -326,7 +324,7 @@ async def asyncio(
Args:
string_prop (str): Default: 'the default string'.
string_with_num (str): Default: '1'.
date_prop (datetime.date): Default: isoparse('1010-10-10').date().
date_prop (datetime.date): Default: datetime.date.fromisoformat('1010-10-10').
float_prop (float): Default: 3.14.
float_with_int (float): Default: 3.0.
int_prop (int): Default: 7.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def _get_kwargs(
*,
bool_enum: bool,
) -> dict[str, Any]:

params: dict[str, Any] = {}

params["bool_enum"] = bool_enum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ def _get_kwargs(
*,
int_enum: AnIntEnum,
) -> dict[str, Any]:

params: dict[str, Any] = {}

json_int_enum = int_enum.value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def _get_kwargs(
null_not_required: datetime.datetime | None | Unset = UNSET,
not_null_not_required: datetime.datetime | Unset = UNSET,
) -> dict[str, Any]:

params: dict[str, Any] = {}

json_not_null_required = not_null_required.isoformat()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
def _get_kwargs(
hyphen_in_path: str,
) -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/naming/{hyphen_in_path}".format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def _get_kwargs(
mixed_case: str,
mixedCase: str,
) -> dict[str, Any]:

params: dict[str, Any] = {}

params["mixed_case"] = mixed_case
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def _get_kwargs(
*,
param_query: str | Unset = UNSET,
) -> dict[str, Any]:

params: dict[str, Any] = {}

params["param"] = param_query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def _get_kwargs(
*,
param_query: str = "overridden_in_GET",
) -> dict[str, Any]:

params: dict[str, Any] = {}

params["param"] = param_query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def _get_kwargs(
param1: str,
param3: int,
) -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/multiple-path-parameters/{param4}/something/{param2}/{param1}/{param3}".format(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/responses/status-codes/default",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "post",
"url": "/responses/unions/simple_before_complex",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/responses/reference",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/response/status-codes/patterns",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/response/status-codes/precedence",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "post",
"url": "/responses/text",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/tag_with_number",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/tag_with_number",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/tests/description-with-backslash",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/tests/basic_lists/booleans",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/tests/basic_lists/floats",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/tests/basic_lists/integers",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/tests/basic_lists/strings",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def _get_kwargs(
an_enum_value_with_only_null: list[None],
some_date: datetime.date | datetime.datetime,
) -> dict[str, Any]:

params: dict[str, Any] = {}

json_an_enum_value = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/tests/no_response",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/tests/octet_stream",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def _get_kwargs(
*,
my_token: str,
) -> dict[str, Any]:

cookies = {}
cookies["MyToken"] = my_token

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


def _get_kwargs() -> dict[str, Any]:

_kwargs: dict[str, Any] = {
"method": "get",
"url": "/tests/unsupported_content",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def _get_kwargs(
*,
import_: str,
) -> dict[str, Any]:

params: dict[str, Any] = {}

params["import"] = import_
Expand Down
Loading