Skip to content

Commit c2cf606

Browse files
committed
Fix issue with python 3.9
1 parent 448eac4 commit c2cf606

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

infrahub_sdk/ctl/graphql.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import ast
44
from collections import defaultdict
55
from pathlib import Path
6+
from typing import Optional
67

78
import typer
89
from ariadne_codegen.client_generators.package import PackageGenerator, get_package_generator
@@ -112,7 +113,7 @@ async def export_schema(
112113
@app.command()
113114
@catch_exception(console=console)
114115
async def generate_return_types(
115-
query: Path | None = typer.Argument(None, help="Location of the GraphQL query file(s)."),
116+
query: Optional[Path] = typer.Argument(None, help="Location of the GraphQL query file(s)."),
116117
schema: Path = typer.Option("schema.graphql", help="Path to the GraphQL schema file."),
117118
_: str = CONFIG_PARAM,
118119
) -> None:

0 commit comments

Comments
 (0)