We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 448eac4 commit c2cf606Copy full SHA for c2cf606
infrahub_sdk/ctl/graphql.py
@@ -3,6 +3,7 @@
3
import ast
4
from collections import defaultdict
5
from pathlib import Path
6
+from typing import Optional
7
8
import typer
9
from ariadne_codegen.client_generators.package import PackageGenerator, get_package_generator
@@ -112,7 +113,7 @@ async def export_schema(
112
113
@app.command()
114
@catch_exception(console=console)
115
async def generate_return_types(
- 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)."),
117
schema: Path = typer.Option("schema.graphql", help="Path to the GraphQL schema file."),
118
_: str = CONFIG_PARAM,
119
) -> None:
0 commit comments