Fix type checking errors caused by new hypothesis #4070

Closed
opened 2023-10-16 16:40:55 +00:00 by itamarst · 2 comments
itamarst commented 2023-10-16 16:40:55 +00:00
Owner
src/allmydata/test/test_windows.py:115:42: error: Argument "blacklist_categories" to
"characters" has incompatible type "tuplestr"; expected
"Collection['Lu', 'Ll', 'Lt', 'Lm', 'Lo', 'M', 'Mn', 'Mc', 'Me', 'N', 'Nd', 'Nl', 'No', 'P', 'Pc', 'Pd', 'Ps', 'Pe', 'Pi', 'Pf', 'Po', 'S', 'Sm', 'Sc', 'Sk', 'So', 'Z', 'Zs', 'Zl', 'Zp', 'C', 'Cc', 'Cf', 'Cs', 'Co', 'Cn']Literal['L',] | None"
 arg-type
                        blacklist_categories=('Cs',),
``` src/allmydata/test/test_windows.py:115:42: error: Argument "blacklist_categories" to "characters" has incompatible type "tuplestr"; expected "Collection['Lu', 'Ll', 'Lt', 'Lm', 'Lo', 'M', 'Mn', 'Mc', 'Me', 'N', 'Nd', 'Nl', 'No', 'P', 'Pc', 'Pd', 'Ps', 'Pe', 'Pi', 'Pf', 'Po', 'S', 'Sm', 'Sc', 'Sk', 'So', 'Z', 'Zs', 'Zl', 'Zp', 'C', 'Cc', 'Cf', 'Cs', 'Co', 'Cn']Literal['L',] | None" arg-type blacklist_categories=('Cs',), ```
tahoe-lafs added the
unknown
normal
defect
n/a
labels 2023-10-16 16:40:55 +00:00
tahoe-lafs added this to the undecided milestone 2023-10-16 16:40:55 +00:00
itamarst commented 2023-10-16 17:17:05 +00:00
Author
Owner

The Windows tests only run on Python 2, so they can just be deleted.

The Windows tests only run on Python 2, so they can just be deleted.
GitHub <noreply@github.com> commented 2023-10-16 17:17:56 +00:00
Author
Owner

In a08a622/trunk:

Merge pull request #1341 from tahoe-lafs/4070-hypothesis-type-checking-errors

Fix Hypothesis type checking errors

Fixes ticket:4070
In [a08a622/trunk](/tahoe-lafs/trac-2024-07-25/commit/a08a622cd76dd7d41a6042836d46faf9d194fb35): ``` Merge pull request #1341 from tahoe-lafs/4070-hypothesis-type-checking-errors Fix Hypothesis type checking errors Fixes ticket:4070 ```
tahoe-lafs added the
fixed
label 2023-10-16 17:17:56 +00:00
GitHub <noreply@github.com> closed this issue 2023-10-16 17:17:56 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#4070
No description provided.