-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add another missing NamedTuple getindex method for StaticSymbol #123
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #123 +/- ##
===========================================
+ Coverage 0.00% 98.30% +98.30%
===========================================
Files 3 3
Lines 700 706 +6
===========================================
+ Hits 0 694 +694
+ Misses 700 12 -688 ☔ View full report in Codecov by Sentry. |
This test failure is real though. Fix the ambiguity? But I don't know if you can do that without piracy. |
Yeah, the Aqua suggestion to implement
is clearly type piracy, so I'm thinking we should avoid it. But what is the fix? Should I submit at PR to julia base to implement |
Have you tried specifying at least one element for the tuple ( |
With function Base.getindex(x::NamedTuple, symbols::Tuple{<:StaticSymbol, Vararg{<:StaticSymbol}})
return x[map(known, symbols)]
end I get
But this warning goes away with function Base.getindex(x::NamedTuple, symbols::Tuple{StaticSymbol, Vararg{StaticSymbol}})
return x[map(known, symbols)]
end |
My guess would be it fails because dev version of Static gets added to the SciMLBase project here: |
Is there a way to make this one bypass? |
I can't think of anything besides moving it out of the core group into its own group, which is then not ran here. |
Yeah let's just make a QA group. |
Fixes #124 . This addresses the need to do
This is a follow-up to #120 and #121.
As noted in #121, the Aqua tests currently fail, but the tests pass otherwise.