Alex Waygood
4afc368256
pin pyright-action to 2.0.2 ( #11475 )
2024-02-27 10:07:47 +00:00
Kanishk Pachauri
1e7e174b4f
stdlib: fix ctypes errcheck type ( #11467 )
2024-02-26 14:47:46 +01:00
danieleades
d3d5f8121b
Improve type annotations in 'docutils.node.document' ( #11468 )
2024-02-26 12:50:08 +01:00
Amin Alaee
9916efae63
Update os. EX_NOTFOUND not available in Linux ( #11461 )
2024-02-26 09:36:33 +01:00
Kanishk Pachauri
49b1a1a96a
stdlib: Use Literal in difflib.SequenceMatcher.get_opcodes ( #11464 )
2024-02-23 07:44:29 -08:00
Avasam
3c08a97656
Improve typing of sysconfig.get_config_var(s) ( #11454 )
2024-02-22 09:52:41 -08:00
Nikita Sobolev
a2095002e4
Complete stubs for bleach ( #9314 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Avasam <samuel.06@hotmail.com >
2024-02-21 20:03:24 +00:00
Jelle Zijlstra
78b7dc6167
html5lib: Add various types ( #11429 )
...
I started out investigating comments in #11411 and ended up adding a few other
types that were reasonably obvious from the source code. For reference:
https://github.com/html5lib/html5lib-python/tree/master/html5lib
2024-02-20 00:18:17 -08:00
Randolf Scholz
601587e71d
changed overload order for date.__sub__ and datetime.__sub__ ( #10999 )
2024-02-19 13:11:29 +01:00
Sebastian Rittau
df409a2fb5
Use a protocol for shlex.instream et al. ( #11452 )
2024-02-18 22:04:43 -08:00
Avasam
bb6613f379
shlex.split: allow TextIO and deprecate None (#11451 )
2024-02-19 06:10:01 +01:00
Jelle Zijlstra
84572bbfe6
importlib.metadata: Use the SimplePath protocol ( #11445 )
...
Closes #9217 . Followup from #11436 .
This mostly makes a simpler set of changes than #9217 ; in particular
it does not make PathDistribution generic. I think this is in line with
how the protocol is supposed to be used, though not always in line with
the runtime type annotations (which don't all make sense).
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2024-02-18 21:05:33 -08:00
Ali Hamdan
6df52a7b39
Improve typing of start_new_thread when called without kwargs ( #11446 )
2024-02-19 05:39:18 +01:00
Jelle Zijlstra
e8c029fbd3
openpyxl: Add stubtest allowlist entry ( #11449 )
...
Fixes #11448
2024-02-19 05:37:54 +01:00
Jelle Zijlstra
bba8cbd6f8
stdlib: more deprecations ( #11009 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-02-18 06:50:29 -08:00
github-actions[bot]
46b2635626
[stubsabot] Bump netaddr to 1.2.* ( #11437 )
...
Co-authored-by: stubsabot <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-02-18 11:57:37 +00:00
Jelle Zijlstra
705744af4c
Update for typing_extensions 4.10 ( #11438 )
2024-02-18 00:59:48 -08:00
Jelle Zijlstra
e5d25a7605
importlib.metadata: Improve and test SimplePath protocol ( #11436 )
...
Co-authored-by: layday <layday@protonmail.com >
2024-02-18 00:36:01 -08:00
Nikita Sobolev
e961db9492
Change the asyncio.Task constructor type ( #10228 )
2024-02-17 15:50:26 -08:00
Nikita Sobolev
863d22a239
Make return type of functools.cache_property covariant ( #10053 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-02-17 15:38:46 -08:00
Nikita Sobolev
3fa6374c9a
Mark simplejson as completed ( #9211 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-02-17 14:50:46 -08:00
Mehdi ABAAKOUK
522f4bc9bf
fix(redis): make xadd fields use SupportsItems ( #10780 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-02-17 16:48:01 +00:00
Hoël Bagard
955cdf50d5
tensorflow: add tf.linalg module (#11386 )
...
Taken from:
https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/linalg.pyi
2024-02-17 07:45:11 -08:00
Ali Hamdan
2e85a70c4c
psycopg2: make Range generic ( #11435 )
...
And some other small fixes
2024-02-17 07:42:53 -08:00
Tanguy Rossel
498ab71a34
defusedxml.ElementTree: useElement from ElementTree instead of minidom ( #11305 )
2024-02-17 15:56:08 +01:00
Andrew Murray
67a80c67df
Added types for olefile ( #11416 )
2024-02-17 15:50:01 +01:00
github-actions[bot]
ef94b9ee04
[stubsabot] Bump netaddr to 1.1.* ( #11424 )
...
Co-authored-by: stubsabot <>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-02-17 12:51:40 +00:00
Sebastian Rittau
65c154f5ff
Document ignore_missing_stub in CONTRIBUTING.md ( #11426 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-02-17 12:48:28 +00:00
Jelle Zijlstra
504cbd40fe
deps: upgrade pytype ( #11434 )
2024-02-16 22:06:25 -08:00
Hoël Bagard
6087745bcf
tensorflow: add tf.ones, tf.zeros, tf.zeros_like and tf.ones_like functions (#11368 )
2024-02-16 21:52:05 -08:00
Hoël Bagard
d93ee88ba5
tensorflow add tf.random module (#11359 )
...
Partially from Mehdi Drissi's stubs.
2024-02-16 21:33:16 -08:00
Colin Watson
c9f74e646a
requests: Allow passing None header values ( #11370 )
...
https://github.com/python/typeshed/pull/7773 changed
`requests.session.Session` methods to accept None for header values, but
didn't do quite the same for the functions in `requests.api`. I think
this was a mistake. The functions in `requests.api` just pass through
the `headers` argument without doing anything in particular to it.
Furthermore, it's useful to be able to pass None as a header value:
because `requests.utils.default_headers` sets an `Accept-Encoding`
header by default, the easiest way to send a request with no
`Accept-Encoding` header is something like `requests.get(url,
headers={"Accept-Encoding": None})`. It's annoying to have to construct
a `Session` just to pass type-checking.
It's a little confusing for the type alias to be called
`_HeadersUpdateMapping` in `requests.sessions` but `_HeadersMapping` in
`requests.api`; this is because the latter name was already used in
other type stubs (`tensorflow.keras.callbacks`), so it seemed best to
avoid breaking API.
2024-02-16 21:16:15 -08:00
Hoël Bagard
15fa3cf0c5
tensorflow: Add members from tensorflow.keras.metrics (#11329 )
...
Partially taken from: https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/keras/metrics.pyi
2024-02-16 21:13:03 -08:00
Hoël Bagard
69354d78ad
tensorflow: add tf.distribute.experimental.coordinator.RemoteValue (#11349 )
2024-02-16 21:11:21 -08:00
Akuli
d5ff34e049
Add types to tkinter.Canvas.scale() ( #11369 )
2024-02-16 21:10:14 -08:00
github-actions[bot]
a48fb24a94
[stubsabot] Bump gevent to 24.2.* ( #11425 )
...
Release: https://pypi.org/pypi/gevent/24.2.1
Homepage: http://www.gevent.org/
Repository: https://github.com/gevent/gevent
Diff: https://github.com/gevent/gevent/compare/23.9.1...24.2.1
Stubsabot analysis of the diff between the two releases:
- Total lines of Python code added: 4.
- Total lines of Python code deleted: 4.
2024-02-16 20:11:45 -08:00
Hoël Bagard
8061e58dcf
tensorflow: add tf.strings module (#11380 )
...
Partially taken from:
https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/strings.pyi
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-02-16 20:08:43 -08:00
Hoël Bagard
0f0e261b90
tensorflow: Add some tf.raw_ops members. (#11387 )
...
https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/raw_ops.pyi
2024-02-16 19:06:56 -08:00
Kanishk Pachauri
aed633ec95
fix: typo on setuptools ( #11432 )
2024-02-16 18:59:24 +01:00
Stephen Morton
764532356a
add _lsprof module ( #11159 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2024-02-16 08:38:49 -08:00
winestone
f3c7c48438
itertools: Improve precision of itertools.product types when called with 7 or more arguments ( #11163 )
2024-02-16 07:03:13 -08:00
plokmijnuhby
c5c2c14db9
builtins: Fix typing of reversed ( #10655 )
2024-02-16 06:52:58 -08:00
Hoël Bagard
55dd99a338
tensorflow Add tensorflow.summary module (#11358 )
...
Partially derived from https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/summary.pyi
2024-02-16 06:05:54 -08:00
David Salvisberg
9b260a59cc
oauthlib: Fix annotations for oauthlib.oauth2.RequestValidator ( #11417 )
2024-02-16 05:46:32 -08:00
Sebastian Rittau
8a38ae62fb
Update fpdf2 to 2.7.8 ( #11410 )
...
Closes : #11407
2024-02-16 05:45:29 -08:00
Leonard Richardson
cb27610970
html5lib: Additional types ( #11411 )
2024-02-15 21:26:25 -08:00
Alex Waygood
7c3cb9971d
Further improve return types in the numbers module ( #11375 )
2024-02-15 21:04:25 -08:00
Avasam
48a0497b23
Bump setuptools to 69.1.* ( #11423 )
2024-02-14 19:58:21 +01:00
Sebastian Rittau
4664986cea
Turn TextIOWrapper(buffer) into a protocol ( #11420 )
2024-02-14 19:49:28 +01:00
Watal M. Iwasaki
a3d356c04c
ftplib: Correct timeout option to float | None ( #11419 )
2024-02-14 10:25:48 +00:00