Skip to content

CLI coerce numeric types.#769

Merged
hramezani merged 1 commit intopydantic:mainfrom
kschwab:cli-coerce-numeric-types
Feb 3, 2026
Merged

CLI coerce numeric types.#769
hramezani merged 1 commit intopydantic:mainfrom
kschwab:cli-coerce-numeric-types

Conversation

@kschwab
Copy link
Copy Markdown
Contributor

@kschwab kschwab commented Feb 1, 2026

Fixes #738

@hramezani
Copy link
Copy Markdown
Member

Thanks @kschwab

@hramezani hramezani merged commit ce9804c into pydantic:main Feb 3, 2026
19 checks passed
hramezani added a commit that referenced this pull request Feb 17, 2026
The numeric type coercion added in #769 used `[0]` to index the result
of `validate_python`, which fails for `set` types since sets are not
subscriptable. Use `next(iter(...))` instead which works for any iterable.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
hramezani added a commit that referenced this pull request Feb 17, 2026
The numeric type coercion added in #769 used `[0]` to index the result
of `validate_python`, which fails for `set` types since sets are not
subscriptable. Use `next(iter(...))` instead which works for any iterable.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
hramezani added a commit that referenced this pull request Feb 17, 2026
The numeric type coercion added in #769 used `[0]` to index the result
of `validate_python`, which fails for `set` types since sets are not
subscriptable. Use `next(iter(...))` instead which works for any iterable.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

list[str] does not accept integer arguments.

2 participants