Skip to content

Fix type annotations of RuleFactory classes#2185

Merged
davidism merged 1 commit intopallets:2.0.xfrom
jkhsjdhjs:fix-rule-factory-type-annotations
Aug 6, 2021
Merged

Fix type annotations of RuleFactory classes#2185
davidism merged 1 commit intopallets:2.0.xfrom
jkhsjdhjs:fix-rule-factory-type-annotations

Conversation

@jkhsjdhjs
Copy link
Copy Markdown
Contributor

This PR fixes #2183 by changing the respective type annotations from Iterable[Rule] to Iterable[RuleFactory].

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code.
  • Add an entry in CHANGES.rst summarizing the change and linking to the issue.
  • Add .. versionchanged:: entries in any relevant code docs.
  • Run pre-commit hooks and fix any issues.
  • Run pytest and tox, no tests failed.

The docs for the respective classes are auto-generated, so there's nothing for me to change there.

@davidism davidism force-pushed the fix-rule-factory-type-annotations branch from 271eaed to 3b64497 Compare August 6, 2021 14:02
@davidism davidism added this to the 2.0.2 milestone Aug 6, 2021
@davidism davidism linked an issue Aug 6, 2021 that may be closed by this pull request
@davidism davidism added the typing label Aug 6, 2021
@davidism davidism merged commit 509d8f3 into pallets:2.0.x Aug 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RuleFactories have incorrect type annotations

2 participants