Fix type checking errors caused by new hypothesis #4070

Closed
opened 2023-10-16 16:40:55 +00:00 by itamarst · 2 comments
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',), ```
itamarst added the
unknown
normal
defect
n/a
labels 2023-10-16 16:40:55 +00:00
itamarst added this to the undecided milestone 2023-10-16 16:40:55 +00:00
Author

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
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
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

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