Skip to content

Commit 13a0041

Browse files
committed
fix: lint
1 parent e0323ca commit 13a0041

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

openhexa/sdk/pipelines/parameter/ast_constructible.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,5 @@ def from_ast_call(cls, node: ast.Call) -> "AstConstructible":
2626
for i, arg in enumerate(node.args)
2727
if isinstance(arg, ast.Constant) and i < len(param_names)
2828
}
29-
kwargs |= {
30-
kw.arg: kw.value.value
31-
for kw in node.keywords
32-
if isinstance(kw.value, ast.Constant)
33-
}
29+
kwargs |= {kw.arg: kw.value.value for kw in node.keywords if isinstance(kw.value, ast.Constant)}
3430
return cls(**kwargs)

openhexa/sdk/pipelines/runtime.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
import io
77
import os
88
import sys
9+
from collections.abc import Callable
910
from dataclasses import dataclass, field
1011
from pathlib import Path
11-
from typing import Any, Callable
12+
from typing import Any
1213
from zipfile import ZipFile
1314

1415
import requests

0 commit comments

Comments
 (0)