Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
msullivan committed Nov 1, 2019
1 parent 6c48aff commit 0ac4544
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mypy/suggestions.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def get_suggestion(self, mod: str, node: FuncDef) -> PyAnnotateSignature:
else:
ret_types = [NoneType()]

guesses = [refine_callable(best, best.copy_modified(ret_type=t)) for t in ret_types]
guesses = [best.copy_modified(ret_type=refine_type(best.ret_type, t)) for t in ret_types]
guesses = self.filter_options(guesses, is_method)
best, errors = self.find_best(node, guesses)

Expand Down Expand Up @@ -921,8 +921,6 @@ def refine_union(t: UnionType, s: ProperType) -> Type:
if not refined:
new_items.append(lhs)

print('done', new_items)

# We don't ever want to drop None while making these things and
# make_simplified_union calls join which cases
with strict_optional_set(True):
Expand Down

0 comments on commit 0ac4544

Please sign in to comment.