You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[case testDeferralOfMemberNested]
from typing import Tuple
def f() -> None:
c: C
t: Tuple[str, Tuple[str, str]]
x, (y, c.a) = t
class C:
def __init__(self, a: str) -> None:
self.a = a
This is likely a regression caused by #6860. This PR turns everything into Any in a deferred node, while checking the member lvalue triggers the deferral, causing then assert isinstance(reinferred_rvalue_type, TupleType) to trigger.
This equally affects both analysers.
The text was updated successfully, but these errors were encountered:
This test case crashes on master:
This is likely a regression caused by #6860. This PR turns everything into
Any
in a deferred node, while checking the member lvalue triggers the deferral, causing thenassert isinstance(reinferred_rvalue_type, TupleType)
to trigger.This equally affects both analysers.
The text was updated successfully, but these errors were encountered: