Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update mypy/semanal.py
  • Loading branch information
JelleZijlstra authored Mar 11, 2024
commit 54374a3632c4e5dc85b4e3cab3ff5300d3edb626
3 changes: 1 addition & 2 deletions mypy/semanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2032,8 +2032,7 @@ def analyze_unbound_tvar(self, t: Type) -> tuple[str, TypeVarLikeExpr] | None:
def analyze_unbound_tvar_impl(
self, t: UnboundType, is_unpacked: bool = False, is_typealias_param: bool = False
) -> tuple[str, TypeVarLikeExpr] | None:
if is_unpacked and is_typealias_param:
assert False, "Unreachable"
assert not unpacked or not is_typelias_param, "Mutually exclusive conditions"
Comment thread
JelleZijlstra marked this conversation as resolved.
Outdated
sym = self.lookup_qualified(t.name, t)
if sym and isinstance(sym.node, PlaceholderNode):
self.record_incomplete_ref()
Expand Down