Skip to content

Commit 1ba24c5

Browse files
add an unsuppressed example as well
1 parent 27c8517 commit 1ba24c5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test-data/unit/check-errorcodes.test

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@ reveal_type(1) #type: ignore[misc] # N: Revealed type is "Literal[1]?"
1010
[case testErrorCodeMiscDoesntSuppressRevealLocals]
1111
reveal_locals() #type:ignore[misc] # N: There are no locals to reveal
1212

13-
[case testErrorCodeMiscRedefinitionNotes]
13+
[case testErrorCodeMiscSuppressesAccompanyingNotes]
1414
# flags: --strict
1515
if x: #type: ignore[name-defined]
1616
def y() -> None: pass
1717
else:
1818
def y() -> bool: return True # type: ignore[misc]
19+
def y() -> str: return "hmm" # All conditional function variants must have identical signatures [misc] # E: All conditional function variants must have identical signatures [misc] \
20+
# N: Original: \
21+
# N: def y() -> None \
22+
# N: Redefinition: \
23+
# N: def y() -> str
1924

2025

2126
[case testErrorCodeNoAttribute]

0 commit comments

Comments
 (0)