-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regex: accept buffers #7680
regex: accept buffers #7680
Conversation
Similar to python#7679
This comment has been minimized.
This comment has been minimized.
@rchen152, could you possibly take a look at the pytype crash when you have a moment? (Not urgent!) :) |
Looking now! |
I have a fix for the pytype issue out for review. Should be able to release it tomorrow or Wednesday. |
Brilliant, thank you! |
For python/typeshed#7680. PiperOrigin-RevId: 447596238
pytype-2022.5.10 contains the fix. |
Diff from mypy_primer, showing the effect of this PR on open source code: paroxython (https://github.com/laowantong/paroxython)
- paroxython/parse_program.py:240: error: Incompatible types in assignment (expression has type "Callable[[str, Optional[int], Optional[int], bool, Optional[bool], Optional[float]], Scanner[str]]", target has type "Pattern[Any]")
+ paroxython/parse_program.py:240: error: Incompatible types in assignment (expression has type "Callable[[str, int, int, bool, Optional[bool], Optional[float]], Scanner[str]]", target has type "Pattern[Any]")
|
Thanks @rchen152! CI is green now and Sebastian approved a while ago, so I'll merge. |
Similar to #7679