Skip to content

Commit 37b986e

Browse files
committed
fix type annotation
1 parent 05fff81 commit 37b986e

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/app/auth/users/interfaces/da/models.py

+22-22
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@
3535
class User(BaseUserModel, Base):
3636
__tablename__ = "users"
3737

38-
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True)
39-
username: Mapped[str]
40-
description: Mapped[str | None]
41-
email: Mapped[str]
42-
password: Mapped[str]
43-
picture_url: Mapped[str | None]
38+
id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True) # type: ignore[assignment]
39+
username: Mapped[str] # type: ignore[assignment]
40+
description: Mapped[str | None] # type: ignore[assignment]
41+
email: Mapped[str] # type: ignore[assignment]
42+
password: Mapped[str] # type: ignore[assignment]
43+
picture_url: Mapped[str | None] # type: ignore[assignment]
4444

45-
created_at: Mapped[date]
46-
updated_at: Mapped[datetime]
45+
created_at: Mapped[date] # type: ignore[assignment]
46+
updated_at: Mapped[datetime] # type: ignore[assignment]
4747

48-
access_level: Mapped[str]
49-
premium_level: Mapped[str]
50-
telegram_id: Mapped[int | None]
51-
is_verified: Mapped[bool]
48+
access_level: Mapped[str] # type: ignore[assignment]
49+
premium_level: Mapped[str] # type: ignore[assignment]
50+
telegram_id: Mapped[int | None] # type: ignore[assignment]
51+
is_verified: Mapped[bool] # type: ignore[assignment]
5252

53-
artist_id: Mapped[int] = mapped_column(ForeignKey("artist_profiles.id"))
54-
producer_id: Mapped[int] = mapped_column(ForeignKey("producer_profiles.id"))
53+
artist_id: Mapped[int] = mapped_column(ForeignKey("artist_profiles.id")) # type: ignore[assignment]
54+
producer_id: Mapped[int] = mapped_column(ForeignKey("producer_profiles.id")) # type: ignore[assignment]
5555

5656
artist_profile: Mapped[ArtistProfile] = relationship(
5757
argument="ArtistProfile",
@@ -67,47 +67,47 @@ class User(BaseUserModel, Base):
6767
single_parent=True,
6868
lazy="joined",
6969
)
70-
licenses: Mapped[list[License]] = relationship(
70+
licenses: Mapped[list[License]] = relationship( # type: ignore[assignment]
7171
argument="License",
7272
secondary=author_to_licenses_association,
7373
back_populates="author",
7474
lazy="selectin",
7575
)
76-
followed_squads: Mapped[list[Squad]] = relationship(
76+
followed_squads: Mapped[list[Squad]] = relationship( # type: ignore[assignment]
7777
argument="Squad",
7878
secondary=follower_to_squads_association,
7979
back_populates="followers",
8080
lazy="selectin",
8181
)
82-
followed_artists: Mapped[list[ArtistProfile]] = relationship(
82+
followed_artists: Mapped[list[ArtistProfile]] = relationship( # type: ignore[assignment]
8383
argument="ArtistProfile",
8484
secondary=followers_to_artists_association,
8585
back_populates="followers",
8686
lazy="selectin",
8787
)
88-
coauthored_playlists: Mapped[list[Playlist]] = relationship(
88+
coauthored_playlists: Mapped[list[Playlist]] = relationship( # type: ignore[assignment]
8989
argument="Playlist",
9090
secondary=author_to_playlists_association,
9191
back_populates="authors",
9292
lazy="selectin",
9393
)
94-
saved_playlists: Mapped[list[Playlist]] = relationship(
94+
saved_playlists: Mapped[list[Playlist]] = relationship( # type: ignore[assignment]
9595
argument="Playlist",
9696
secondary=saver_to_playlists_association,
9797
lazy="selectin",
9898
)
99-
followed_producers: Mapped[list[ProducerProfile]] = relationship(
99+
followed_producers: Mapped[list[ProducerProfile]] = relationship( # type: ignore[assignment]
100100
argument="ProducerProfile",
101101
secondary=followers_to_producers_association,
102102
back_populates="followers",
103103
lazy="selectin",
104104
)
105-
saved_albums: Mapped[list[Album]] = relationship(
105+
saved_albums: Mapped[list[Album]] = relationship( # type: ignore[assignment]
106106
argument="Album",
107107
secondary=saver_to_albums_association,
108108
lazy="selectin",
109109
)
110-
followed_tags: Mapped[list[Tag]] = relationship(
110+
followed_tags: Mapped[list[Tag]] = relationship( # type: ignore[assignment]
111111
argument="Tag",
112112
secondary=follower_to_tag_association,
113113
lazy="selectin",

0 commit comments

Comments
 (0)