diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f86031a6..323261fc 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.406.0" + ".": "0.406.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d54567fc..51b0cd07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.406.1 (2025-12-08) + +Full Changelog: [v0.406.0...v0.406.1](https://github.com/Increase/increase-python/compare/v0.406.0...v0.406.1) + +### Bug Fixes + +* **types:** allow pyright to infer TypedDict types within SequenceNotStr ([7e2d906](https://github.com/Increase/increase-python/commit/7e2d906a29e5173da0fcac4d7c08805a4026d169)) + ## 0.406.0 (2025-12-06) Full Changelog: [v0.405.0...v0.406.0](https://github.com/Increase/increase-python/compare/v0.405.0...v0.406.0) diff --git a/pyproject.toml b/pyproject.toml index 77db21a8..79fd56f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.406.0" +version = "0.406.1" description = "The official Python library for the increase API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/increase/_types.py b/src/increase/_types.py index b81ab29d..d9b38629 100644 --- a/src/increase/_types.py +++ b/src/increase/_types.py @@ -243,6 +243,9 @@ class HttpxSendArgs(TypedDict, total=False): if TYPE_CHECKING: # This works because str.__contains__ does not accept object (either in typeshed or at runtime) # https://github.com/hauntsaninja/useful_types/blob/5e9710f3875107d068e7679fd7fec9cfab0eff3b/useful_types/__init__.py#L285 + # + # Note: index() and count() methods are intentionally omitted to allow pyright to properly + # infer TypedDict types when dict literals are used in lists assigned to SequenceNotStr. class SequenceNotStr(Protocol[_T_co]): @overload def __getitem__(self, index: SupportsIndex, /) -> _T_co: ... @@ -251,8 +254,6 @@ def __getitem__(self, index: slice, /) -> Sequence[_T_co]: ... def __contains__(self, value: object, /) -> bool: ... def __len__(self) -> int: ... def __iter__(self) -> Iterator[_T_co]: ... - def index(self, value: Any, start: int = 0, stop: int = ..., /) -> int: ... - def count(self, value: Any, /) -> int: ... def __reversed__(self) -> Iterator[_T_co]: ... else: # just point this to a normal `Sequence` at runtime to avoid having to special case diff --git a/src/increase/_version.py b/src/increase/_version.py index 9a3df12c..40bafa3e 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "increase" -__version__ = "0.406.0" # x-release-please-version +__version__ = "0.406.1" # x-release-please-version