Skip to content

Commit a17782b

Browse files
committed
Lint.
1 parent 6c53351 commit a17782b

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Diff for: graphene_sqlalchemy/tests/models.py

+8-9
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ def __repr__(self):
5656
return "{} {}".format(self.first_name, self.last_name)
5757

5858

59-
class Article(Base):
60-
__tablename__ = "articles"
61-
id = Column(Integer(), primary_key=True)
62-
headline = Column(String(100))
63-
pub_date = Column(Date())
64-
reporter_id = Column(Integer(), ForeignKey("reporters.id"))
65-
66-
6759
class Reporter(Base):
6860
__tablename__ = "reporters"
6961

@@ -107,6 +99,14 @@ def hybrid_prop_list(self) -> List[int]:
10799
composite_prop = composite(CompositeFullName, first_name, last_name, doc="Composite")
108100

109101

102+
class Article(Base):
103+
__tablename__ = "articles"
104+
id = Column(Integer(), primary_key=True)
105+
headline = Column(String(100))
106+
pub_date = Column(Date())
107+
reporter_id = Column(Integer(), ForeignKey("reporters.id"))
108+
109+
110110
class ReflectedEditor(type):
111111
"""Same as Editor, but using reflected table."""
112112

@@ -200,7 +200,6 @@ def hybrid_prop_shopping_cart_item_list(self) -> List[ShoppingCartItem]:
200200
return [ShoppingCartItem(id=1), ShoppingCartItem(id=2)]
201201

202202
# Unsupported Type
203-
204203
@hybrid_property
205204
def hybrid_prop_unsupported_type_tuple(self) -> Tuple[str, str]:
206205
return "this will actually", "be a string"

0 commit comments

Comments
 (0)