-
Notifications
You must be signed in to change notification settings - Fork 678
Fix use of Set() in mavftp #1136
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: master
Are you sure you want to change the base?
Conversation
Shouldn't you also remove importing Set? |
Which version of Python does it cause problems with? What happens when you try to cross this code? Also, this is @amilcarlucas 's file :-) |
It fails on 3.12 |
On Sat, 11 Oct 2025, Andy Piper wrote:
It fails on 3.12
In what way?
|
I'm surprised this worked at all, a |
@amilcarlucas can you weigh in on this, please? It's breaking things for Andy, so we're very inclined to merge this! |
26fafdf
to
63a6f78
Compare
Done, thanks |
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.
Needs to pass CI.
On the bright side, it has highlighted another code path which would have broken your setup when it was crossed :-)
63a6f78
to
0f578ea
Compare
0f578ea
to
f919d5d
Compare
I think this just demonstrates how time-consuming invalid requests for changes can be. Turns out the import is required by the reference to ```Set[int]`` which is both valid (its using typing.Set in the correct way) on 3.12 and required by the code. On 3.9 or later the lower case form can be used but it is not required and of course this would break 3.8 compatibility. So I am back at my original change - which is the one I tested - and is correct. |
This is not allowed in newer versions of python