-
Notifications
You must be signed in to change notification settings - Fork 233
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
Updated BrokerMetadata#nodeId type from int
to int | str
.
#1051
base: master
Are you sure you want to change the base?
Conversation
Hi @jackgene, thank you for the contribution. You're right, the the type annotation doesn't match the code. But I'm not sure we need to fix the type annotation here and not the code. |
Yup, and I did offer two PRs, though they both touch the type annotation. As I understand it, in the aiokafka model,
We obviously do not want the two to collide, and it won't in the current implementation, as one is an Alternatively, we can make it a single type, We could also make it an So IMO, changing the type annotation is the less invasive option. |
Ok, as a temporary solution it's reasonable to keep it as-is. Let's go this way. Please rebase it and add a FIXME comment explaining why it's defined this way |
2cddd5e
to
e9697cc
Compare
Changes
Fixes #1050
Preferred (less invasive) fix to issue above, changes the type of
aiokafka.structs.BrokerMetadata#nodeId
fromint
toint | str
. No functionality change.Use this or #1052, but not both.
Checklist
The check list mentions a
CHANGES
folder, but I do not see one, am I supposed to create one for each PR?