Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Update test case to use legacy --allow-redefinition-new alias
  • Loading branch information
JukkaL committed Apr 22, 2026
commit c8e64164278744d78c60c9ff7ca9f8593d46817d
4 changes: 2 additions & 2 deletions test-data/unit/check-redefine2.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def f() -> None:
x = ''
reveal_type(x) # N: Revealed type is "builtins.str"

[case testNewRedefineConditionalLocalWithDifferentType]
# flags: --allow-redefinition
[case testNewRedefineConditionalLocalWithDifferentTypeAndFlagAlias]
# flags: --allow-redefinition-new
def f() -> None:
if int():
x = 0
Expand Down