Skip to content

Commit b49f915

Browse files
committed
Simplify function signature
1 parent 4880a12 commit b49f915

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

infrahub_sdk/graphql.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
VARIABLE_TYPE_MAPPING = ((str, "String!"), (int, "Int!"), (float, "Float!"), (bool, "Boolean!"))
99

1010

11-
def convert_to_graphql_as_string( # noqa: PLR0911
12-
value: str | bool | list | BaseModel | Enum | Any | None, convert_enum: bool = False
13-
) -> str:
11+
def convert_to_graphql_as_string(value: Any, convert_enum: bool = False) -> str: # noqa: PLR0911
1412
if value is None:
1513
return "null"
1614
if isinstance(value, str) and value.startswith("$"):

0 commit comments

Comments
 (0)