mypy icon indicating copy to clipboard operation
mypy copied to clipboard

feat: new mypyc primitives for str.count

Open BobTheBuidler opened this issue 7 months ago • 1 comments

This PR adds new mypyc primitives for all variations of str.count

BobTheBuidler avatar Jun 10 '25 05:06 BobTheBuidler

  • [x] Test substrings with length longer than 1.
  • [x] Test negative start (these appear to work).
  • [x] Test negative end (these appear to work).
  • [x] Test start/end that overflows (these appear to not raise an exception).
  • [x] Test unicode strings (e.g. character code larger than 127, character code larger than 255).

BobTheBuidler avatar Jun 17 '25 18:06 BobTheBuidler

All requested tests have been added, this PR is now ready for review.

BobTheBuidler avatar Jul 01 '25 11:07 BobTheBuidler