Tests failing in CI
I expect pydantic==2.11.0a1 to be a source of problem. Same like in https://github.com/napari/napari/issues/7570
yeah, must be... looks like you have a slightly different error though. I was actually just opening an issue to discuss the possible timeline for dropping v1 (don't fear 😂 ... just curious)
Hm. I have executed test locally.
in pydantic==2.10.6 MenuItemBase._validator gets MenuItem class and MenuItem object
in pydantic==2.11.0a2 MenuItemBase._validator gets MenuItem class and dict object with keys command and when plus ValidationInfo object. Such version fails with recursion error.
Stop using pydantic_compat and importing BaseModel directly from pydantic does not solve the problem.
opened https://github.com/pydantic/pydantic/issues/11443