Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
9731e38
codegen metadata
stainless-app[bot] Mar 29, 2026
c9a79d6
codegen metadata
stainless-app[bot] Mar 29, 2026
f4c1aa4
codegen metadata
stainless-app[bot] Mar 30, 2026
7317096
codegen metadata
stainless-app[bot] Mar 30, 2026
9344c8c
codegen metadata
stainless-app[bot] Mar 30, 2026
9110fcb
codegen metadata
stainless-app[bot] Mar 30, 2026
68580e6
feat(api): api update
stainless-app[bot] Mar 30, 2026
3774aa0
codegen metadata
stainless-app[bot] Mar 30, 2026
117ec65
feat(api): api update
stainless-app[bot] Mar 31, 2026
c73a671
codegen metadata
stainless-app[bot] Mar 31, 2026
0b87d9d
codegen metadata
stainless-app[bot] Mar 31, 2026
f17d871
codegen metadata
stainless-app[bot] Mar 31, 2026
8374c19
codegen metadata
stainless-app[bot] Apr 1, 2026
fc5d1fa
codegen metadata
stainless-app[bot] Apr 1, 2026
b765484
codegen metadata
stainless-app[bot] Apr 1, 2026
b8fdce2
codegen metadata
stainless-app[bot] Apr 1, 2026
9cfb3b5
codegen metadata
stainless-app[bot] Apr 1, 2026
224996d
codegen metadata
stainless-app[bot] Apr 1, 2026
04514db
codegen metadata
stainless-app[bot] Apr 1, 2026
1f00043
codegen metadata
stainless-app[bot] Apr 1, 2026
7192995
codegen metadata
stainless-app[bot] Apr 2, 2026
604578f
feat(api): api update
stainless-app[bot] Apr 2, 2026
274ca16
codegen metadata
stainless-app[bot] Apr 2, 2026
5bacc31
codegen metadata
stainless-app[bot] Apr 2, 2026
8fe4803
codegen metadata
stainless-app[bot] Apr 2, 2026
5abb2f9
codegen metadata
stainless-app[bot] Apr 2, 2026
deb2b31
codegen metadata
stainless-app[bot] Apr 3, 2026
173baec
codegen metadata
stainless-app[bot] Apr 3, 2026
50e757b
codegen metadata
stainless-app[bot] Apr 3, 2026
7b29117
codegen metadata
stainless-app[bot] Apr 3, 2026
690aa83
codegen metadata
stainless-app[bot] Apr 3, 2026
d6b6059
codegen metadata
stainless-app[bot] Apr 3, 2026
713ddf0
codegen metadata
stainless-app[bot] Apr 6, 2026
97ba85f
codegen metadata
stainless-app[bot] Apr 6, 2026
93c89fe
codegen metadata
stainless-app[bot] Apr 6, 2026
b76a4d2
codegen metadata
stainless-app[bot] Apr 6, 2026
9594ccc
codegen metadata
stainless-app[bot] Apr 7, 2026
a54762b
chore: configure new SDK language
stainless-app[bot] Apr 7, 2026
72d4eac
fix(client): preserve hardcoded query params when merging with user p…
stainless-app[bot] Apr 8, 2026
1aa9d1a
codegen metadata
stainless-app[bot] Apr 8, 2026
dc09cfc
codegen metadata
stainless-app[bot] Apr 8, 2026
4a5c707
codegen metadata
stainless-app[bot] Apr 8, 2026
ae568c9
codegen metadata
stainless-app[bot] Apr 8, 2026
49c50b4
codegen metadata
stainless-app[bot] Apr 9, 2026
5f410d2
codegen metadata
stainless-app[bot] Apr 9, 2026
5eb5782
codegen metadata
stainless-app[bot] Apr 9, 2026
aae7457
codegen metadata
stainless-app[bot] Apr 10, 2026
6d227f8
codegen metadata
stainless-app[bot] Apr 10, 2026
2c12f11
codegen metadata
stainless-app[bot] Apr 11, 2026
5a5d5ee
fix: ensure file data are only sent as 1 parameter
stainless-app[bot] Apr 11, 2026
f7b90fa
feat(api): api update
stainless-app[bot] Apr 11, 2026
707c9c3
codegen metadata
stainless-app[bot] Apr 13, 2026
1e32162
codegen metadata
stainless-app[bot] Apr 14, 2026
50924d1
codegen metadata
stainless-app[bot] Apr 14, 2026
b931135
codegen metadata
stainless-app[bot] Apr 15, 2026
649a47a
codegen metadata
stainless-app[bot] Apr 15, 2026
9390506
codegen metadata
stainless-app[bot] Apr 15, 2026
d37859d
codegen metadata
stainless-app[bot] Apr 15, 2026
545e306
codegen metadata
stainless-app[bot] Apr 15, 2026
fda0e63
codegen metadata
stainless-app[bot] Apr 15, 2026
feb94b5
codegen metadata
stainless-app[bot] Apr 16, 2026
c47f11a
feat(api): api update
stainless-app[bot] Apr 16, 2026
92b16bd
codegen metadata
stainless-app[bot] Apr 16, 2026
159d183
codegen metadata
stainless-app[bot] Apr 17, 2026
dff6359
codegen metadata
stainless-app[bot] Apr 17, 2026
c98d415
codegen metadata
stainless-app[bot] Apr 17, 2026
d2d9fc2
codegen metadata
stainless-app[bot] Apr 17, 2026
b852327
codegen metadata
stainless-app[bot] Apr 17, 2026
094e95f
codegen metadata
stainless-app[bot] Apr 18, 2026
fae7194
perf(client): optimize file structure copying in multipart requests
stainless-app[bot] Apr 18, 2026
e3a9f2c
codegen metadata
stainless-app[bot] Apr 18, 2026
808ab77
feat(api): api update
stainless-app[bot] Apr 20, 2026
d413d50
feat(api): api update
stainless-app[bot] Apr 21, 2026
c04addf
codegen metadata
stainless-app[bot] Apr 21, 2026
8ca0b14
codegen metadata
stainless-app[bot] Apr 21, 2026
05564fe
codegen metadata
stainless-app[bot] Apr 22, 2026
08256d3
codegen metadata
stainless-app[bot] Apr 22, 2026
1dc51f9
codegen metadata
stainless-app[bot] Apr 22, 2026
197c371
chore(internal): more robust bootstrap script
stainless-app[bot] Apr 23, 2026
a53946b
codegen metadata
stainless-app[bot] Apr 23, 2026
f9e5f74
codegen metadata
stainless-app[bot] Apr 24, 2026
9b03729
codegen metadata
stainless-app[bot] Apr 24, 2026
cc929a5
codegen metadata
stainless-app[bot] Apr 24, 2026
74b1661
codegen metadata
stainless-app[bot] Apr 25, 2026
696f0cf
codegen metadata
stainless-app[bot] Apr 25, 2026
6566127
codegen metadata
stainless-app[bot] Apr 26, 2026
74a2060
codegen metadata
stainless-app[bot] Apr 27, 2026
00f933d
fix: use correct field name format for multipart file arrays
stainless-app[bot] Apr 28, 2026
6b6b3ad
feat: support setting headers via env
stainless-app[bot] Apr 28, 2026
aca3de4
codegen metadata
stainless-app[bot] Apr 28, 2026
52e9d93
codegen metadata
stainless-app[bot] Apr 28, 2026
5f4a0ff
codegen metadata
stainless-app[bot] Apr 28, 2026
f6a1682
feat(api): api update
stainless-app[bot] Apr 29, 2026
aba64ec
codegen metadata
stainless-app[bot] Apr 29, 2026
8b275e7
codegen metadata
stainless-app[bot] Apr 29, 2026
9d5297d
codegen metadata
stainless-app[bot] Apr 29, 2026
7b0ced7
codegen metadata
stainless-app[bot] Apr 30, 2026
339de46
codegen metadata
stainless-app[bot] Apr 30, 2026
5df486e
codegen metadata
stainless-app[bot] Apr 30, 2026
ec1c3f3
codegen metadata
stainless-app[bot] Apr 30, 2026
3c53207
codegen metadata
stainless-app[bot] May 1, 2026
95c19a3
codegen metadata
stainless-app[bot] May 1, 2026
26c7fd4
release: 0.23.0
stainless-app[bot] May 1, 2026
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.22.0"
".": "0.23.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 17
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/reducto%2Freductoai-9dcbb133ea8d4e419314a5fddc878258610a80acfe82604b328a7eb3cb4f8f5f.yml
openapi_spec_hash: 10479661e623fc6063eafbba3f2b5dff
config_hash: 14efe98ee80f1e66ef35443e52f02953
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/reducto/reductoai-d32017996d4322082da97c33ea8a288f509d91a032960f3e00026c2c3688c188.yml
openapi_spec_hash: 06f95c19ecff0d30451aa1dbe6fb7c6e
config_hash: 9fa10baf03f994be027bf73b29ac8572
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
# Changelog

