Skip to content
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

parse.py + parse_test.py type fixes #90

Merged
merged 6 commits into from
Mar 16, 2023
Merged

parse.py + parse_test.py type fixes #90

merged 6 commits into from
Mar 16, 2023

Conversation

rwe
Copy link
Contributor

@rwe rwe commented Mar 16, 2023

This makes the result types consistent in matcher helpers in parse.py, defines a generic MatchResult[…] type, and annotates the functions there.

This is sufficient to pass mypy --strict greenery/parse{,_test}.py.

One change was required in rxelems, to avoid untyped-call errors due to missing annotations on the Conc and Pattern constructors: that change is also included effectively in #89 and should merge cleanly.

@rwe rwe changed the title mypy: parse.py + parse_test.py type fixes parse.py + parse_test.py type fixes Mar 16, 2023
@qntm qntm merged commit 5ae4698 into qntm:main Mar 16, 2023
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.

None yet

2 participants