Previously, opening a project resulted in:
`AttributeError: Attribute '__signature__' of 'ModelMetaclass' object is not writable`
Likely caused by the fact that `update_forward_refs` is deprecated in
pydantic.
Replaced with `model_rebuild` as per pydantic suggestion.