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
E [case testMissingMultiline]
E s: str = 42; i: int = 'foo' # E: Incompatible types in assignment (expression has type "int", variable has type "str") \
E # E: Incompatible types in assignment (expression has type "str", variable has type "int")
E
E [case testExtraneous]
E - s: str = 'foo'
E + s: str = 'foo' # E: wrong error
E
E [case testExtraneousMultiline]
E - s: str = 'foo'
E + s: str = 'foo' # E: foo # E: bar
E
E [case testExtraneousMultilineNonError]
E - s: str = 'foo'
E + s: str = 'foo' # W: foo # N: bar
E
E [case testOutCorrect]
E s: str = 42
E [out]
E main:1: error: Incompatible types in assignment (expression has type "int", variable has type "str")
E
E [case testOutWrong]
E s: str = 42
E [out]
E - main:1: error: Incompatible types in assignment (expression has type "int", variable has type "str")
E + main:1: error: foobar
E
E [case testOutWrongIncremental]
E s: str = 42
E [out]
E - main:1: error: Incompatible types in assignment (expression has type "int", variable has type "str")
E + main:1: error: foobar
E [out2]
E - main:1: error: Incompatible types in assignment (expression has type "int", variable has type "str")
E + main:1: error: foobar
E
E [case testWrongMultipleFiles]
E import a, b
E - s: str = 42 # E: Incompatible types in assignment (expression has type "int", variable has type "str")
E + s: str = 42 # E: foo
E [file a.py]
E - s1: str = 42 # E: Incompatible types in assignment (expression has type "int", variable has type "str")
E + s1: str = 42 # E: bar
E [file b.py]
E - s2: str = 43 # E: Incompatible types in assignment (expression has type "int", variable has type "str")
E + s2: str = 43 # E: baz
E [builtins fixtures/list.pyi]
Your Environment
Mypy version used: 1.6.0
Mypy command-line flags: N/A
Mypy configuration options from mypy.ini (and other config files): N/A
Python version used: 3.9.16
The text was updated successfully, but these errors were encountered:
Bug Report
When I run tests for
mypy-1.6.0
and-x
is inPYTEST_ADDOPTS
thentest_update_data
fails.To Reproduce
The following command fails:
Expected Behavior
Interestingly, the following passes (please note
-x
at the end of line):Actual Behavior
The relevant part of the output:
Your Environment
mypy.ini
(and other config files): N/AThe text was updated successfully, but these errors were encountered: