8000 Better Request aliasing in dependencies.py · Issue #53 · volfpeter/fasthx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Better Request aliasing in dependencies.py #53
Closed
@volfpeter

Description

@volfpeter

Proposal:

  • RequestAlias should be renamed to Request and the FastAPI Request should be aliased.
  • RequestAlias should be in an if TYPE_CHECKING block instead of the Depends* utilities.

This way the dependencies could be used directly and their typing would be "complete".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0