|
513 | 513 | from typing import NewType, Union |
514 | 514 | NewStr = NewType("NewStr", str) |
515 | 515 | 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") |
518 | 517 | [typing fixtures/typing-full.pyi] |
519 | 518 | [out] |
520 | 519 | def do_count(s): |
|
535 | 534 | from typing import NewType, Union |
536 | 535 | NewStr = NewType("NewStr", str) |
537 | 536 | 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) |
540 | 538 | [typing fixtures/typing-full.pyi] |
541 | 539 | [out] |
542 | 540 | def do_count(s, start): |
|
559 | 557 | from typing import NewType, Union |
560 | 558 | NewStr = NewType("NewStr", str) |
561 | 559 | 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) |
564 | 561 | [typing fixtures/typing-full.pyi] |
565 | 562 | [out] |
566 | 563 | def do_count(s, start, end): |
|
0 commit comments