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
Opening files with the same variable name in with statements in if statements fails type checks if the type of the result of the with statement is different. In this example, the difference is opening a file with 'rb' vs 'r'. Looks like this might be a variation of #12246.
Opening files with the same variable name in with statements in if statements fails type checks if the type of the result of the with statement is different. In this example, the difference is opening a file with
'rb'
vs'r'
. Looks like this might be a variation of #12246.To Reproduce
Expected Behavior
Type check passes.
Actual Behavior
Environment
mypy test.py
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: