You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The endpoint for this rule. This can be anything. A reference to a function, a string, a number etc. The preferred way is using a string because the endpoint is used for URL generation.
According to the documentation, anything can be used as a
Rule
endpoint: https://werkzeug.palletsprojects.com/en/3.0.x/routing/#werkzeug.routing.RuleHowever, the type is annotated as
str | None
:werkzeug/src/werkzeug/routing/rules.py
Line 448 in d3dd65a
werkzeug/src/werkzeug/routing/rules.py
Line 488 in d3dd65a
The same applies to the parameter
endpoint
ofMapAdapter.build()
(and possibly more):werkzeug/src/werkzeug/routing/map.py
Line 825 in d3dd65a
Environment:
The text was updated successfully, but these errors were encountered: