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 ba58befc7e2da42a1b2dbd2d04654e5ea4888d2b
2 changes: 1 addition & 1 deletion mypy/semanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2032,7 +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:
assert not unpacked or not is_typelias_param, "Mutually exclusive conditions"
assert not is_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