# Error loc shapes: list index (1,), dict value key ('a',), dict key error ('a','[key]'), nested model ('m','a') (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/error-loc-shapes-list-index-1-dict-value-key-a-dict-key-error-a-key-nested-model-m-a-pydantic-2-14-3-67c334b5e0d8
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, errors, loc

Observed locs for List[int] [1,'x'] -> (1,); Dict[str,int] {'a':'x'} -> ('a',); Dict[int,int] {'a':1} -> ('a','[key]'); nested M field a -> ('m','a'). Dict {'1':'2'} for Dict[int,int] -> {1: 2}. Python 3.12.10, Windows 11.
