Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

docs: Fix a few typos #408

Open
wants to merge 1 commit into
base: 0.9
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions orator/orm/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def add_global_scope(cls, scope, implementation=None):
:type scope: orator.orm.scopes.scope.Scope or callable or str

:param implementation: The scope implementation
:type implementation: callbale or None
:type implementation: callable or None
"""
if cls not in cls._global_scopes:
cls._global_scopes[cls] = OrderedDict()
Expand Down Expand Up @@ -2180,7 +2180,7 @@ def guard(self, guarded):
@classmethod
def unguard(cls):
"""
Disable the mass assigment restrictions.
Disable the mass assignment restrictions.
"""
cls.__unguarded__ = True

Expand Down
2 changes: 1 addition & 1 deletion orator/orm/relations/belongs_to_many.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ def _get_attach_id(self, key, value, attributes):

def _create_attach_record(self, id, timed):
"""
Create a new pivot attachement record.
Create a new pivot attachment record.
"""
record = {}

Expand Down
2 changes: 1 addition & 1 deletion orator/orm/relations/morph_to_many.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def add_eager_constraints(self, models):

def _create_attach_record(self, id, timed):
"""
Create a new pivot attachement record.
Create a new pivot attachment record.
"""
record = super(MorphToMany, self)._create_attach_record(id, timed)

Expand Down
6 changes: 3 additions & 3 deletions orator/query/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ def find(self, id, columns=None):
:param id: The id of the record to retrieve
:type id: mixed

:param columns: The columns of the record to retrive
:param columns: The columns of the record to retrieve
:type columns: list

:return: mixed
Expand Down Expand Up @@ -1263,7 +1263,7 @@ def min(self, column):
"""
Retrieve the "min" result of the query

:param column: The column to get the minimun for
:param column: The column to get the minimum for
:type column: tuple

:return: The min
Expand Down Expand Up @@ -1318,7 +1318,7 @@ def aggregate(self, func, *columns):
:param func: The aggregate function
:type func: str

:param columns: The columns to execute the fnction for
:param columns: The columns to execute the function for
:type columns: tuple

:return: The aggregate result
Expand Down
2 changes: 1 addition & 1 deletion orator/schema/grammars/grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _get_columns(self, blueprint):

def _add_modifiers(self, sql, blueprint, column):
"""
Add the column modifiers to the deifinition
Add the column modifiers to the definition
"""
for modifier in self._modifiers:
method = "_modify_%s" % modifier
Expand Down