Skip to content

Commit

Permalink
The Python Gazelle plugin does not support the new type syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kshramt committed Dec 17, 2023
1 parent 193d4c5 commit 821d7c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openapi_codegen/src/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import re
import sys
from typing import Final, Iterable, Literal, Self
from typing import Final, Iterable, Literal, Self, TypeAlias

import pydantic
import yaml
Expand Down Expand Up @@ -82,7 +82,7 @@ def type_repr(self: Self) -> str:
return self.ref.split("/")[-1]


type NonObjectSchema = (
NonObjectSchema: TypeAlias = (
Ref
| StringSchema
| DateTimeSchema
Expand All @@ -92,7 +92,7 @@ def type_repr(self: Self) -> str:
| ArraySchema
)

type Schema = (
Schema: TypeAlias = (
Ref
| StringSchema
| IntegerSchema
Expand Down

0 comments on commit 821d7c2

Please sign in to comment.