Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion infrahub_sdk/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _get(self, key: str, kind: Optional[Union[str, type[SchemaType]]] = None, ra
if kind_name and kind_name in self._store and key in self._store[kind_name]: # type: ignore[attr-defined]
return self._store[kind_name][key] # type: ignore[attr-defined]

for _, item in self._store.items(): # type: ignore[attr-defined]
for item in self._store.values(): # type: ignore[attr-defined]
if key in item:
return item[key]

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ ignore = [
"FURB177", # Prefer `Path.cwd()` over `Path().resolve()` for current-directory lookups
"N802", # Function name should be lowercase
"N806", # Variable in function should be lowercase
"PERF102", # When using only the values of a dict use the `values()` method
"PERF203", # `try`-`except` within a loop incurs performance overhead
"PERF401", # Use a list comprehension to create a transformed list
"PLC0206", # Extracting value from dictionary without calling `.items()`
Expand Down