-
Notifications
You must be signed in to change notification settings - Fork 237
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
Fix add more type hints #981
Conversation
… of TopicPartition
Co-authored-by: Denis Otkidach <denis.otkidach@gmail.com>
return [ | ||
(topic_name, (new_part.total_count, new_part.new_assignments)) | ||
for topic_name, new_part in topic_partitions.items() | ||
] | ||
|
||
async def create_partitions( | ||
self, | ||
topic_partitions: Dict[str, TopicPartition], | ||
topic_partitions: Dict[str, NewPartitions], |
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.
It would be nice to fix type name in docstring too
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.
Hmm… I see it's already NewPartitions
in master, it was fixed by your other MR #978
num_partitions: int, | ||
replication_factor: int, | ||
replica_assignments: Optional[Dict[int, List[int]]] = None, | ||
topic_configs: Optional[Dict[str, str]] = 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.
Please run make format
to fix formatting
PR #978 is already merged into master, so it looks like a duplicate. Therefore closing this one. |
Changes
Add more type hints to integrate with Mypy
reference #980
Checklist
CHANGES
folder