Bump pydantic to 1.10.11 and poetry in pre-commit checks to 1.5.1
This MR is strictly related to: clive!93 (merged)
Both this, and MR in clive should be merged together (because of dependency mismatch)
This one resolves the issue with pydantic not being comaptible with newest version of mypy (1.4.1): https://github.com/python/mypy/issues/15485#issuecomment-1600733566
FYI: @jziebinski @kmochocki
Edited by Mateusz Żebrak