-
-
Notifications
You must be signed in to change notification settings - Fork 117
Remove mutable default types. #83
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
base: next
Are you sure you want to change the base?
Remove mutable default types. #83
Conversation
Thanks for the improvements! Unfortunately, the other notes in the original reply seem to have been missed: #81 The source branch is Lines 254 to 301 in dab8622
|
340cd7c
to
108c544
Compare
Yes, sorry, missed the comment about the target branch. I've updated it to use
Interesting. Would be keen to understand this better, as it sounds like a there's a separate issue here to make the code more robust. In the particular case of the |
@npbaskerville Hello, I'm not a maintainer here, but I use the library and am long time SW dev. Got few notes.. Could you use I guess it's a matter of taste but I'd remove type casts to list - sending wrong type is a bug in calling code that the cast will hide from fixing |
Okay, I checked the
My objection here is that I do not believe Happy to cede to the maintainers on in-house style here though. |
Agreed that there's probably no need for lists (IMHO it doesn't even have to be sequence for what it's worth, just iterable is fine), but I'm not that versed with actual IB API protocol. But I'd hesitate making any substantial changes until this whole thing is properly covered with tests. |
I have update the
Doesn't look like that's important. This code is just iterating through the list and creating a string.
I share your hesitation. That's why I'd suggest keeping the list conversion I added. |
So....... Lots of crossed wires here:
|
I reverted that change yesterday in this commit.
ditto
I have now just removed the list conversion. The change was intended to make the code less brittle and avoid headaches later on. |
Simply replacing any instances of mutable default args with immutables. These were only in
ib.py
and only lists, which have all just been replaced with tuples.