Skip to content

Commit 0b48ff7

Browse files
committed
fix mypy
1 parent d98a7c4 commit 0b48ff7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infrahub_sdk/graphql/renderers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import json
44
from datetime import datetime
55
from enum import Enum
6-
from typing import Any
6+
from typing import Any, Union
77

88
from pydantic import BaseModel
99

@@ -67,7 +67,7 @@ def convert_to_graphql_as_string(value: Any, convert_enum: bool = False) -> str:
6767
return str(value)
6868

6969

70-
GRAPHQL_VARIABLE_TYPES = type[str | int | float | bool | datetime | None]
70+
GRAPHQL_VARIABLE_TYPES = type[Union[str, int, float, bool, datetime, None]]
7171

7272

7373
def render_variables_to_string(data: dict[str, GRAPHQL_VARIABLE_TYPES]) -> str:

0 commit comments

Comments
 (0)