Skip to content

Commit

Permalink
Silence Mypy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Oct 13, 2017
1 parent d30caf8 commit 93a42f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hypothesis/internal/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def accept(*args, **kwargs):
def check_function(f):
return f

@contextmanager
# Mypy incorrectly reports 'Name already defined', due to the decorator
# Issue: https://github.com/python/mypy/issues/4117
@contextmanager # type: ignore
def check(name):
yield

Expand Down

0 comments on commit 93a42f7

Please sign in to comment.