@@ -7,7 +7,7 @@ def test_relation_resolution_if_include_relations_not_set(clear_sqlmodel):
77 class Team (SQLModel , table = True ):
88 id : Optional [int ] = Field (default = None , primary_key = True )
99 name : str
10- heroes : List ["Hero" ] = Relationship (back_populates = "team" )
10+ heroes : List ["Hero" ] = Relationship (back_populates = "team" ) # noqa: F821
1111
1212 class Config :
1313 orm_mode = True
@@ -42,7 +42,7 @@ def test_relation_resolution_if_include_relations_is_set(clear_sqlmodel):
4242 class Team (SQLModel , table = True ):
4343 id : Optional [int ] = Field (default = None , primary_key = True )
4444 name : str
45- heroes : List ["Hero" ] = Relationship (back_populates = "team" )
45+ heroes : List ["Hero" ] = Relationship (back_populates = "team" ) # noqa: F821
4646
4747 class Config :
4848 orm_mode = True
@@ -77,7 +77,7 @@ def test_relation_resolution_if_include_relations_is_set_for_nested(clear_sqlmod
7777 class Team (SQLModel , table = True ):
7878 id : Optional [int ] = Field (default = None , primary_key = True )
7979 name : str
80- heroes : List ["Hero" ] = Relationship (back_populates = "team" )
80+ heroes : List ["Hero" ] = Relationship (back_populates = "team" ) # noqa: F821
8181
8282 class Config :
8383 orm_mode = True
@@ -86,7 +86,7 @@ class Config:
8686 class Hero (SQLModel , table = True ):
8787 id : Optional [int ] = Field (default = None , primary_key = True )
8888 name : str
89- powers : List ["Power" ] = Relationship (back_populates = "hero" )
89+ powers : List ["Power" ] = Relationship (back_populates = "hero" ) # noqa: F821
9090 team_id : Optional [int ] = Field (default = None , foreign_key = "team.id" )
9191 team : Optional [Team ] = Relationship (back_populates = "heroes" )
9292
@@ -128,7 +128,7 @@ def test_relation_resolution_if_lazy_selectin_not_set_with_fastapi(clear_sqlmode
128128 class Team (SQLModel , table = True ):
129129 id : Optional [int ] = Field (default = None , primary_key = True )
130130 name : str
131- heroes : List ["Hero" ] = Relationship (back_populates = "team" )
131+ heroes : List ["Hero" ] = Relationship (back_populates = "team" ) # noqa: F821
132132
133133 class Config :
134134 orm_mode = True
@@ -137,7 +137,7 @@ class Config:
137137 class Hero (SQLModel , table = True ):
138138 id : Optional [int ] = Field (default = None , primary_key = True )
139139 name : str
140- powers : List ["Power" ] = Relationship (back_populates = "hero" )
140+ powers : List ["Power" ] = Relationship (back_populates = "hero" ) # noqa: F821
141141 team_id : Optional [int ] = Field (default = None , foreign_key = "team.id" )
142142 team : Optional [Team ] = Relationship (back_populates = "heroes" )
143143
@@ -191,7 +191,7 @@ def test_relation_resolution_if_lazy_selectin_is_set_with_fastapi(clear_sqlmodel
191191 class Team (SQLModel , table = True ):
192192 id : Optional [int ] = Field (default = None , primary_key = True )
193193 name : str
194- heroes : List ["Hero" ] = Relationship (
194+ heroes : List ["Hero" ] = Relationship ( # noqa: F821
195195 back_populates = "team" , sa_relationship_kwargs = {"lazy" : "selectin" }
196196 )
197197
@@ -202,7 +202,7 @@ class Config:
202202 class Hero (SQLModel , table = True ):
203203 id : Optional [int ] = Field (default = None , primary_key = True )
204204 name : str
205- powers : List ["Power" ] = Relationship (
205+ powers : List ["Power" ] = Relationship ( # noqa: F821
206206 back_populates = "hero" , sa_relationship_kwargs = {"lazy" : "selectin" }
207207 )
208208 team_id : Optional [int ] = Field (default = None , foreign_key = "team.id" )
0 commit comments