Semyon Moroz and GitHub
0c0bad8831
[unittest] Improve annotations of three_way_cmp ( #15003 )
2025-11-14 17:02:11 +01:00
Semyon Moroz and GitHub
9bb8c4f1f9
[stdlib] Add missing Final ( #14613 )
2025-08-21 12:18:20 +02:00
Max Muoto and GitHub
b40eb642e0
Use Final for unittest constants ( #12447 )
2024-07-28 12:03:02 +02:00
Rob Percival and GitHub
cc0b41a994
Fix type hints for unittest.util.unorderable_list_difference() ( #11012 )
...
Fix type hints for unorderable_list_difference()
It claimed that the arguments were `Sequence` types (immutable), but the function removes elements from them, so they must be `MutableSequence` types. Specifically, it calls `pop()` on the first argument and `remove()` on the second argument.
See the function implementation for details:
https://github.com/python/cpython/blame/0b06d2482d77e02c5d40e221f6046c9c355458b2/Lib/unittest/util.py#L98-L113
2023-11-10 17:53:03 +00:00
Jelle Zijlstra and GitHub
ddfaca3200
stdlib: add argument default values ( #9501 )
2023-01-18 09:37:34 +01:00
Alex Waygood and GitHub
97a74bc1aa
Import from collections.abc wherever possible ( #7635 )
2022-04-18 12:50:37 +02:00
Alex Waygood and GitHub
740193a8fc
Use TypeAlias where possible for type aliases ( #7630 )
2022-04-15 18:01:00 -07:00
Jelle Zijlstra and GitHub
de5ec6a0d1
fix incorrect tuple[T] ( #6996 )
...
Found from PyCQA/flake8-pyi#135 .
2022-01-22 09:37:14 -08:00
Alex Waygood and GitHub
8d5d2520ac
Use PEP 585 syntax wherever possible ( #6717 )
2021-12-28 11:31:43 +01:00
Akuli and GitHub
994b69ef8f
Use lowercase tuple where possible ( #6170 )
2021-10-14 17:18:19 -07:00
Akuli and GitHub
ce11072dbe
Big diff: use lower-case list and dict ( #5888 )
2021-08-08 09:26:35 -07:00
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00