-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Deprecation] Correct cases for memory units in
core.units
and fix …
…`unit_type` detection of `FloatWithUnit.from_str` (#3838) * fix memory unit case * fix case in comments * handle white space * remove debug change * maintain case sensitivity for memory * simplify white space removal * add a grace period till 2025-01-01 * use safer strip * add test for bad string * make msg more descriptive * remove unnecessary type cast * extend test coverage --------- Co-authored-by: Janosh Riebesell <[email protected]> Co-authored-by: Shyue Ping Ong <[email protected]>
- Loading branch information
1 parent
5b84828
commit 9719845
Showing
2 changed files
with
40 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters