Switch default to return pathlib.Path rather than py.path.local().#509
Switch default to return pathlib.Path rather than py.path.local().#509
pathlib.Path rather than py.path.local().#509Conversation
Update deprecation message to announce that the latter will be completely removed later.
|
Seems sensible to stage this. So, this changes the default, then we can remove all |
|
I'd probably go full nuclear; outright remove; catch and raise an error for it's presence in kwargs, just always return Path. Do a major version bump (which I think by the dials-data deployment we do here, e.g. update |
|
Ok, fair enough - will go for that |
|
@ndevenish I rediscovered this. Are you happy with it, now it has full removal and version bump? |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #509 +/- ##
==========================================
- Coverage 56.25% 49.69% -6.56%
==========================================
Files 6 6
Lines 368 330 -38
==========================================
- Hits 207 164 -43
- Misses 161 166 +5 🚀 New features to boost your workflow:
|
|
Yes, good legacy cruft to remove |
|
I'm going to revert this as this has killed all of dials (well, 737 tests). Having a redundant parameter should at best be a warning, not a ValueError. |
Also update deprecation message to announce that the latter will be completely removed later.