Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate float sizes (min_size, max_size) (#1635)
* add deprecation notice for float sizes * test deprecation notice for float sizes * add test for floats sizes deprecations min_size and max_size should be integers. And we only test whole float numbers, like 5.0 for example. * change type hints of average_size to None It use to be type: int * add myself to the contributors list * add relase.txt * filter out deprecation warning during test float size warning were breaking a test that was making sure that invalid arguments raised an InvalidArgument error. * fix formatting errors lint and check-format tasks on travis * fix pep8 linting error * fix max/min size valitation and roll back tests * updated release: add type hint infos Thanks to @Zac-HD * remove use of average_size in examples * improve check_valid_size perf * use % instead of .format in check_valid_size Conforms to the rest of the document's style
- Loading branch information
Showing
6 changed files
with
37 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
RELEASE_TYPE: minor | ||
|
||
This release deprecates using floats for ``min_size`` and ``max_size``. | ||
|
||
The type hint for ``average_size`` arguments has been changed from | ||
``Optional[int]`` to None, because non-None values are always ignored and | ||
deprecated. | ||
|
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
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