Skip to content

Commit

Permalink
Delete unused ignore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Oct 13, 2020
1 parent ec0c417 commit 7853c93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
RELEASE_TYPE: patch

This patch tweaks our linter configuration for :pypi:`mypy` 0.790.
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,7 @@ def as_strategy(strat_or_callable, thing, final=True):
# We also have a special case for TypeVars.
# They are represented as instances like `~T` when they come here.
# We need to work with their type instead.
if isinstance(thing, TypeVar) and type(thing) in types._global_type_lookup: # type: ignore
if isinstance(thing, TypeVar) and type(thing) in types._global_type_lookup:
return as_strategy(types._global_type_lookup[type(thing)], thing)
# If there's no explicitly registered strategy, maybe a subtype of thing
# is registered - if so, we can resolve it to the subclass strategy.
Expand Down

0 comments on commit 7853c93

Please sign in to comment.