mypy
mypy copied to clipboard
feat: new mypyc primitives for str.count
This PR adds new mypyc primitives for all variations of str.count
- [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).
All requested tests have been added, this PR is now ready for review.