routing.BaseRoute and BaseRoute #9716
Unanswered
dineshbvadhia
asked this question in
Questions
Replies: 1 comment
-
There is no difference, they resolve to the same class... Afaik the issue is that BaseRoute (unlike Route from the same module) does not define |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
na
Description
What is the difference between routing.BaseRoute and BaseRoute in the routing.py module?
https://github.com/tiangolo/fastapi/blob/223ed676821f729cc31018c377279258087acecc/fastapi/routing.py#L495
https://github.com/tiangolo/fastapi/blob/223ed676821f729cc31018c377279258087acecc/fastapi/routing.py#L496
I'm getting the mypy error: "BaseRoute" has no attribute "path" [attr-defined]
Operating System
Windows
Operating System Details
No response
FastAPI Version
0.95
Python Version
3.10.8
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions