Skip to content

Conversation

@MBradbury
Copy link
Contributor

The re.Pattern and re.Match type hints take a parameter (see: https://docs.python.org/3/library/re.html#re.Pattern) from Python 3.9 onwards. This PR adds it as str and also adds some type hints for run and test functions.

Example of Pylance without the change:

image

and with the change:

image

@nicholasserra
Copy link
Collaborator

Thank you!

@nicholasserra nicholasserra merged commit d18e2fc into trentm:master Dec 21, 2025
15 checks passed
Sign up for free to 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.

2 participants