From: Harshit Doshi <5103046+HarshitDoshi@users.noreply.github.com> Date: Fri, 7 Apr 2023 22:02:23 +0000 (+0530) Subject: Fix typo in the doc for `mapped_column` (#9612) X-Git-Tag: rel_2_0_10~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fb2a2947e41ecd1597f8efe082de78e5374f98f;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git 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". --- 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