]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix typo in the doc for `mapped_column` (#9612)
authorHarshit Doshi <5103046+HarshitDoshi@users.noreply.github.com>
Fri, 7 Apr 2023 22:02:23 +0000 (03:32 +0530)
committerGitHub <noreply@github.com>
Fri, 7 Apr 2023 22:02:23 +0000 (00:02 +0200)
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

index 11ed80d8c1a9e8a8f0d96916e660e51d9de411b5..57acc57061d815c25fa0dfb55bd12e8472504221 100644 (file)
@@ -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