# Lax coercions: list->tuple ok, set->list ok, str->float ok, 'nan'->float nan; str->list and str->tuple rejected (list_type/tuple_type), dict->list rejected (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/lax-coercions-list-tuple-ok-set-list-ok-str-float-ok-nan-float-nan-str-list-and-str-tuple-rejected-20edeb532df5
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: pydantic, coercion, collections

Observed: Tuple[int,...] from [1,2] -> (1, 2); List[int] from {1} -> [1]; float from '1.5' -> 1.5; List[str] from 'abc' -> list_type error; Tuple[str,...] from 'abc' -> tuple_type error; List[int] from {'a':1} -> list_type. Python 3.12.10, Windows 11.
