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
Making class cached_property generic over the value solves this problem and corrects the type of a few fields like Request.base_url. I have a PR ready for this that actually removes a few instances of # type: ignore in werkzeug code (although it adds two new ones.)
The text was updated successfully, but these errors were encountered:
I opened #2117. It's my understanding that any performance issues with Generic should only affect the startup times, unless classes are created on the fly, since cached_property instances are only initiated on startup.
Currently the following code will infer type
Any
forFoo().bar
, although it should infer typestr
:Making
class cached_property
generic over the value solves this problem and corrects the type of a few fields likeRequest.base_url
. I have a PR ready for this that actually removes a few instances of# type: ignore
in werkzeug code (although it adds two new ones.)The text was updated successfully, but these errors were encountered: