-
Notifications
You must be signed in to change notification settings - Fork 234
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
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1051 +/- ##
==========================================
+ Coverage 95.08% 95.10% +0.01%
==========================================
Files 114 114
Lines 16980 16981 +1
Branches 1579 1579
==========================================
+ Hits 16145 16149 +4
+ Misses 486 483 -3
Partials 349 349
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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?