Alex Waygood
c3791d024a
pathlib: is_mount() is implemented on Windows on py312+ (#10257 )
2023-06-04 12:09:06 -07:00
Shantanu
7df870f452
Run stubtest for Python 3.12 ( #10253 )
2023-06-04 05:53:03 -07:00
Alex Waygood
d8ef303e00
Bump pycln and pathspec test dependencies ( #10251 )
2023-06-03 14:46:33 +01:00
Shantanu
d6a85e2c48
Attempt to clarify the ByteString situation ( #9783 )
...
See https://github.com/python/cpython/issues/102092
This makes the behaviour of typing.ByteString better match its
documentation.
2023-05-27 21:37:38 -07:00
Jelle Zijlstra
c0a0c34020
Use PEP 688 ( #10225 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-27 19:55:30 -07:00
Shantanu
854c453910
fractions: remove _normalize, update for py312 ( #10218 )
2023-05-25 10:21:19 +01:00
Rebecca Chen
e98a87ff14
Trim pytype_exclude_list. ( #10208 )
...
* Updates pytype to latest version.
* Removes files from pytype_exclude_list that can now be parsed.
2023-05-24 19:35:19 -07:00
Jelle Zijlstra
185adf01a9
Clean up stubtest allowlist for typing ( #10205 )
2023-05-24 20:33:46 +01:00
Jelle Zijlstra
e4dcfccbd5
Update typing-extensions; some 3.12 updates ( #10200 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-24 11:06:55 -07:00
Rebecca Chen
274f449edc
Treat entries on pytype_exclude_list as missing modules for pytype_test. ( #10187 )
2023-05-17 00:38:49 +02:00
Avasam
db0149859c
Add partial_stub metadata field ( #10157 )
2023-05-10 17:04:18 +02:00
Avasam
dfee77ef6b
[openpyxl] Complete base descriptors ( #10001 )
2023-05-10 08:37:11 +02:00
Jun Komoda
a6ecf564b5
move and rename from ctypes._FuncPointer to _ctypes.CFuncPtr ( #10140 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-05-06 10:17:34 -07:00
Jun Komoda
05c0a1d8b2
move byref-related definitions from ctypes/__init__.pyi to _ctypes.pyi ( #10137 )
2023-05-03 16:50:47 +01:00
Jun Komoda
01b09d4371
Move some pointer-related definitions from ctypes/__init__.pyi to _ctypes.pyi ( #10133 )
2023-05-03 10:04:13 +01:00
Jun Komoda
ce531f897f
move some non-pointer-related definitions from ctypes/__init__.pyi to _ctypes.pyi ( #10130 )
...
- `ArgumentError`
- `addressof`
- `alignment`
- `get_errno`
- `resize`
- `set_errno`
- `sizeof`
2023-05-02 16:54:42 +01:00
Jun Komoda
bbeec7cbbf
Move some Windows-specific things from ctypes/__init__.pyi to _ctypes.pyi ( #10128 )
...
- `FormatError`
- `get_last_error`
- `set_last_error`
2023-05-02 11:21:55 +01:00
Jun Komoda
295a5c3e7a
Move Structure and Union from ctypes/__init__.pyi to _ctypes.pyi ( #10125 )
2023-05-01 13:01:41 +01:00
Jun Komoda
ae0c9f9dad
Move _SimpleCData and Array from ctypes/__init__.pyi to _ctypes.pyi ( #10118 )
2023-04-30 21:22:46 +01:00
Alex Waygood
2c3449694b
Run mypy and pyright on our py312 stubs in CI ( #10119 )
2023-04-30 15:31:08 +01:00
Tomas R
a7748a9dd1
Add missing stubs for logging.config ( #10055 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-04-27 07:57:46 -07:00
Avasam
6cb8bc0ac4
Mark SQLAlchemy stubs with ignore_missing_stub = false ( #9653 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-04-26 17:49:46 -07:00
Nikita Sobolev
1d9f35369d
functools: Add cache_parameters method to _lru_cache_wrapper ( #10076 )
...
The docs says that `cache_parameters()` function was added in 3.9: https://docs.python.org/3/library/functools.html#functools.lru_cache
Source: af53046995/Lib/functools.py (L512)
But, `typeshed` does not have it.
2023-04-24 07:29:54 -07:00
Nikita Sobolev
2bfb6d8212
Fix CI, use new termcolor version ( #10079 )
2023-04-24 07:17:23 -07:00
Nikita Sobolev
8af0a1f9e8
Fix typo ( #10078 )
2023-04-24 04:43:18 -07:00
Tomas R
cc674b5dce
Add a stub for sys.thread_info ( #10016 )
2023-04-07 11:31:57 +03:00
Avasam
2e59b81ffd
Use of twisted in pika ( #9494 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-03-24 22:51:59 -06:00
Alex Waygood
ca55889329
distutils/setuptools: Don't use wildcards for allowlist entries ( #9900 )
2023-03-17 14:05:12 -07:00
Henry Schreiner
2d990ee2f7
Fill out more annotations for distutils & setuptools dist ( #9895 )
...
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com >
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-03-17 18:48:24 +00:00
Henry Schreiner
3a82796d1e
[distutils] Add generated methods to Distribution ( #9896 )
2023-03-17 12:14:36 +01:00
Mehdi Drissi
1d15121f1d
Tensorflow protobuf stubs ( #9873 )
...
Co-authored-by: Mehdi Drissi <mdrissi@snapchat.com >
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-03-15 00:51:16 -07:00
Anton Grübel
53e1b534c7
add signal.SIGSTKFLT on py311+ ( #9870 )
2023-03-12 14:18:23 +00:00
Avasam
a5fc97e6da
Fix misnamed parameter in stubtest_third_party ( #9716 )
2023-03-09 07:33:45 +00:00
Alex Waygood
8a2bc88409
Improve typechecking of the test suite ( #9806 )
2023-03-08 08:35:41 +00:00
Avasam
14b06ae672
pytype_test.py: Fix typechecking errors following #9747 ( #9849 )
2023-03-06 18:23:07 +00:00
Alex Waygood
257e287fec
Stdlib: correct many parameter names ( #9815 )
2023-03-04 09:53:12 +00:00
Alex Waygood
2daa07ddf0
stubtest_stdlib: suppress output from pip ( #9807 )
2023-02-25 16:32:24 -08:00
Alex Waygood
1d2ae2598b
Fix some typos in comments ( #9802 )
2023-02-23 22:11:24 +00:00
Avasam
75f47d0cb1
Typecheck typeshed's code with pyright ( #9793 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-02-22 18:53:07 +00:00
Alex Waygood
fea57ad095
hmac.HMAC: digestmod defaults to None on py37 (#9790 )
2023-02-21 18:24:34 +00:00
Avasam
5ac80781ec
Integrate requirements-stubtest.txt into METADATA.toml ( #9778 )
2023-02-21 11:19:50 +01:00
Avasam
a6c6bc1b8e
Fix stdlib/disutils testing ( #9734 )
2023-02-21 08:06:20 +00:00
Alex Waygood
880c0da404
Enable some more mypy lints when checking our own code ( #9787 )
2023-02-21 00:54:35 +00:00
Alex Waygood
bc847a9b07
Use generic NamedTuples to clean up urllib.parse ( #9773 )
2023-02-20 16:41:49 -08:00
Alex Waygood
4d99b33f84
Fix an unnecessary allowlist entry in ssl.pyi ( #9776 )
2023-02-20 16:35:38 -08:00
Avasam
ed6748fb32
Stubtest settings: change ignore_missing_stub default to false ( #9779 )
...
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
Alex Waygood
3786ab295e
Fix an unnecessary socketserver allowlist entry ( #9777 )
2023-02-20 11:14:20 -08:00
Thomas M Kehrenberg
40d853cbe2
Add __set__ to functools.cached_property ( #9762 )
2023-02-20 12:36:45 +00:00
Alex Waygood
c5b5dd4bf4
Various stdlib dunders: correct parameter names; improve types; add defaults ( #9761 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-02-19 22:44:20 +00:00
Avasam
74112dc189
Add a run_stubtest flag to scripts/runtests.py ( #9717 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-02-19 22:10:32 +00:00