Skip to content

Commit 27f4185

Browse files
author
Lukasz Langa
committed
Temporary workaround for pallets/werkzeug#1051
Starting with python/mypy#2521 mypy is performing stricter function signature checks. This makes the stubs diverge from the actual implementation but makes the stubs internally consistent. Since this is an actual typing issue in the base implementation, we need to defer to the original authors to fix it.
1 parent 4c6c273 commit 27f4185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/2/werkzeug/datastructures.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class Headers(Mapping):
161161
def __copy__(self): ...
162162

163163
class ImmutableHeadersMixin:
164-
def __delitem__(self, key, **kwargs): ...
164+
def __delitem__(self, key, _index_operation=True): ... # FIXME: This is invalid but works around https://github.com/pallets/werkzeug/issues/1051
165165
def __setitem__(self, key, value): ...
166166
set = ... # type: Any
167167
def add(self, *args, **kwargs): ...

0 commit comments

Comments
 (0)