Skip to content

Commit 0cb6567

Browse files
committed
Update irbuild-str.test
1 parent dea2c67 commit 0cb6567

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

mypyc/test-data/irbuild-str.test

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,7 @@ L0:
513513
from typing import NewType, Union
514514
NewStr = NewType("NewStr", str)
515515
def do_count(s: str) -> int:
516-
return s.count("x") # type: ignore [attr-defined]
517-
[builtins fixtures/ir.pyi]
516+
return s.count("x")
518517
[typing fixtures/typing-full.pyi]
519518
[out]
520519
def do_count(s):
@@ -535,8 +534,7 @@ L0:
535534
from typing import NewType, Union
536535
NewStr = NewType("NewStr", str)
537536
def do_count(s: str, start: int) -> int:
538-
return s.count("x", start) # type: ignore [attr-defined]
539-
[builtins fixtures/ir.pyi]
537+
return s.count("x", start)
540538
[typing fixtures/typing-full.pyi]
541539
[out]
542540
def do_count(s, start):
@@ -559,8 +557,7 @@ L0:
559557
from typing import NewType, Union
560558
NewStr = NewType("NewStr", str)
561559
def do_count(s: str, start: int, end: int) -> int:
562-
return s.count("x", start, end) # type: ignore [attr-defined]
563-
[builtins fixtures/ir.pyi]
560+
return s.count("x", start, end)
564561
[typing fixtures/typing-full.pyi]
565562
[out]
566563
def do_count(s, start, end):

0 commit comments

Comments
 (0)