Skip to content

Commit

Permalink
Bumped version to 0.1.1
Browse files Browse the repository at this point in the history
Signed-off-by: chandr-andr (Kiselev Aleksandr) <[email protected]>
  • Loading branch information
chandr-andr committed Oct 20, 2024
1 parent f8fe1ea commit 3fd91f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
23 changes: 1 addition & 22 deletions falcon_deps/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from falcon.routing.util import SuffixedMethodNotFoundError
import falcon.asgi
from taskiq_dependencies import DependencyGraph, Depends
from taskiq_dependencies import DependencyGraph
from falcon._typing import MethodDict
from falcon import constants

Expand Down Expand Up @@ -161,24 +161,3 @@ async def _handle_with_graph(
)

return _handle_with_graph # type: ignore


async def dep1(request: falcon.asgi.Request = Depends()) -> int:
print(request.auth)
return 123


class TestResource(InjectableResource):
async def on_get(
self,
request: falcon.asgi.Request,
response: falcon.asgi.Response,
dep1: int = Depends(dep1),
) -> None:
print(dep1)


def create_app():
app = falcon.asgi.App()
app.add_route("/test", TestResource())
return app
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "falcon-deps"
version = "0.1.0"
version = "0.1.1"
description = ""
authors = ["chandr-andr (Kiselev Aleksandr) <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 3fd91f6

Please sign in to comment.