From 093da65373cabf82b3afc4ac0530f940d6ecab78 Mon Sep 17 00:00:00 2001 From: Aryamanz29 Date: Mon, 13 Apr 2026 13:20:42 +0530 Subject: [PATCH] fix: add future annotations for Python 3.14 compatibility Python 3.14 (PEP 649) defers annotation evaluation by default, which breaks pydantic v1's type inference for the uppercase field names (CREATE, UPDATE, DELETE, PARTIAL_UPDATE) in MutatedEntities. Adding `from __future__ import annotations` ensures annotations are stored as strings, which pydantic v1 can parse correctly regardless of the Python version's annotation evaluation strategy. Fixes: BLDX-944 --- pyatlan/model/response.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyatlan/model/response.py b/pyatlan/model/response.py index ad548dce5..faa257a0c 100644 --- a/pyatlan/model/response.py +++ b/pyatlan/model/response.py @@ -1,6 +1,8 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright 2022 Atlan Pte. Ltd. # Based on original code from https://github.com/apache/atlas (under Apache-2.0 license) +from __future__ import annotations + from typing import Dict, List, Optional, Type, TypeVar from pydantic.v1 import Field