def test_overloaded_binary_operator_parameters(): c = C() print(c + 10) print(c + 'foo') print(c + <warning descr="Expected type 'int', got 'Dict[int, int]' instead">{1: 2}</warning>)
from m1 import C, Concrete C(Concrete()).get().foo # <ref>
def test_overloaded_subscription_operator_parameters(): c = C() print(c[10]) print(c['foo']) print(c[<warning descr="Expected type 'int', got 'Dict[int, int]' instead">{1: 2}</warning>])
def test_overloaded_binary_operator_parameters(): c = C() print(c + 10) print(c + 'foo') print(c + <warning descr="Unexpected type(s):(dict[int, int])Possible type(s):(int)(str)">{1: 2}</warning>)
def test_overloaded_subscription_operator_parameters(): c = C() print(c[10]) print(c['foo']) print(c[<warning descr="Unexpected type(s):(dict[int, int])Possible type(s):(int)(str)">{1: 2}</warning>])
def f(x: Any): c = C() <caret>expr = c.foo(x)
from m1 import C c = C() print(c.<warning descr="Unresolved attribute reference 'original_class_field' for class 'C'">original_class_field</warning>) print(c.<warning descr="Unresolved attribute reference 'original_instance_field' for class 'C'">original_instance_field</warning>) print(c.<warning descr="Unresolved attribute reference 'original_method' for class 'C'">original_method</warning>) print(c.provided_class_field) print(c.provided_instance_field) print(c.provided_method) print(c.<warning descr="Unresolved attribute reference 'unresolved_attribute' for class 'C'">unresolved_attribute</warning>)
from m1 import C c = C() print(C.foo(), C.<warning descr="Unresolved attribute reference 'bar' for class 'C'">bar</warning>()) print(c.<warning descr="Unresolved attribute reference 'foo' for class 'C'">foo</warning>())