Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
koxudaxi committed Aug 8, 2024
1 parent 9c3e8b9 commit 7a04ad9
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from __future__ import annotations

from datetime import date, datetime
from typing import Literal ,Optional, TypeAlias
from typing import Literal, Optional, TypeAlias

from mymodule.myclass import MyCustomPythonClass
from pydantic import BaseModel, Field
Expand Down
1 change: 0 additions & 1 deletion tests/data/expected/main/graphql/custom_scalar_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from pydantic import BaseModel, Field


Boolean: TypeAlias = bool
"""
The `Boolean` scalar type represents `true` or `false`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

from __future__ import annotations

from typing import Literal, List, Optional, TypeAlias
from typing import List, Literal, Optional, TypeAlias

from pydantic import BaseModel, Field


Boolean: TypeAlias = bool
"""
The `Boolean` scalar type represents `true` or `false`.
Expand Down
2 changes: 1 addition & 1 deletion tests/data/expected/main/graphql/github_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from datetime import date, datetime
from enum import Enum
from typing import Literal, List, Optional, TypeAlias, Union
from typing import List, Literal, Optional, TypeAlias, Union

from pydantic import BaseModel, Field

Expand Down
2 changes: 1 addition & 1 deletion tests/data/expected/main/graphql/simple_star_wars.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from __future__ import annotations

from typing import Literal, List, Optional, TypeAlias
from typing import List, Literal, Optional, TypeAlias

from pydantic import BaseModel, Field

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from __future__ import annotations

from dataclasses import dataclass
from typing import Literal, List, Optional, TypeAlias

from typing import List, Literal, Optional, TypeAlias

Boolean: TypeAlias = bool
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/data/expected/main/graphql/use_union_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from __future__ import annotations

from typing import Literal, List, TypeAlias
from typing import List, Literal, TypeAlias

from pydantic import BaseModel, Field

Expand Down

0 comments on commit 7a04ad9

Please sign in to comment.