Skip to content

Commit

Permalink
Temporary workaround for pallets/werkzeug#1051
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Lukasz Langa committed Dec 22, 2016
1 parent 4c6c273 commit 27f4185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion third_party/2/werkzeug/datastructures.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class Headers(Mapping):
def __copy__(self): ...

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

0 comments on commit 27f4185

Please sign in to comment.