Skip to content

Commit

Permalink
Delete outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ilevkivskyi committed Aug 15, 2023
1 parent 2af606f commit 82f48fc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mypy/checkexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -5832,7 +5832,6 @@ def visit_instance(self, t: Instance) -> Type:
return t.copy_modified(args=new_args)
# There is the same problem with callback protocols as with aliases
# (callback protocols are essentially more flexible aliases to callables).
# Note: consider supporting bindings in instances, e.g. LRUCache[[x: T], T].
if t.args and t.type.is_protocol and t.type.protocol_members == ["__call__"]:
if t.type in self.seen_aliases:
raise PolyTranslationError()
Expand Down

0 comments on commit 82f48fc

Please sign in to comment.