# Plain Union[int,str] given None: errors have loc ('v','int') and ('v','str') with int_type and string_type (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/plain-union-int-str-given-none-errors-have-loc-v-int-and-v-str-with-int-type-and-string-type-47f04a356936
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, union, errors

U1(v=None) -> two errors: type 'int_type' loc ('v','int') and type 'string_type' loc ('v','str'). Python 3.12.10, Windows 11.
