diff --git a/src/cotdata/providers/cftc.py b/src/cotdata/providers/cftc.py index 72c1d29..f8cc757 100644 --- a/src/cotdata/providers/cftc.py +++ b/src/cotdata/providers/cftc.py @@ -7,6 +7,8 @@ Self-contained — no cot-analyzer imports. Ported from cot-analyzer/src/core/etl.py. """ +from __future__ import annotations # PEP 604 unions (Path | None) on Python 3.9 + import datetime as dt import io import zipfile diff --git a/src/cotdata/providers/norgate.py b/src/cotdata/providers/norgate.py index b2620e7..f8d1245 100644 --- a/src/cotdata/providers/norgate.py +++ b/src/cotdata/providers/norgate.py @@ -8,6 +8,8 @@ e.g. +146 pts at the 2026-06 Jun→Sep roll). '&ES_CCB' is BACK-ADJUSTED (gaps stitched out). A close-based stop needs the gap-free series → we fetch _CCB. """ +from __future__ import annotations # PEP 604 unions (dict | None) on Python 3.9 + import pandas as pd import numpy as np import re