Uh oh!
There was an error while loading. Please reload this page.
Add regex stubs - #6713
Conversation
jpy-git
left a comment
There was a problem hiding this comment.
Some direction on these points (plus any general improvements) would be really appreciated, thanks! 😄
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
AlexWaygood
left a comment
There was a problem hiding this comment.
With the latest mypy release, we no longer need uppercase Tuple (and attempting to import it will cause CI to fail after the changes to check_new_syntax that I introduced in #6717 🙂)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jpy-git
left a comment
There was a problem hiding this comment.
This should be ready for review now 😄
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
LeeeeT
commented
Dec 30, 2021
Thank you so much! Your PR is just in time 🚀🚀🚀 |
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Akuli <akuviljanen17@gmail.com>
jpy-git
commented
Dec 30, 2021
Awesome, thanks @Akuli and @AlexWaygood for the great reviews 😄 |
| ) -> Scanner[AnyStr]: ... | ||
| @final | ||
| class Match(Generic[AnyStr]): |
There was a problem hiding this comment.
Is this missing __getitem__? After updating some modules I now get hundreds of "__getitem__" method not defined on type "Match[str]" errors.
There was a problem hiding this comment.
I'm not using regex and have not investigated, but this seems likely. re.Match (or rather typing.Match) also has a __getitem__() field. Cc @jpy-git
There was a problem hiding this comment.
Makes sense, will make a PR 👍
This PR closes#6710.
Aim is to provide typing stubs for the
regexpackage.This regex implementation is backwards-compatible with the standard 're' module, but offers additional functionality.Github: https://github.com/mrabarnett/mrab-regex
PyPI: https://pypi.org/project/regex/
I'm opening this as a draft as I have a couple questions about how to reference types for classes defined in C code (will annotate the PR with the questions). Any help/suggestions are greatly appreciated 😄