mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
The PR #2740 added __setattr__ and __getattr__ to the werkzeug.wrappers.BaseRequest definition to silence mypy when monkeypatching this class. The change disabled the errors for monkeypatching, but disabled disabled the important check attr-defined.
This commit is contained in:
5
third_party/2and3/werkzeug/wrappers.pyi
vendored
5
third_party/2and3/werkzeug/wrappers.pyi
vendored
@@ -87,11 +87,6 @@ class BaseRequest:
|
||||
is_multiprocess: bool
|
||||
is_run_once: bool
|
||||
|
||||
# These are not preset at runtime but we add them since monkeypatching this
|
||||
# class is quite common.
|
||||
def __setattr__(self, name: str, value: Any): ...
|
||||
def __getattr__(self, name: str): ...
|
||||
|
||||
_OnCloseT = TypeVar('_OnCloseT', bound=Callable[[], Any])
|
||||
_SelfT = TypeVar('_SelfT', bound=BaseResponse)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user