Skip to content

Commit 3956651

Browse files
Update irbuild-str.test
1 parent c5a66ef commit 3956651

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

mypyc/test-data/irbuild-str.test

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,11 @@ L0:
510510
return 1
511511

512512
[case testCountAll]
513-
#from typing import NewType, Union
514-
#NewStr = NewType("NewStr", str)
513+
from typing import NewType, Union
514+
NewStr = NewType("NewStr", str)
515515
def do_count(s: str) -> int:
516516
return s.count("x") # type: ignore [attr-defined]
517-
#[typing fixtures/typing-full.pyi]
517+
[builtins fixtures/string.pyi]
518518
[out]
519519
def do_count(s):
520520
s, r0 :: str
@@ -531,11 +531,11 @@ L0:
531531
return r4
532532

533533
[case testCountStart]
534-
#from typing import NewType, Union
535-
#NewStr = NewType("NewStr", str)
534+
from typing import NewType, Union
535+
NewStr = NewType("NewStr", str)
536536
def do_count(s: str, start: int) -> int:
537537
return s.count("x", start) # type: ignore [attr-defined]
538-
#[typing fixtures/typing-full.pyi]
538+
[builtins fixtures/string.pyi]
539539
[out]
540540
def do_count(s, start):
541541
s :: str
@@ -554,11 +554,11 @@ L0:
554554
return r4
555555

556556
[case testCountStartEnd]
557-
#from typing import NewType, Union
558-
#NewStr = NewType("NewStr", str)
557+
from typing import NewType, Union
558+
NewStr = NewType("NewStr", str)
559559
def do_count(s: str, start: int, end: int) -> int:
560560
return s.count("x", start, end) # type: ignore [attr-defined]
561-
#[typing fixtures/typing-full.pyi]
561+
[builtins fixtures/string.pyi]
562562
[out]
563563
def do_count(s, start, end):
564564
s :: str

0 commit comments

Comments
 (0)