From 9fb2a2947e41ecd1597f8efe082de78e5374f98f Mon Sep 17 00:00:00 2001 From: Harshit Doshi <5103046+HarshitDoshi@users.noreply.github.com> Date: Sat, 8 Apr 2023 03:32:23 +0530 Subject: [PATCH] Fix typo in the doc for `mapped_column` (#9612) I found an extremely and probably insignificant typo in the doc for `mapped_column` while actually trying to use and understand it for my project and have fixed it here. The typo was for a "for" which was instead mentioned as "or". --- lib/sqlalchemy/orm/_orm_constructors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sqlalchemy/orm/_orm_constructors.py b/lib/sqlalchemy/orm/_orm_constructors.py index 11ed80d8c1..57acc57061 100644 --- a/lib/sqlalchemy/orm/_orm_constructors.py +++ b/lib/sqlalchemy/orm/_orm_constructors.py @@ -185,7 +185,7 @@ def mapped_column( "NOT NULL". If omitted, the nullability is derived from the type annotation based on whether or not ``typing.Optional`` is present. ``nullable`` defaults to ``True`` otherwise for non-primary key columns, - and ``False`` or primary key columns. + and ``False`` for primary key columns. :param primary_key: optional bool, indicates the :class:`_schema.Column` would be part of the table's primary key or not. :param deferred: Optional bool - this keyword argument is consumed by the -- 2.47.2