## 0.23.0 (2026-05-01)

Full Changelog: [v0.22.0...v0.23.0](https://github.com/reductoai/reducto-python-sdk/compare/v0.22.0...v0.23.0)

### Features

* **api:** api update ([f6a1682](https://github.com/reductoai/reducto-python-sdk/commit/f6a16828595a63b3f026a029b89f2eba36b8203c))
* **api:** api update ([d413d50](https://github.com/reductoai/reducto-python-sdk/commit/d413d50ae1a168ac2fa06c89fc73293eb5cd60f3))
* **api:** api update ([808ab77](https://github.com/reductoai/reducto-python-sdk/commit/808ab7734b1690182be6e6fa636689e7d34b6b56))
* **api:** api update ([c47f11a](https://github.com/reductoai/reducto-python-sdk/commit/c47f11afcacac318209e04b49dc3ba3a4fa549b6))
* **api:** api update ([f7b90fa](https://github.com/reductoai/reducto-python-sdk/commit/f7b90fa8da10e32ec26f71313bd8eef7aac4bf83))
* **api:** api update ([604578f](https://github.com/reductoai/reducto-python-sdk/commit/604578fc82a9e0e9cd1c96140b288d5f7e9cfc96))
* **api:** api update ([117ec65](https://github.com/reductoai/reducto-python-sdk/commit/117ec654884ac13bdbd9e86e40441d7a5169aeda))
* **api:** api update ([68580e6](https://github.com/reductoai/reducto-python-sdk/commit/68580e616d0743c04631a6a03f8f0c230dae9393))
* **pypi:** reducto package aliasing ([c19a947](https://github.com/reductoai/reducto-python-sdk/commit/c19a94757e2d42ac015e8aaae4647f1bba2c5ade))
* support setting headers via env ([6b6b3ad](https://github.com/reductoai/reducto-python-sdk/commit/6b6b3adb6e74e10716fdd5640b310b3d20734c56))


### Bug Fixes

* **ci:** `reducto` shim publishing ([48a5558](https://github.com/reductoai/reducto-python-sdk/commit/48a5558ed79ef8c8796890b486eb5bae92cbc21f))
* **client:** preserve hardcoded query params when merging with user params ([72d4eac](https://github.com/reductoai/reducto-python-sdk/commit/72d4eac3b2514c35b26fdafeecb1e64cc067ea80))
* ensure file data are only sent as 1 parameter ([5a5d5ee](https://github.com/reductoai/reducto-python-sdk/commit/5a5d5eed5f5bf34df796e73355824dafc30c492b))
* use correct field name format for multipart file arrays ([00f933d](https://github.com/reductoai/reducto-python-sdk/commit/00f933debb5a49d3ee915f70283a1e85f61fa611))


### Performance Improvements

* **client:** optimize file structure copying in multipart requests ([fae7194](https://github.com/reductoai/reducto-python-sdk/commit/fae719428bbc73108ed0e3e569c5c65af3cea90a))


### Chores

* add Renovate config and SHA-pin GitHub Actions ([5bbef22](https://github.com/reductoai/reducto-python-sdk/commit/5bbef22b185f99a82a48d4dfe578b86b7931bef6))
* configure new SDK language ([a54762b](https://github.com/reductoai/reducto-python-sdk/commit/a54762b2a40c2da5e5b7e8dee56717bde8c94e61))
* **internal:** more robust bootstrap script ([197c371](https://github.com/reductoai/reducto-python-sdk/commit/197c37118331c2b09e73bb7e600e283bd4713cd4))


### Styles

* format renovate.json with Prettier ([668ab0e](https://github.com/reductoai/reducto-python-sdk/commit/668ab0ecd82574651f35f1c0b3910e1e845cedd4))

## 0.21.0 (2026-03-29)

Full Changelog: [v0.20.0...v0.21.0](https://github.com/reductoai/reducto-python-sdk/compare/v0.20.0...v0.21.0)
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ and offers both synchronous and asynchronous clients powered by [httpx](https://

It is generated with [Stainless](https://www.stainless.com/).

## MCP Server

Use the Reducto MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.

[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=reductoai-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsInJlZHVjdG9haS1tY3AiXSwiZW52Ijp7IlJFRFVDVE9fQVBJX0tFWSI6Ik15IEFQSSBLZXkifX0)
[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22reductoai-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22reductoai-mcp%22%5D%2C%22env%22%3A%7B%22REDUCTO_API_KEY%22%3A%22My%20API%20Key%22%7D%7D)

> Note: You may need to set environment variables in your MCP client.

## Documentation

The REST API documentation can be found on [docs.reductoai.com](https://docs.reductoai.com). The full API of this library can be found in [api.md](api.md).
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "reductoai"
version = "0.22.0"
version = "0.23.0"
description = "The official Python library for the reducto API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

cd "$(dirname "$0")/.."

if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "${SKIP_BREW:-}" != "1" ] && [ -t 0 ]; then
brew bundle check >/dev/null 2>&1 || {
echo -n "==> Install Homebrew dependencies? (y/N): "
read -r response
Expand Down
4 changes: 4 additions & 0 deletions src/reducto/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,10 @@ def _build_request(
files = cast(HttpxRequestFiles, ForceMultipartDict())

prepared_url = self._prepare_url(options.url)
# preserve hard-coded query params from the url
if params and prepared_url.query:
params = {**dict(prepared_url.params.items()), **params}
prepared_url = prepared_url.copy_with(raw_path=prepared_url.raw_path.split(b"?", 1)[0])
if "_" in prepared_url.host:
# work around https://github.com/encode/httpx/discussions/2880
kwargs["extensions"] = {"sni_hostname": prepared_url.host.replace("_", "-")}
Expand Down
25 changes: 22 additions & 3 deletions src/reducto/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from . import _exceptions
from ._qs import Querystring
from .types import client_upload_params
from ._files import deepcopy_with_paths
from ._types import (
Body,
Omit,
Expand All @@ -27,9 +28,9 @@
)
from ._utils import (
is_given,
is_mapping_t,
extract_files,
maybe_transform,
deepcopy_minimal,
get_async_library,
async_maybe_transform,
)
Expand Down Expand Up @@ -150,6 +151,15 @@ def __init__(
except KeyError as exc:
raise ValueError(f"Unknown environment: {environment}") from exc

custom_headers_env = os.environ.get("REDUCTO_CUSTOM_HEADERS")
if custom_headers_env is not None:
parsed: dict[str, str] = {}
for line in custom_headers_env.split("\n"):
colon = line.find(":")
if colon >= 0:
parsed[line[:colon].strip()] = line[colon + 1 :].strip()
default_headers = {**parsed, **(default_headers if is_mapping_t(default_headers) else {})}

super().__init__(
version=__version__,
base_url=base_url,
Expand Down Expand Up @@ -338,7 +348,7 @@ def upload(

timeout: Override the client-level default timeout for this request, in seconds
"""
body = deepcopy_minimal({"file": file})
body = deepcopy_with_paths({"file": file}, [["file"]])
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
if files:
# It should be noted that the actual Content-Type header that will be
Expand Down Expand Up @@ -461,6 +471,15 @@ def __init__(
except KeyError as exc:
raise ValueError(f"Unknown environment: {environment}") from exc

custom_headers_env = os.environ.get("REDUCTO_CUSTOM_HEADERS")
if custom_headers_env is not None:
parsed: dict[str, str] = {}
for line in custom_headers_env.split("\n"):
colon = line.find(":")
if colon >= 0:
parsed[line[:colon].strip()] = line[colon + 1 :].strip()
default_headers = {**parsed, **(default_headers if is_mapping_t(default_headers) else {})}

super().__init__(
version=__version__,
base_url=base_url,
Expand Down Expand Up @@ -649,7 +668,7 @@ async def upload(

timeout: Override the client-level default timeout for this request, in seconds
"""
body = deepcopy_minimal({"file": file})
body = deepcopy_with_paths({"file": file}, [["file"]])
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
if files:
# It should be noted that the actual Content-Type header that will be
Expand Down
56 changes: 53 additions & 3 deletions src/reducto/_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import io
import os
import pathlib
from typing import overload
from typing_extensions import TypeGuard
from typing import Sequence, cast, overload
from typing_extensions import TypeVar, TypeGuard

import anyio

Expand All @@ -17,7 +17,9 @@
HttpxFileContent,
HttpxRequestFiles,
)
from ._utils import is_tuple_t, is_mapping_t, is_sequence_t
from ._utils import is_list, is_mapping, is_tuple_t, is_mapping_t, is_sequence_t

_T = TypeVar("_T")


def is_base64_file_input(obj: object) -> TypeGuard[Base64FileInput]:
Expand Down Expand Up @@ -121,3 +123,51 @@ async def async_read_file_content(file: FileContent) -> HttpxFileContent:
return await anyio.Path(file).read_bytes()

return file


def deepcopy_with_paths(item: _T, paths: Sequence[Sequence[str]]) -> _T:
"""Copy only the containers along the given paths.

Used to guard against mutation by extract_files without copying the entire structure.
Only dicts and lists that lie on a path are copied; everything else
is returned by reference.

For example, given paths=[["foo", "files", "file"]] and the structure:
{
"foo": {
"bar": {"baz": {}},
"files": {"file": <content>}
}
}
The root dict, "foo", and "files" are copied (they lie on the path).
"bar" and "baz" are returned by reference (off the path).
"""
return _deepcopy_with_paths(item, paths, 0)


def _deepcopy_with_paths(item: _T, paths: Sequence[Sequence[str]], index: int) -> _T:
if not paths:
return item
if is_mapping(item):
key_to_paths: dict[str, list[Sequence[str]]] = {}
for path in paths:
if index < len(path):
key_to_paths.setdefault(path[index], []).append(path)

# if no path continues through this mapping, it won't be mutated and copying it is redundant
if not key_to_paths:
return item

result = dict(item)
for key, subpaths in key_to_paths.items():
if key in result:
result[key] = _deepcopy_with_paths(result[key], subpaths, index + 1)
return cast(_T, result)
if is_list(item):
array_paths = [path for path in paths if index < len(path) and path[index] == "<array>"]

# if no path expects a list here, nothing will be mutated inside it - return by reference
if not array_paths:
return cast(_T, item)
return cast(_T, [_deepcopy_with_paths(entry, array_paths, index + 1) for entry in item])
return item
8 changes: 2 additions & 6 deletions src/reducto/_qs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@

from typing import Any, List, Tuple, Union, Mapping, TypeVar
from urllib.parse import parse_qs, urlencode
from typing_extensions import Literal, get_args
from typing_extensions import get_args

from ._types import NotGiven, not_given
from ._types import NotGiven, ArrayFormat, NestedFormat, not_given
from ._utils import flatten

_T = TypeVar("_T")


ArrayFormat = Literal["comma", "repeat", "indices", "brackets"]
NestedFormat = Literal["dots", "brackets"]

PrimitiveData = Union[str, int, float, bool, None]
# this should be Data = Union[PrimitiveData, "List[Data]", "Tuple[Data]", "Mapping[str, Data]"]
# https://github.com/microsoft/pyright/issues/3555
Expand Down
3 changes: 3 additions & 0 deletions src/reducto/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
ModelT = TypeVar("ModelT", bound=pydantic.BaseModel)
_T = TypeVar("_T")

ArrayFormat = Literal["comma", "repeat", "indices", "brackets"]
NestedFormat = Literal["dots", "brackets"]


# Approximates httpx internal ProxiesTypes and RequestFiles types
# while adding support for `PathLike` instances
Expand Down
1 change: 0 additions & 1 deletion src/reducto/_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
coerce_integer as coerce_integer,
file_from_path as file_from_path,
strip_not_given as strip_not_given,
deepcopy_minimal as deepcopy_minimal,
get_async_library as get_async_library,
maybe_coerce_float as maybe_coerce_float,
get_required_header as get_required_header,
Expand Down
Loading
Loading