docs: fix typos (#1665)

* docs: fix typos

* typos: fix typos found by `codespell` across the codebase

* docs: fix `macOS` spelling

* docs: fix `authentification` terminology

"Authentification" is not a thing.

* docs: fix `localhost` typo in example link

* typos: fix in-code typos

These are potentially higher risk, but no other mentions of these typos
show up in the codebase.
This commit is contained in:
Ben Boeckel
2022-09-25 23:17:27 +00:00
committed by GitHub
parent 33dad80eff
commit 2e6b877ba9
46 changed files with 66 additions and 66 deletions

View File

@@ -13,7 +13,7 @@ class ErrorResponse(BaseModel):
@classmethod
def respond(cls, message: str, exception: Optional[str] = None) -> dict:
"""
This method is an helper to create an obect and convert to a dictionary
This method is an helper to create an object and convert to a dictionary
in the same call, for use while providing details to a HTTPException
"""
return cls(message=message, exception=exception).dict()
@@ -26,7 +26,7 @@ class SuccessResponse(BaseModel):
@classmethod
def respond(cls, message: str) -> dict:
"""
This method is an helper to create an obect and convert to a dictionary
This method is an helper to create an object and convert to a dictionary
in the same call, for use while providing details to a HTTPException
"""
return cls(message=message).dict()
@@ -38,7 +38,7 @@ class FileTokenResponse(MealieModel):
@classmethod
def respond(cls, token: str) -> dict:
"""
This method is an helper to create an obect and convert to a dictionary
This method is an helper to create an object and convert to a dictionary
in the same call, for use while providing details to a HTTPException
"""
return cls(file_token=token).dict()