Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
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
6 changes: 3 additions & 3 deletions examples/resources/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Dict, NoReturn
from typing import Dict

from cuenca_validations.errors import WrongCredsError

Expand All @@ -14,12 +14,12 @@ def health_auth_check() -> Dict:


@app.get('/raise_cuenca_errors')
def raise_cuenca_errors() -> NoReturn:
def raise_cuenca_errors() -> None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

según mypy el tipo correcto de retorno es NoReturn
https://mypy.readthedocs.io/en/latest/more_types.html#the-noreturn-type

raise WrongCredsError('you are not lucky enough!')


@app.get('/raise_fast_agave_errors')
def raise_fast_agave_errors() -> NoReturn:
def raise_fast_agave_errors() -> None:
raise UnauthorizedError('nice try!')


Expand Down
1 change: 1 addition & 0 deletions examples/resources/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ async def update(
user: UserModel, request: UserUpdateRequest, api_request: Request
) -> Response:
user.name = request.name
assert api_request.client # Only for mypy, client is optional
user.ip = api_request.client.host
await user.async_save()
return Response(content=user.to_dict(), status_code=200)
2 changes: 1 addition & 1 deletion fast_agave/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.14.1'
__version__ = '0.14.2.dev5'
11 changes: 7 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
aiobotocore==2.1.0
cuenca-validations==0.11.19
fastapi==0.68.2
mongoengine-plus==0.0.3
anyio==4.3.0
cuenca-validations==0.11.27
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pydantic no tuvo problemas? si si tal vez este prerelease pueda ayudar en algo.Actualiza hasta la última versión de pydantic 1.x https://github.com/cuenca-mx/cuenca-validations/releases/tag/0.11.28.dev0

fastapi==0.108.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Con esta actualización debemos asegurar que la versión de starlette>=28 de acuerdo a https://github.com/tiangolo/fastapi/releases/tag/0.107.0. Además revisar si la versión de starlette-context no tiene conflictos con una versión más actualizada e starlette

httpx==0.27.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

me parece que httpx es una dependencia para testing

mongoengine-plus==0.1.2
python-multipart==0.0.5
starlette-context==0.3.3
types-aiobotocore-sqs==2.1.0.post1
types-aiobotocore-sqs==2.1.0.post1
uvicorn==0.29.0
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@
'aiobotocore>=1.0.0,<3.0.0',
'types-aiobotocore-sqs>=2.1.0.post1,<3.0.0',
'cuenca-validations>=0.9.4,<1.0.0',
'fastapi>=0.63.0,<0.69.0',
'mongoengine-plus>=0.0.2,<1.0.0',
'fastapi>=0.63.0,<1.0.0',
'httpx>=0.19.0,<1.0.0',
'mongoengine-plus>=0.1.2,<1.0.0',
'starlette>=0.14.2,<1.0.0',
'starlette-context>=0.3.2,<0.4.0',
'uvicorn>=0.29.0,<1.0.0',
],
classifiers=[
'Programming Language :: Python :: 3.8',
Expand Down