From 2cfba315f8a69ef1a6226841bd0d17e608071a5a Mon Sep 17 00:00:00 2001 From: Daan Debie Date: Fri, 22 Nov 2024 16:41:43 +0100 Subject: [PATCH] fix: ignore mypy for specific file to circumvent Pydantic not supporting __replace__ yet See: https://github.com/pydantic/pydantic/issues/10699 --- machine/models/interactive.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/machine/models/interactive.py b/machine/models/interactive.py index 52b121fb..0c910b37 100644 --- a/machine/models/interactive.py +++ b/machine/models/interactive.py @@ -1,3 +1,7 @@ +# mypy: ignore-errors +# MyPy is disabled because Pydantic doesn't support __replace__ that was introduced in Python 3.13 yet, which causes +# MyPy to throw an error. This will be fixed once Pydantic supports __replace__ in v2.10 + from __future__ import annotations from datetime import date, time