Skip to content

Add more overloads to the re stubs to help out pyright - #9592

Merged
JelleZijlstra merged 5 commits into
mainfrom
pyright-re
Jan 28, 2023
Merged

Add more overloads to the re stubs to help out pyright#9592
JelleZijlstra merged 5 commits into
mainfrom
pyright-re

Conversation

@AlexWaygood

Copy link
Copy Markdown
Member

Fixes#9591

@AlexWaygood
AlexWaygood marked this pull request as draft January 26, 2023 17:45
@AlexWaygood
AlexWaygood marked this pull request as ready for review January 26, 2023 17:52
@AlexWaygood
AlexWaygood marked this pull request as draft January 26, 2023 18:03
@github-actions

This comment has been minimized.

@AlexWaygood

Copy link
Copy Markdown
MemberAuthor

#9593 is a simpler approach, but one which mypy might not like so much (let's see what mypy_primer says).

@AlexWaygood

Copy link
Copy Markdown
MemberAuthor

Mypy hates #9593, so I think this is the best we can do.

@AlexWaygood
AlexWaygood marked this pull request as ready for review January 26, 2023 18:25
Comment threadtest_cases/stdlib/check_re.py
@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra
JelleZijlstra merged commit 7f986bd into mainJan 28, 2023
@JelleZijlstra
JelleZijlstra deleted the pyright-re branch January 28, 2023 02:32
Avasam pushed a commit to Avasam/typeshed that referenced this pull request Feb 1, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

re.match(), re.search() and re.fullmatch() cannot be used with AnyStr

2 participants

@AlexWaygood@JelleZijlstra