routing.BaseRoute and BaseRoute #9716
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
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
naDescription
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