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

annotate ParserElement kwargs #551

Merged
merged 2 commits into from Mar 25, 2024
Merged

Conversation

AugustKarlstedt
Copy link
Contributor

@AugustKarlstedt AugustKarlstedt commented Mar 19, 2024

fixes

Type of "set_parse_action" is partially unknown
  Type of "set_parse_action" is "(*fns: (() -> Any) | ((ParseResults) -> Any) | ((int, ParseResults) -> Any) | ((str, int, ParseResults) -> Any), **kwargs: Unknown) -> ParserElement"Pylance[reportUnknownMemberType](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportUnknownMemberType)

and similar for other methods in ParserElement

@AugustKarlstedt AugustKarlstedt changed the title annotate set_parse_action kwargs annotate ParserElement kwargs Mar 19, 2024
@ptmcg
Copy link
Member

ptmcg commented Mar 25, 2024

Nice catch, thanks!

@ptmcg ptmcg merged commit ec282e1 into pyparsing:master Mar 25, 2024
9 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.

None yet

2 participants