Skip to content

Commit 59caaec

Browse files
author
David Andersson
committed
Apply black formatting
1 parent fb6e755 commit 59caaec

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

examples/app/models_autogenerated.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ class TEmployee(typing.Protocol):
4545
query: orm.Query
4646

4747
# Model properties
48-
id: 'sqlalchemy.Column[int]'
49-
name: 'sqlalchemy.Column[str]'
50-
division: 'sqlalchemy.Column[str]'
51-
salary: 'sqlalchemy.Column[typing.Optional[float]]'
52-
53-
def __init__(self, id: int, name: str, division: str, salary: typing.Optional[float] = None) -> None:
48+
id: "sqlalchemy.Column[int]"
49+
name: "sqlalchemy.Column[str]"
50+
division: "sqlalchemy.Column[str]"
51+
salary: "sqlalchemy.Column[typing.Optional[float]]"
52+
53+
def __init__(
54+
self, id: int, name: str, division: str, salary: typing.Optional[float] = None
55+
) -> None:
5456
"""
5557
Construct.
5658
@@ -64,7 +66,9 @@ def __init__(self, id: int, name: str, division: str, salary: typing.Optional[fl
6466
...
6567

6668
@classmethod
67-
def from_dict(cls, id: int, name: str, division: str, salary: typing.Optional[float] = None) -> "TEmployee":
69+
def from_dict(
70+
cls, id: int, name: str, division: str, salary: typing.Optional[float] = None
71+
) -> "TEmployee":
6872
"""
6973
Construct from a dictionary (eg. a POST payload).
7074

0 commit comments

Comments
 (0)