Skip to content

Commit 3c56875

Browse files
Jammy2211claude
authored andcommitted
refactor: future-annotations headers keep aggregator annotations lazy (PyAutoFit#1505)
Three aggregator modules evaluated af.Aggregator/af.GridSearchAggregator in def-time annotations, re-triggering the sqlalchemy/database import the import-time task defers. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 6470e64 commit 3c56875

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

autolens/aggregator/fit_imaging.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
that exposes a generator of ``FitImaging`` objects, enabling memory-efficient iteration
1515
over large result sets.
1616
"""
17+
18+
from __future__ import annotations
1719
from typing import Optional, List
1820

1921
import autofit as af

autolens/aggregator/fit_interferometer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
``Aggregator`` that exposes a generator of ``FitInterferometer`` objects, enabling
1616
memory-efficient iteration over large result sets.
1717
"""
18+
19+
from __future__ import annotations
1820
from typing import Optional, List
1921

2022
import autofit as af

autolens/aggregator/subhalo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
for the best-fit model in each cell — both the "with subhalo" fit and (optionally) the
1111
"no subhalo" baseline — enabling the per-cell log-evidence difference map to be computed.
1212
"""
13+
14+
from __future__ import annotations
1315
from typing import Optional
1416

1517
import autofit as af

0 commit comments

Comments
 (0)