-
Notifications
You must be signed in to change notification settings - Fork 63
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
Replace many @aliases by @deprecate_binding #1469
Conversation
863bbcc
to
51f4b84
Compare
e269650
to
d20bdcc
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1469 +/- ##
=======================================
Coverage 87.11% 87.11%
=======================================
Files 112 112
Lines 28786 28786
=======================================
Hits 25078 25078
Misses 3708 3708 ☔ View full report in Codecov by Sentry. |
4999ee8
to
6fd9c32
Compare
0fad5b4
to
b751144
Compare
(and note that we are doing a breaking release next) |
b751144
to
627e8b6
Compare
src/Aliases.jl
Outdated
|
||
@alias DirectSum direct_sum | ||
Base.@deprecate_binding DirectSum direct_sum | ||
|
||
# Deprecated in 0.34.* | ||
@alias PuiseuxSeriesField puiseux_series_field |
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.
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.
(The comment with ripping off the band aid referred only to puiseux_series_field
and puiseux_series_ring
(resp. their old names), i.e.: we could use Base.@deprecate_binding
for both right now...
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.
Yeah, I think we should just do it.
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.
@fieker also agrees, will do
Base.@deprecate_binding AbsSeriesRing AbsPowerSeriesRing | ||
Base.@deprecate_binding AbsSeriesElem AbsPowerSeriesRingElem | ||
Base.@deprecate_binding RelSeriesRing RelPowerSeriesRing | ||
Base.@deprecate_binding RelSeriesElem RelPowerSeriesRingElem | ||
|
||
# Deprecated in 0.34.* | ||
@alias Frac FracFieldElem |
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.
another new @alias
I did not touch -- but Frac
is used a lot in Oscar.jl, so maybe it's good to take this one slower, as there may be in-progress PRs in Oscar affected by this renaming...
Fine with me |
627e8b6
to
01f62d0
Compare
This way any access to them trigger a depwarning (if those are enabled, as they are in our CI). This is a first step to eventually removing these aliases.
01f62d0
to
35f9870
Compare
This way any access to them trigger a depwarning (if those are enabled,
as they are in our CI).
This is a first step to eventually removing these aliases.