Skip to content

Commit 63581eb

Browse files
committed
fix linting E226 and F401
1 parent e85d5cb commit 63581eb

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/xulbux/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,13 +318,13 @@ def get_value_by_path_id(cls, data: DataStructure, path_id: str, get_key: bool =
318318
elif isinstance(current_data, IndexIterableTypes):
319319
if i == len(path) - 1 and get_key:
320320
if parent is None or not isinstance(parent, dict):
321-
raise ValueError(f"Cannot get key from a non-dict parent at path '{path[:i+1]}'")
321+
raise ValueError(f"Cannot get key from a non-dict parent at path '{path[:i + 1]}'")
322322
return next(key for key, value in parent.items() if value is current_data)
323323
parent = current_data
324324
current_data = list(current_data)[path_idx] # CONVERT TO LIST FOR INDEXING
325325

326326
else:
327-
raise TypeError(f"Unsupported type '{type(current_data)}' at path '{path[:i+1]}'")
327+
raise TypeError(f"Unsupported type '{type(current_data)}' at path '{path[:i + 1]}'")
328328

329329
return current_data
330330

tests/test_metadata_consistency.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from typing import Optional
2-
from datetime import datetime
32
from pathlib import Path
43
import subprocess
54
import pytest

0 commit comments

Comments
 (0)