27 January 2026
Boyso suggest me some lactures from youtube
If you want from YouTube better to use the search there. Here we recommend reading rather than watching videos
id 5254243129Hi everyone!
I’m new here and just starting to learn Python.
Could you please recommend what I should focus on first and how to learn more effectively?
Thanks in advance!
Focus on the basics. Try to better follow a book or a course because you are not ready to choose some topics and skip others
28 January 2026
Hey guys, does SQLModel not support "Annotated + Relationship" ?
class Group(SQLModel, table=True):
"""Group Model"""
id: Annotated[int | None, Field(primary_key=True)] = None
name: Annotated[str, Field(index=True, description="Name of the group")]
# Error
# heroes: Annotated[list["Hero"], Relationship(back_populates="group")] = []
heroes: list["Hero"] = Relationship(back_populates="group")
class Hero(SQLModel, table=True):
"""Hero Model"""
id: Annotated[int | None, Field(primary_key=True)] = None
name: Annotated[str, Field(index=True, description="Name of the hero")]
group_id: Annotated[int | None, Field(foreign_key="group.id")] = None
group: Group | None = Relationship(back_populates="heroes")
fooHey guys, does SQLModel not support "Annotated + Relationship" ?
class Group(SQLModel, table=True):
"""Group Model"""
id: Annotated[int | None, Field(primary_key=True)] = None
name: Annotated[str, Field(index=True, description="Name of the group")]
# Error
# heroes: Annotated[li
heroes: list["Hero"] = Relationship(back_populates="group")
fooheroes: Annotated[list["Hero"], Relationship(back_populates="group")] = []
I think this is possible, but it gave me an error.
Bottom line: Annotated is for type hints/metadata, but Relationship() needs to be executed and assigned directly.
fooheroes: Annotated[list["Hero"], Relationship(back_populates="group")] = []
I think this is possible, but it gave me an error.
heroes: list["Hero"]
heroes = Relationship(back_populates="group")
Replymessage unavailable
No wonder you're stuck if all you search for is architecture. Google can guess as much as we can about what you want.