From 7a01179f68f932d77b6fc4bf8e50d5c403a6a9e6 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 19 Aug 2026 17:55:00 -0400 Subject: [PATCH] refactor: future-annotations headers keep af.Aggregator annotations lazy (PyAutoFit#1505) Two aggregator modules evaluated af.Aggregator in def-time annotations, re-triggering the sqlalchemy/database import the import-time task defers. Co-Authored-By: Claude Fable 5 --- autogalaxy/aggregator/imaging/imaging.py | 2 ++ autogalaxy/aggregator/interferometer/interferometer.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/autogalaxy/aggregator/imaging/imaging.py b/autogalaxy/aggregator/imaging/imaging.py index 8953b1e0..1660dccd 100644 --- a/autogalaxy/aggregator/imaging/imaging.py +++ b/autogalaxy/aggregator/imaging/imaging.py @@ -13,6 +13,8 @@ - ``ImagingAgg`` — a class wrapping an ``Aggregator`` that returns a lazy generator of ``Imaging`` datasets, avoiding loading all results into memory at once. """ + +from __future__ import annotations from functools import partial from typing import List diff --git a/autogalaxy/aggregator/interferometer/interferometer.py b/autogalaxy/aggregator/interferometer/interferometer.py index 3dc83bfa..6888f11e 100644 --- a/autogalaxy/aggregator/interferometer/interferometer.py +++ b/autogalaxy/aggregator/interferometer/interferometer.py @@ -15,6 +15,8 @@ generator of ``Interferometer`` datasets, avoiding loading all results into memory at once. """ + +from __future__ import annotations from functools import partial from typing import List