diff options
author | Harshit Doshi <5103046+HarshitDoshi@users.noreply.github.com> | 2023-04-08 03:32:23 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-08 00:02:23 +0200 |
commit | 9fb2a2947e41ecd1597f8efe082de78e5374f98f (patch) | |
tree | 649af4077eac4e6ae4af004621f88fd87da064c7 /lib/sqlalchemy | |
parent | 24587f200934733b1a6734308c19210c7d51bc86 (diff) | |
download | sqlalchemy-9fb2a2947e41ecd1597f8efe082de78e5374f98f.tar.gz |
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".
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/orm/_orm_constructors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/_orm_constructors.py b/lib/sqlalchemy/orm/_orm_constructors.py index 11ed80d8c..57acc5706 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 |