Skip to content

Commit 0ab9027

Browse files
docs: fix typos (contraint, funciton, priorty) in docstrings (#1808)
Co-authored-by: Bojun Chai <bojunchai@microsoft.com>
1 parent 02d72c2 commit 0ab9027

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

alembic/op.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def add_column(
8686
8787
.. note::
8888
89-
Not all contraint types may be indicated with this directive.
89+
Not all constraint types may be indicated with this directive.
9090
NOT NULL, FOREIGN KEY, and CHECK are honored, PRIMARY KEY
9191
is conditionally honored, UNIQUE
9292
is currently not.

alembic/operations/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ def add_column(
652652
653653
.. note::
654654
655-
Not all contraint types may be indicated with this directive.
655+
Not all constraint types may be indicated with this directive.
656656
NOT NULL, FOREIGN KEY, and CHECK are honored, PRIMARY KEY
657657
is conditionally honored, UNIQUE
658658
is currently not.

alembic/operations/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ def add_column(
21232123
21242124
.. note::
21252125
2126-
Not all contraint types may be indicated with this directive.
2126+
Not all constraint types may be indicated with this directive.
21272127
NOT NULL, FOREIGN KEY, and CHECK are honored, PRIMARY KEY
21282128
is conditionally honored, UNIQUE
21292129
is currently not.

alembic/util/langhelpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ class DispatchPriority(enum.IntEnum):
292292
"""
293293

294294
FIRST = 50
295-
"""Run the funciton in the first batch of functions (highest priority)"""
295+
"""Run the function in the first batch of functions (highest priority)"""
296296

297297
MEDIUM = 25
298298
"""Run the function at normal priority (this is the default)"""
@@ -354,7 +354,7 @@ def branch(self) -> Dispatcher:
354354

355355

356356
class PriorityDispatcher:
357-
"""registers lists of functions at multiple levels of priorty and provides
357+
"""registers lists of functions at multiple levels of priority and provides
358358
a target to invoke them in priority order.
359359
360360
.. versionadded:: 1.18.0 - PriorityDispatcher replaces the job

0 commit comments

Comments
 (0)