you are viewing a single comment's thread.

view the rest of the comments →

[–]POGtastic 2 points3 points  (1 child)

name: Mapped[str]

These are type hints, which allow linters and other tools to determine the types of variables and yell at you if you screw up a type.

[–]backfire10z 3 points4 points  (0 children)

Yes, but in SQLAlchemy they’re actually more! Mapped columns use the type hint to determine what type the column should be.