66
77import json
88import pathlib
9- from typing import TYPE_CHECKING , Optional
9+ from typing import TYPE_CHECKING , List , Optional
1010
1111import jsonschema
1212import requests
@@ -147,7 +147,7 @@ def is_oci_layout(path: str) -> bool:
147147 except (FileNotFoundError , ValueError , OSError ):
148148 return False
149149
150- def get_ordered_blobs (self , tag : str = "latest" ) -> list [str ]:
150+ def get_ordered_blobs (self , tag : str = "latest" ) -> List [str ]:
151151 """
152152 Traverse an OCI layout and collect blob digests in dependency order for pushing.
153153
@@ -170,7 +170,7 @@ def get_ordered_blobs(self, tag: str = "latest") -> list[str]:
170170 raise ValueError (f"Tag '{ tag } ' not found in index" )
171171
172172 # Collect blobs in dependency order
173- collected : list [str ] = []
173+ collected : List [str ] = []
174174 self ._process_manifest (manifest_entry ["digest" ], collected )
175175 return collected
176176
@@ -196,7 +196,7 @@ def find_index_entry(self, reference: str) -> Optional[dict]:
196196 return manifest_entry
197197 return None
198198
199- def _process_manifest (self , digest : str , collected : list [str ]) -> None :
199+ def _process_manifest (self , digest : str , collected : List [str ]) -> None :
200200 """
201201 Recursively process a manifest blob and collect dependencies.
202202
0 commit comments