-
Notifications
You must be signed in to change notification settings - Fork 219
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 typing to aiokafka/coordinator/* #1006
base: master
Are you sure you want to change the base?
Conversation
@@ -37,8 +51,9 @@ def metadata(self, topics): | |||
MemberMetadata struct | |||
""" | |||
|
|||
@classmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(offtopic) Why is it class method? It's strange to have a shared state among all clients
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1006 +/- ##
===========================================
- Coverage 95.04% 52.94% -42.11%
===========================================
Files 114 114
Lines 16906 16970 +64
Branches 2759 2771 +12
===========================================
- Hits 16068 8984 -7084
- Misses 493 7677 +7184
+ Partials 345 309 -36
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -548,7 +552,8 @@ def _perform_reassignments( | |||
) | |||
|
|||
if ( | |||
partition in self.previous_assignment | |||
consumer is not None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change here and below is needed?
topics: Set[str], | ||
topics_partitions: Optional[Set[int]] = None, | ||
topic_partitions_lambda: Optional[Callable[[str], Optional[Set[int]]]] = None, | ||
) -> MagicMock: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we declare mocked type instead? Not sure whether this is correct though.
Changes
Fixes #
Checklist
CHANGES
folder<issue_id>.<type>
(e.g.588.bugfix
)issue_id
change it to the pr id after creating the PR.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.Fix issue with non-ascii contents in doctest text files.