-
Notifications
You must be signed in to change notification settings - Fork 178
First pass at marking types as Sendable #450
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
Conversation
|
I used |
mickael-menu
left a comment
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.
Thanks @domkm!
I don't plan to merge strict-concurrency into develop unless we can get rid of all the warnings. I guess the warnings are still there in your PR? If yes, could you rebase to develop without including the changes from strict-concurrency?
I used
@unchecked SendableonJSONDictionarybecause of the underlying[String:Any]dictionary.@uncheckedcan be removed if we change the underlying to[String:Sendable].
Using [String: Sendable] is fine by me, it's supposed to contain only JSON values anyway (String, Int, etc.), so Sendable seems appropriate.
Sure, I can rebase it on
Cool. Should it be |
We have a strict no warnings policy to merge things in the repo (that's why your PR fails all the checks). The goal is to progressively address these issues before Swift 6, without allowing other types of warnings to slip through.
Yes that's a good idea. 👍 |
c61971e to
8ccf6ed
Compare
|
Unfortunately, I wasn't able to make I'm also curious, what is the purpose of this |
I don't remember exactly, but it might be because we use |
Would it make sense to make these types, or at least the main ones, |
Sure, they are all meant to be serializable to JSON. Note that many of the models have complex (de)serialization rules so we can't use the default |
mickael-menu
left a comment
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.
Thank you!
Related to #433