@@ -43,7 +43,7 @@ def from_dict(cls, data: Dict[str, Any]) -> "LineageRepro":
4343 if not hash_value :
4444 raise KeyError ("Hash" )
4545
46- # CreatedAt is present in both schemas; normalise if available
46+ # CreatedAt is present in both schemas, normalize if available
4747 created_at_str = data .get ("CreatedAt" ) or data .get ("created_at" )
4848 if created_at_str :
4949 # Handle both RFC3339 formats
@@ -55,22 +55,22 @@ def from_dict(cls, data: Dict[str, Any]) -> "LineageRepro":
5555 created_at = datetime .min
5656
5757 # Count:
58- # - prefer explicit Count from legacy schema
59- # - otherwise derive from ConfigIndices (one count per config index)
60- # - final fallback is a single repro
58+ # - prefer explicit Count from legacy schema
59+ # - otherwise derive from ConfigIndices (one count per config index)
60+ # - final fallback is a single repro
6161 if "Count" in data :
6262 count = int (data ["Count" ])
6363 else :
6464 cfg_indices = data .get ("ConfigIndices" ) or data .get ("config_indices" ) or []
6565 if isinstance (cfg_indices , list ):
6666 count = max (len (cfg_indices ), 1 ) if cfg_indices else 1
6767 else :
68- # Unexpected shape; treat as a single repro
68+ # Unexpected shape: treat as a single repro
6969 count = 1
7070
7171 # AllVerified:
72- # - legacy AllVerified flag if present
73- # - otherwise fall back to the newer Verified flag
72+ # - legacy AllVerified flag if present
73+ # - otherwise fall back to the newer Verified flag
7474 if "AllVerified" in data :
7575 all_verified = bool (data ["AllVerified" ])
7676 else :
@@ -103,8 +103,8 @@ def from_dict(cls, data: Dict[str, Any]) -> "ReproIndexResponse":
103103 lineages [lineage_name ] = [LineageRepro .from_dict (r ) for r in (repros or [])]
104104
105105 # Bundle ID:
106- # - legacy compat: top-level "BundleID"
107- # - current NG API: "Bundle" object with "id" field
106+ # - legacy compat: top-level "BundleID"
107+ # - current NG API: "Bundle" object with "id" field
108108 bundle_id = data .get ("BundleID" )
109109 if not bundle_id :
110110 bundle = data .get ("Bundle" ) or data .get ("bundle" )
0 commit comments