@@ -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)
515515def 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]
519519def 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)
536536def 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]
540540def 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)
559559def 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]
563563def do_count(s, start, end):
564564 s :: str
0 commit comments