github-actions[bot]
a86115a19d
[stubsabot] Bump ujson to 5.10.* ( #11915 )
...
Release: https://pypi.org/pypi/ujson/5.10.0
Homepage: https://github.com/ultrajson/ultrajson
Repository: https://github.com/ultrajson/ultrajson
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/ujson
Diff: https://github.com/ultrajson/ultrajson/compare/5.9.0...5.10.0
Stubsabot analysis of the diff between the two releases:
- Total lines of Python code added: 0.
- Total lines of Python code deleted: 0.
2024-05-14 21:11:30 -04:00
Adam Dangoor
a9d7e861f7
Add a number of types to docker.models.containers ( #11912 )
2024-05-14 11:15:32 +02:00
Kanishk Pachauri
b859441e74
[pyflakes] add backwards compatibility module ( #11910 )
2024-05-14 07:50:51 +02:00
Max Muoto
3195f9fb1b
Use TypeVar defaults for Generator and AsyncGenerator ( #11867 )
2024-05-13 15:21:43 -07:00
kasium
708656f5ad
Complete types for hvac.v1.Client ( #11886 )
2024-05-13 05:31:48 -07:00
Adam Dangoor
0382803c4c
Add many types to docker.api.container ( #11911 )
2024-05-12 13:58:56 -07:00
Nikita Sobolev
5829e3bdea
Update shelve.open and dbm.open to support path-like objects ( #11881 )
...
Closes #11856
2024-05-12 13:31:12 -07:00
Avasam
ef42294f92
Avoid using new _typeshed protocol in pkg_resources for now ( #11909 )
2024-05-12 16:19:58 -04:00
Adam Dangoor
a4c4076b61
Add types to all "container" parameters in docker.api.container ( #11908 )
2024-05-12 18:07:48 +02:00
Adam Dangoor
96697a835b
Add remaining parameter types to docker.api.container logs ( #11907 )
2024-05-12 17:12:32 +02:00
Sebastian Rittau
ef0a5c2d12
Replace types._Cell with types.CellType ( #11904 )
...
Closes #11901
2024-05-12 06:38:38 -07:00
Adam Dangoor
932311d441
Add return type to Docker Container.logs ( #11888 )
2024-05-12 13:39:18 +02:00
Adam Dangoor
488bc24c43
Add return type for Docker container start ( #11905 )
2024-05-12 13:37:00 +02:00
Adam Dangoor
bbad7f2f24
Fix "tail" parameter type for Docker container logs ( #11906 )
2024-05-12 13:09:47 +02:00
Adam Dangoor
f75211b801
Allow Image type for docker container run image parameter ( #11900 )
2024-05-12 12:14:06 +02:00
Anderson Bravalheri
b42e3b2e89
Use protocols instead of importlib.abc.Loader/MetaPathFinder/PathEntryFinder ( #11890 )
2024-05-12 11:58:33 +02:00
Ali Hamdan
6565e8a0a0
regex: functions do not accept any buffer for pattern ( #11899 )
2024-05-11 12:50:45 +02:00
Alex Waygood
7bfde5b676
Pin pynput more tightly ( #11897 )
...
Fixes #11896
2024-05-11 01:40:48 +01:00
github-actions[bot]
65e989d15e
[stubsabot] Bump regex to 2024.5.10 ( #11894 )
...
Release: https://pypi.org/pypi/regex/2024.5.10
Homepage: https://github.com/mrabarnett/mrab-regex
Repository: https://github.com/mrabarnett/mrab-regex
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/regex
Diff: https://github.com/mrabarnett/mrab-regex/compare/2024.4.28...2024.5.10
Stubsabot analysis of the diff between the two releases:
- Total lines of Python code added: 6.
- Total lines of Python code deleted: 4.
2024-05-10 17:21:48 -07:00
Alex Waygood
294f237f05
Use stricter pyright settings for checking flake8 stubs in CI ( #11893 )
2024-05-10 20:01:31 +01:00
qexat
beefacf4e3
tempfile.SpooledTemporaryFile.truncate(): Fix return type for Python >=3.11 ( #11892 )
2024-05-10 16:59:23 +02:00
bytemarx
a10e4135fe
Add missing ETH_P_ALL identifier to socket ( #11876 )
2024-05-10 11:50:37 +02:00
github-actions[bot]
37f9e4c412
[stubsabot] Bump wurlitzer to 3.1.* ( #11848 )
2024-05-10 10:46:34 +02:00
Kanishk Pachauri
864dee36fb
stubs: [BeautifulSoup] fix incomplete type specs for formatter ( #11885 )
2024-05-10 10:45:44 +02:00
Jelle Zijlstra
38569b6bb4
stubtest: fix path ( #11884 )
2024-05-10 10:44:42 +02:00
Nikita Sobolev
d07ba24f3c
Add typehints for open in PIL.WallImageFile ( #11887 )
2024-05-10 10:29:09 +02:00
Adam Dangoor
9174db0d7d
Add some types to Docker ContainerCollection parameters ( #11857 )
2024-05-10 10:08:47 +02:00
Sebastian Rittau
27cad856f8
Add flake8 ( #11676 )
2024-05-09 19:50:07 -07:00
Sebastian Rittau
392ae934fc
Move test_cases to stdlib/@tests/test_cases ( #11865 )
2024-05-09 19:27:09 -07:00
David Salvisberg
ea61ca5a30
[3.13] typing.(Async)ContextManager adds second type parameter ( #11873 )
...
This is in response to: https://github.com/python/cpython/pull/118681
2024-05-09 19:25:49 -07:00
Kanishk Pachauri
120f01dcb3
stubs: change psutil's Process.wait timeout argument to float ( #11883 )
...
Fixes #11866
2024-05-09 19:25:00 -07:00
renovate[bot]
72623c6b15
Update dependency pyright to v1.1.362 ( #11877 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 19:32:21 -07:00
Javier Zazo
2d33fe2122
deprecate pathlib.Path.link_to ( #11875 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2024-05-07 21:14:14 +01:00
Ed Younis
3e3fd0dd86
Changed logging.lastResort type to Handler ( #11872 )
2024-05-07 14:55:01 +02:00
Nikita Sobolev
16dadc8fb5
Add show_empty to ast.dump ( #11871 )
2024-05-07 12:42:16 +02:00
Kirill Podoprigora
74486c31a2
[3.13] Add optimize to ast.parse parameters ( #11870 )
2024-05-07 11:23:24 +02:00
Adam Dangoor
727f3c4320
Add return type to Docker Container.stop ( #11869 )
...
We can see at
b6464dbed9/docker/models/containers.py (L452)
that this returns the return value of `self.client.api.stop`.
We can see at
b6464dbed9/docker/api/container.py (L1187)
that this returns None.
2024-05-06 11:05:43 +02:00
Adam Dangoor
113b2ccd42
Add return type to Docker Container.remove ( #11868 )
2024-05-06 11:01:55 +02:00
github-actions[bot]
8ff50fbea2
[stubsabot] Bump Pygments to 2.18.* ( #11861 )
...
Release: https://pypi.org/pypi/Pygments/2.18.0
Homepage: https://pygments.org
Repository: https://github.com/pygments/pygments
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/Pygments
Changelog: https://github.com/pygments/pygments/blob/master/CHANGES
Diff: https://github.com/pygments/pygments/compare/2.17.2...2.18.0
Stubsabot analysis of the diff between the two releases:
- 5 public Python files have been added: `pygments/lexers/mojo.py`, `pygments/lexers/soong.py`, `pygments/lexers/tact.py`, `pygments/lexers/typst.py`, `pygments/styles/coffee.py`.
- 0 files included in typeshed's stubs have been deleted.
- 36 files included in typeshed's stubs have been modified or renamed.
- Total lines of Python code added: 4858.
- Total lines of Python code deleted: 2467.
If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR
Note that you will need to close and re-open the PR in order to trigger CI
Co-authored-by: stubsabot <>
2024-05-05 07:39:39 -07:00
Sebastian Rittau
e436dfe219
Unify test directory handling ( #11864 )
...
Previously, handling of test directories (`@tests` and `test_cases`) was
distributed over multiple files and redundant. This unifies the handling
in the `utils` module. This also fixes some instances where "package"
was used instead of "distribution". And in a few instances paths were
joined by using a `/` in a string, which is incompatible with Windows.
Also move `runtests.py` from `scripts` to `tests`. This is required so that
we can import `utils`, but it's also arguably the better fit. The only
mention of the script is actually in the `tests/README.md` file.
Helps with #11762 .
2024-05-05 16:28:37 +02:00
kasium
4005c2f214
Improve types in docker models ( #11859 )
2024-05-05 12:32:37 +02:00
Arthur Bols
32ab6813bc
regex: improve Pattern annotations ( #11862 )
...
- Corrected types for `pos` and `endpos` arguments to `int | None = None`
- Corrected type for `timeout` argument to `float | None = None`
- Added default value `None` for `concurrent` and `timeout` parameters
- Added default value `0` for `maxsplit` parameter
- Added `partial` parameter where applicable
- Removed invalid `flags` parameter from `sub` methods
2024-05-04 19:39:35 -07:00
Jelle Zijlstra
9c8c9c769c
Add stubs for unidiff ( #11860 )
2024-05-04 17:33:09 +02:00
Philipp
a3f7c2b235
Add indent argument to HTMLFormatter and XMLFormatter inits ( #11855 )
2024-05-03 08:41:32 +02:00
renovate[bot]
8c0fc298c5
Update dependency pyright to v1.1.361 ( #11858 )
2024-05-02 18:39:24 -07:00
Adam Dangoor
5883898b0a
[docker-py] Add return type for building a Docker image ( #11851 )
2024-05-02 10:08:32 +02:00
github-actions[bot]
2ac3ad9fcd
[stubsabot] Bump jsonschema to 4.22.* ( #11850 )
...
Release: https://pypi.org/pypi/jsonschema/4.22.0
Homepage: https://github.com/python-jsonschema/jsonschema
Repository: https://github.com/python-jsonschema/jsonschema
Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/jsonschema
Changelog: https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst
Diff: https://github.com/python-jsonschema/jsonschema/compare/v4.21.1...v4.22.0
Stubsabot analysis of the diff between the two releases:
- 3 public Python files have been added: `jsonschema/benchmarks/const_vs_enum.py`, `jsonschema/benchmarks/useless_applicator_schemas.py`, `jsonschema/benchmarks/useless_keywords.py`.
- 0 files included in typeshed's stubs have been deleted.
- 6 files included in typeshed's stubs have been modified or renamed: `jsonschema/_format.py`, `jsonschema/_types.py`, `jsonschema/_utils.py`, `jsonschema/exceptions.py`, `jsonschema/protocols.py`, `jsonschema/validators.py`.
- Total lines of Python code added: 313.
- Total lines of Python code deleted: 21.
2024-04-30 18:14:38 -07:00
kasium
f244be921e
Improve docker api types ( #11846 )
2024-04-30 13:43:08 +02:00
Marc Mueller
9178f5a414
Use TypeIs for asyncio function ( #11847 )
2024-04-29 15:17:09 -07:00
kasium
78a86de5d9
Add types to docker/context ( #11818 )
2024-04-29 14:27:55 +02:00