From: Bojun Chai Date: Mon, 20 Apr 2026 21:11:28 +0000 (+0800) Subject: docs: fix typos (contraint, funciton, priorty) in docstrings (#1808) X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fsqlalchemy%2Falembic.git docs: fix typos (contraint, funciton, priorty) in docstrings (#1808) Co-authored-by: Bojun Chai --- diff --git a/alembic/op.pyi b/alembic/op.pyi index 7fadaf5f..8b347d21 100644 --- a/alembic/op.pyi +++ b/alembic/op.pyi @@ -86,7 +86,7 @@ def add_column( .. note:: - Not all contraint types may be indicated with this directive. + Not all constraint types may be indicated with this directive. NOT NULL, FOREIGN KEY, and CHECK are honored, PRIMARY KEY is conditionally honored, UNIQUE is currently not. diff --git a/alembic/operations/base.py b/alembic/operations/base.py index b9e6107f..67aefdd4 100644 --- a/alembic/operations/base.py +++ b/alembic/operations/base.py @@ -652,7 +652,7 @@ class Operations(AbstractOperations): .. note:: - Not all contraint types may be indicated with this directive. + Not all constraint types may be indicated with this directive. NOT NULL, FOREIGN KEY, and CHECK are honored, PRIMARY KEY is conditionally honored, UNIQUE is currently not. diff --git a/alembic/operations/ops.py b/alembic/operations/ops.py index 7eda50d6..c474c07b 100644 --- a/alembic/operations/ops.py +++ b/alembic/operations/ops.py @@ -2123,7 +2123,7 @@ class AddColumnOp(AlterTableOp): .. note:: - Not all contraint types may be indicated with this directive. + Not all constraint types may be indicated with this directive. NOT NULL, FOREIGN KEY, and CHECK are honored, PRIMARY KEY is conditionally honored, UNIQUE is currently not. diff --git a/alembic/util/langhelpers.py b/alembic/util/langhelpers.py index cf0df239..c7226a4c 100644 --- a/alembic/util/langhelpers.py +++ b/alembic/util/langhelpers.py @@ -292,7 +292,7 @@ class DispatchPriority(enum.IntEnum): """ FIRST = 50 - """Run the funciton in the first batch of functions (highest priority)""" + """Run the function in the first batch of functions (highest priority)""" MEDIUM = 25 """Run the function at normal priority (this is the default)""" @@ -354,7 +354,7 @@ class Dispatcher: class PriorityDispatcher: - """registers lists of functions at multiple levels of priorty and provides + """registers lists of functions at multiple levels of priority and provides a target to invoke them in priority order. .. versionadded:: 1.18.0 - PriorityDispatcher replaces the job