From db77647efd96f26ca1f3249344abd7fedecb46e6 Mon Sep 17 00:00:00 2001 From: Qiaoli Li <67373873+Qiaoli-Li-Res@users.noreply.github.com> Date: Fri, 26 Jun 2026 17:24:21 +0200 Subject: [PATCH] fix(types): annotate pdb URL fallback list --- gget/gget_pdb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gget/gget_pdb.py b/gget/gget_pdb.py index 3d4b7b6c..ddb8df91 100644 --- a/gget/gget_pdb.py +++ b/gget/gget_pdb.py @@ -85,6 +85,8 @@ def pdb(pdb_id: str, resource: str = "pdb", identifier: str | int | None = None, # Define URLs for HTTP request. # Each entry is (url, fetched_format) so we can track which structure format # was actually returned ("pdb"/"mmcif"/None for JSON resources). + urls: list[tuple[str, str | None]] + if resource not in structure_resources: # URLs to request resources other than a structure file if identifier is not None: