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

Add type arguments to UserList subclasses #299

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

gotmax23
Copy link
Contributor

@gotmax23 gotmax23 commented Nov 3, 2023

By having these classes inherit from the generics in the typing module, type checkers will be able to determine the return types of the dunder methods inherited from UserList.

RELEASE NOTES BEGIN

Improve type annotations for UserList subclasses

RELEASE NOTES END

Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/4c25f550285248359182d48727dfd66d

✔️ pre-commit SUCCESS in 1m 45s
✔️ specfile-tests-rpm-deps SUCCESS in 1m 04s
✔️ specfile-tests-pip-deps SUCCESS in 1m 03s

Copy link
Member

@nforro nforro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

By having these classes inherit from the generics in the typing module,
type checkers will be able to determine the return types of the dunder
methods inherited from UserList.
Copy link
Contributor

Build succeeded.
https://softwarefactory-project.io/zuul/t/packit-service/buildset/67d30244b70648dd881aee871acc3ee2

✔️ pre-commit SUCCESS in 1m 43s
✔️ specfile-tests-rpm-deps SUCCESS in 1m 02s
✔️ specfile-tests-pip-deps SUCCESS in 1m 07s

@nforro nforro added the mergeit Zuul, merge it! label Nov 5, 2023
Copy link
Contributor

Build succeeded (gate pipeline).
https://softwarefactory-project.io/zuul/t/packit-service/buildset/bbf71a133abf48c4801bfb7d7eb17096

✔️ pre-commit SUCCESS in 1m 42s

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 22e87b7 into packit:main Nov 5, 2023
24 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Zuul, merge it!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants