Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Rittau caeb45a9df Use apt-get to install packages (#11824) 2024-04-27 14:25:22 +02:00
Sebastian Rittau e2e14d1cc1 [networkx] Fix incremental_closeness_centrality argument type (#11828) 2024-04-24 17:00:56 +02:00
Sebastian Rittau 8664482849 Bump OpenSSL to 24.1.* (#11816)
Mark a few classes and functions as deprecated

Closes: #11812
2024-04-24 07:58:52 -07:00
Sebastian Rittau f646eb86e2 Introduce SupportsContainsAndGetItem (#11827) 2024-04-24 16:19:12 +02:00
Sebastian RittauandAkuli 7ed91bc2e7 Add _typeshed.MaybeNone as Any trick marker (#11815)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2024-04-23 17:13:25 -04:00
Sebastian RittauandAvasam 56db30e8eb Make email.message.Message generic over the header type (#11732)
Co-authored-by: Avasam <samuel.06@hotmail.com>
2024-04-23 11:41:10 -04:00
Sebastian Rittau 7d56cd9a6c Remove remaining bare Incompletes (#11768)
Enable Y065
2024-04-16 06:26:14 -07:00
Sebastian Rittau f4b89f5f86 Rename check_consistent.py to check_typeshed_structure.py (#11761) 2024-04-14 13:34:10 -07:00
Sebastian Rittau d3aa08188f Ensure that distutils and setuptools._distutils stay consistent (#11758) 2024-04-14 15:41:59 +02:00
Sebastian Rittau 3c678c997d Update setuptools to 69.5.* (#11756) 2024-04-14 15:30:37 +02:00
Sebastian Rittau 451e0efbcb Improve documentation of the check_consistent script (#11757) 2024-04-14 14:59:05 +02:00
Sebastian Rittau 09ff220e09 Rework redis/asyncio/{connection,sentinel}.pyi (#10370)
Closes: #10362
2024-04-08 18:26:58 -04:00
Sebastian Rittau 95a2a2d883 Add icalendar stubs (#11733) 2024-04-08 12:51:48 -04:00
Sebastian Rittau 21b90d44fc [CI] Fix sharding conditionals (#11730) 2024-04-07 18:32:50 +01:00
Sebastian Rittau 26383eed33 Use separate artifact name per step (#11690)
Compatibility with actions/upload-artifact@v4
2024-04-07 15:04:37 +02:00
Sebastian Rittau 4157cb63ad [qrcode] Add various annotations (#11726) 2024-04-07 06:49:50 -04:00
Sebastian Rittau eee28ad90f [python-xlib] Use a protocol for PIL.Image.Image argument (#11722) 2024-04-06 20:15:59 +02:00
Sebastian Rittau c0a44be33f Depend on Pillow instead of types-Pillow (#11720) 2024-04-05 13:30:27 +02:00
Sebastian Rittau 6d19a17f57 [aiofiles] Annotate AiofilesContextManagerTempDir (#11705) 2024-04-02 15:44:44 +02:00
Sebastian RittauandAlex Waygood 630b49a291 Replace various Incompletes in stdlib (#11673)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-04-01 15:20:01 +01:00
Sebastian Rittau 18fff9f8c7 Update actions/github-script to v7 (#11687) 2024-04-01 13:51:21 +01:00
Sebastian Rittau 027115e624 Remove bare incompletes (#11670) 2024-03-30 18:35:57 -07:00
Sebastian Rittau 33de88879f Remove bare Incomplete annotations in third-party stubs (#11671) 2024-03-30 18:34:51 -07:00
Sebastian Rittau 2e240c9b08 Update flake8-builtins to 2.3.* (#11669) 2024-03-30 16:42:07 -04:00
Sebastian Rittau 87900248b0 Update label names used by bots (#11650) 2024-03-23 12:20:36 +01:00
Sebastian Rittau b67804ab6d [croniter] Update to 2.0.3 (#11631) 2024-03-20 07:31:52 +00:00
Sebastian Rittau adde7cc3ac Use Final = ... instead of Final[Literal] (#11623) 2024-03-17 14:12:16 +00:00
Sebastian Rittau 6d45cf6e18 Remove pyright version from pyproject.toml (#11622) 2024-03-17 14:09:15 +00:00
Sebastian Rittau a8997209fb Install pyright from PyPI (#11575) 2024-03-16 14:14:31 +01:00
Sebastian RittauandAli Hamdan 9841c255ee Replace Any in optparse (#11599)
Co-authored-by: Ali Hamdan <ali.hamdan.dev@gmail.com>
2024-03-15 22:33:52 +01:00
Sebastian Rittau 3581846069 Bump influxdb-client to 1.41.* (#11608) 2024-03-15 17:07:47 +01:00
Sebastian Rittau 37ebe904ed [Markdown] Bump to 3.6.* (#11607) 2024-03-15 07:10:23 -07:00
Sebastian Rittau 0b1e5d3f34 stubsabot: Skip test files in diff analysis (#11606) 2024-03-15 13:08:40 +01:00
Sebastian Rittau 417bdb9ac9 Refactor and merge requirements parsing (#11581) 2024-03-12 16:34:47 +01:00
Sebastian Rittau 4c5c5760cf email.message: Allow any header value (#11574) 2024-03-11 17:47:00 -04:00
Sebastian Rittau d424547b94 Run tests with Python 3.12 (#11544) 2024-03-08 17:32:34 +01:00
Sebastian Rittau 407b0c4d70 Update actions/setup-python to v5 (#11542)
Fixes deprecation warnings
2024-03-08 15:53:56 +01:00
Sebastian Rittau df409a2fb5 Use a protocol for shlex.instream et al. (#11452) 2024-02-18 22:04:43 -08:00
Sebastian RittauandJelle Zijlstra 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
Sebastian Rittau 8a38ae62fb Update fpdf2 to 2.7.8 (#11410)
Closes: #11407
2024-02-16 05:45:29 -08:00
Sebastian Rittau 4664986cea Turn TextIOWrapper(buffer) into a protocol (#11420) 2024-02-14 19:49:28 +01:00
Sebastian Rittau 00ec3fe4d8 Bump influxdb-client to 1.39.* (#11116)
Type a few task-related items
2024-02-05 05:10:18 -08:00
Sebastian Rittau 8e872a022c numbers: Remove Any annotations (#11347) 2024-01-30 15:17:06 +01:00
Sebastian Rittau 3dbb2573e6 Remove flake8-plugin-utils (#11339)
Closes: #6913
2024-01-29 13:47:15 +00:00
Sebastian Rittau ed97b42ee2 [pyOpenSSL] Update to 24.0.* (#11338) 2024-01-29 14:09:40 +01:00
Sebastian Rittau cb9892477d [Pillow] Update to 10.2.* (#11232) 2024-01-10 11:51:02 +01:00
Sebastian RittauandAlexWaygood 53a8193d64 Update typing_extensions imports in stdlib (#11244)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2024-01-05 08:15:19 -08:00
Sebastian Rittau b6eaadcfe5 Update typing_extensions imports in third-party stubs (#11245) 2024-01-05 15:40:13 +01:00
Sebastian Rittau 1b471a9a0a Update typing_extensions imports in infrastructure and tests (#11243) 2024-01-05 13:30:45 +00:00
Sebastian Rittau 87a695ab98 Update typing_extensions list in CONTRIBUTING (#11242) 2024-01-05 13:22:32 +01:00
Sebastian Rittau 23604858a6 Remove Python 3.7 branches (#11238) 2024-01-05 11:39:39 +01:00
Sebastian Rittau 1b2cabce4d Remove macpath (removed in Python 3.8) (#11236) 2024-01-04 15:10:36 +01:00
Sebastian Rittau 4e5f7a7142 Drop support for Python 3.7 (#11234) 2024-01-04 14:48:44 +01:00
Sebastian Rittau 262d73c90c Update description of _typeshed.Self (#11233) 2024-01-04 14:43:22 +01:00
Sebastian Rittau 3171cb44aa Bump fpdf2 to 2.7.7 (#11149)
Closes: #11145
2023-12-12 16:31:37 -08:00
Sebastian Rittau fdc195465b Add tests for TestCase.assertDictEqual() (#11154) 2023-12-12 16:41:18 +01:00
Sebastian Rittau 3a036b64fc logging: Remove hack obsoleted by PEP 655 (#11078) 2023-11-30 21:48:54 +00:00
Sebastian Rittau d4bd6d96a0 Bump pytype to 2023.11.29 (#11089) 2023-11-30 08:59:51 +01:00
Sebastian Rittau 9d6d79c83c typing-sig is no more, it's bereft of life, it's an ex-list (#11081)
It's not pining for the fjords anymore
2023-11-28 22:09:13 +00:00
Sebastian Rittau 30f7267b5d Bump pygments to 2.17 (#11051)
* Add some previously missing lexers.
* Improve lexer type annotations.
2023-11-23 14:55:38 +00:00
Sebastian RittauandAlex Waygood ca8ad657d3 [jsonschema] Bump to 4.20.* (#11036)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-11-17 12:40:08 +00:00
Sebastian Rittau a5c1a4cd3f Introduce _typeshed.SupportsFlush (#10983) 2023-11-06 15:31:02 +01:00
Sebastian Rittau 6c5d1d3ae8 [seaborn] Add upstream_repository field (#10982) 2023-11-06 13:44:22 +00:00
Sebastian RittauandAlex Waygood f7aa7b709a Improve regression test documentation (#10935)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-29 10:07:17 +00:00
Sebastian Rittau 1c184fea33 Simplify Traversable signature (#10934)
Simplify Traversable.open() signature. This is necessary so that implentors can
reasonanbly implement this method. For example `zipfile.Path.open()` (which
is considered a `Traversable`) only supports this subset.

Make `Traversable.__truediv__` and `joinpath` arguments pos-only. The
arguments are named differently in both `pathlib.Path` and `zipfile.Path`.
2023-10-27 00:50:11 +02:00
Sebastian Rittau 7e2a3413fa Fix mypy_test if mypy returns negative exit code (#10866) 2023-10-11 14:53:16 +02:00
Sebastian Rittau 3632fc225c Extend and fix zipfile (#10861)
* Add `CompleteDirs` and `FastLookup` (Python 3.8+).
* Add `Path.root` (Python 3.8+).
* Use concrete signature for `Path.open()` (Python 3.8).
* Fix signature of `Path.open()` for Python 3.9+:
   + Add overloads for text and binary modes with fixed return types.
   + Disallow extra arguments for binary modes.
   + Replace `*args` and `**kwargs` with accepted arguments for
     text modes.

Closes: #10847
2023-10-08 06:30:51 -07:00
Sebastian Rittau a042be6b17 Add a section "Stub package versioning" (#10840) 2023-10-08 13:00:55 +02:00
Sebastian Rittau 54a8fd74a7 PyInstaller: List ignored building sub-modules explicitly for stubtest (#10845)
This prevents stubtest from ignoring errors in modules that are stubbed.
2023-10-06 12:05:46 +01:00
Sebastian Rittau af8c3a1b93 [bleach] Add html5lib_shim.Filter__init__/__iter__ (#10835)
The missing __init__ method caused `Filter` to be incompatible
with the `_Filter` protocol, preventing valid initialization of
`Cleaner` instances.

Closes: #10834
2023-10-04 17:19:26 +01:00
Sebastian Rittau 7cc2282959 [ctypes] Add note about atypical classmethod behavior (#10795) 2023-09-28 22:28:10 -07:00
Sebastian Rittau 6074a8f544 [tty] py312: Fix return types of set(raw|cbreak) (#10785)
Also add `termios._AttrReturn` type alias to be used in tty
2023-09-28 07:15:20 -07:00
Sebastian RittauandAlex Waygood 6ca7505af7 Bump jsonschema to 4.19.* (#10583)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-09-22 20:11:54 -07:00
Sebastian Rittau c31e12fff1 [redis] Don't recommend uninstalling types-redis (#10694) 2023-09-12 17:49:26 +02:00
Sebastian Rittau 114949b5ad Note that Python 3.7 support is limited (#10601) 2023-08-21 13:39:45 +01:00
Sebastian Rittau cfc671f6bd Use Python 3.8 in runtests.py (#10600)
We only support running mypy using 3.8+ up, since mypy 1.5 dropped
support for running with Python 3.7.

Closes: #10599
2023-08-21 11:30:13 +02:00
Sebastian Rittau 695d41f487 Bump aiofiles to 23.2.* (#10584) 2023-08-16 12:05:42 +01:00
Sebastian RittauandAlex Waygood ca157cc3c1 Bump influxdb-client to 1.37.* (#10585)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-08-16 12:03:11 +01:00
Sebastian Rittau 31ae7b13c7 Add _typeshed.sentinel (#10582) 2023-08-16 11:31:05 +02:00
Sebastian Rittau da946f36da Bump pytype to 2023.8.14 (#10581) 2023-08-15 11:39:37 +01:00
Sebastian Rittau 47905d2d19 stubsabot: Add stubsabot label to PRs (#10507) 2023-07-25 17:40:11 +02:00
Sebastian Rittau 9b94bd4e5f stubsabot: Add distributions argument (#10505)
[stubsabot] Add distributions argument

This allows to specify which explicitly which distributions to update.
Useful for testing.
2023-07-25 06:40:55 -07:00
Sebastian Rittau 26e8b9c68a [stubsabot] Include repository in issue text (#10488)
Also, get GitHub repository for diff from METADATA.toml, instead of
scraping it from PyPI.
2023-07-20 17:22:15 +02:00
Sebastian Rittau afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00
Sebastian Rittau a04cb3b058 Add stubs for qrcode (#10380) 2023-07-20 14:36:20 +02:00
Sebastian Rittau 7ea173c4ad Fix @patch when new is missing (#10459) 2023-07-14 12:53:13 +02:00
Sebastian Rittau 1925730585 [jsonschema] Use Incomplete instead of Any (#10451)
Replace `Any` with `Incomplete`
2023-07-13 13:34:24 +01:00
Sebastian RittauandAlex Waygood 19992e6212 Mark some errnos as darwin- or solaris-only (#10440)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-07-11 17:09:40 +01:00
Sebastian Rittau f96505474d Bump Pillow to 10.0.* (#10411) 2023-07-06 15:05:38 +01:00
Sebastian Rittau edff8874da [Pillow] Replace Any with Incomplete (#10409) 2023-07-06 14:48:50 +01:00
Sebastian Rittau 1e6b8a9b88 [Pillow] Update TiffImagePlugin for Python 3.11 (#10399)
Also type the methods forwarded from Fraction and replace
`Any` with `Incomplete`.
2023-07-06 15:34:49 +02:00
Sebastian Rittau 1e25866b23 Improve pytype compatibility handling (#10377) 2023-06-28 12:29:13 +02:00
Sebastian Rittau d2c87ac97d Bump redis to 4.6.0 (#10360)
Closes: #10359
2023-06-27 19:25:52 +01:00
Sebastian RittauandAlex Waygood b10f482e36 Bump mysqlclient to 2.2 (#10353)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-23 12:41:55 +01:00
Sebastian RittauandAlex Waygood c3ddf3201a Bump croniter to 1.4 (#10341)
Also require `bytes` for all `hash_id`s for consistency, even
if some methods might work with other types as well. But
using other types might hint at some inconsistent type
usage and be a source of possible bugs.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-21 14:37:30 +01:00
Sebastian RittauandAlex Waygood 06c2fb047a Bump setuptools to 68.0 (#10339)
* Any -> Incomplete in a few files
* Bump setuptools to 68.0.*

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-06-21 13:26:55 +01:00
Sebastian Rittau 5f9d05c7f5 TemporaryFile(): Handle one more case correctly (#10284) 2023-06-14 05:33:01 -07:00
Sebastian Rittau ce222e5cd7 Split requirements file into sections (#10309)
Also note that type checkers and linters should be pinned to a specific
version.
2023-06-12 20:18:16 +02:00
Sebastian Rittau be925c0d3f Check that linters/type checkers are pinned to an exact version (#10311) 2023-06-12 20:12:14 +02:00
Sebastian Rittau 5092f52c45 Update description of test scripts (#10310) 2023-06-12 18:42:33 +01:00