From 0ab90276fc583d52e31e95d3f59b4b6c00ec39ee Mon Sep 17 00:00:00 2001 From: Bojun Chai Date: Tue, 21 Apr 2026 05:11:28 +0800 Subject: [PATCH] docs: fix typos (contraint, funciton, priorty) in docstrings (#1808) Co-authored-by: Bojun Chai --- alembic/op.pyi | 2 +- alembic/operations/base.py | 2 +- alembic/operations/ops.py | 2 +- alembic/util/langhelpers.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) 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 -- 2.47.3