Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2085 from takluyver/deprecate-empty-string-dtypes
Deprecate generating string dtypes with unspecified length
- Loading branch information
Showing
5 changed files
with
92 additions
and
7 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,11 @@ | ||
RELEASE_TYPE: minor | ||
|
||
This patch deprecates ``min_len`` or ``max_len`` of 0 in | ||
:func:`~hypothesis.extra.numpy.byte_string_dtypes` and | ||
:func:`~hypothesis.extra.numpy.unicode_string_dtypes`. | ||
The lower limit is now 1. | ||
|
||
Numpy uses a length of 0 in these dtypes to indicate an undetermined size, | ||
chosen from the data at array creation. | ||
However, as the :func:`~hypothesis.extra.numpy.arrays` strategy creates arrays | ||
before filling them, strings were truncated to 1 byte. |
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