Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Rittau 3aaa1d0ada Upgrade pyright to 1.1.247 (#7867) 2022-05-18 19:56:19 +01:00
Sebastian Rittau 7ca82d5fb4 stubtest third party: remove extra line when skipping a distribution (#7864) 2022-05-18 20:15:55 +02:00
Sebastian Rittau b65ef3a722 Make third party stubtest output more succinct (#7853)
stubtest_third_party.py will now only print a single line when the test
succeeds for a certain distribution, unless the "-v" option is given.
When the test fails or "-v" is given, will still print the full output.

The success status is now colored to make spotting failures easier.

stdout/stderr is now used consistently: The distribution name and
success status is always printed to stdout, all other output goes to
stderr. Running the script with "2>/dev/null" will only show the success
status of the test, one per line.
2022-05-17 16:10:58 -07:00
Sebastian Rittau f21898abb9 Improve I/O types in socket.pyi (#7852)
* Use a protocol for socket.sendfile() "file" argument.
* Use concrete classes for socket.makefile() return types.
2022-05-17 06:11:50 -07:00
Sebastian Rittau e1bd9c73f0 Use I/O protocols in codecs.pyi (#7849) 2022-05-17 15:01:57 +02:00
Sebastian Rittau a05ee9740d Markdown: use I/O protocols (#7851) 2022-05-17 15:00:59 +02:00
Sebastian Rittau b211bf31a3 Update testing_engine() annotations (#7818) 2022-05-10 12:46:01 +03:00
Sebastian Rittau 460537c7f6 Add missing redis modules and classes (#7676)
This adds asyncio support and support for redis.typing.
2022-05-04 11:29:13 +02:00
Sebastian Rittau fa701ab0ee Run apt-get update before installing packages (#7749)
Fixes #7743
2022-04-30 06:42:23 -06:00
Sebastian Rittau 5df8de7693 Move a few protocol from builtins to _typeshed (#7736) 2022-04-28 17:36:47 +02:00
Sebastian Rittau 5535b7fc08 Update caldav stubs for 0.9 (#7734) 2022-04-28 17:56:43 +03:00
Sebastian Rittau ff2feff7df dateutil.tz.tz: Replace IO with protocols (#7717) 2022-04-27 16:37:57 +03:00
Sebastian Rittau 02310d93da Update pyright to 1.1.240 (#7701) 2022-04-27 15:02:30 +02:00
Sebastian Rittau f7aa41245e Drop Python 2 support in third-party stubs (#7703) 2022-04-27 15:32:17 +03:00
Sebastian RittauandAkuli 2d468966f5 Add various missing generic arguments (#7702)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-04-27 15:25:35 +03:00
Sebastian Rittau fa4677424a Remove Python 2 support from simplejson (#7704) 2022-04-27 11:57:29 +02:00
Sebastian Rittau 60f0497a72 Drop support for Python 2 in termcolor (#7707) 2022-04-27 12:56:38 +03:00
Sebastian Rittau cfdff16e4e Drop Python 2 support from chardet (#7708) 2022-04-27 12:54:40 +03:00
Sebastian Rittau 03e1e3b4d3 Drop Python 2 support from python-gflags (#7709) 2022-04-27 12:54:12 +03:00
Sebastian Rittau 98aa6d75fe Drop Python 2 support from python-dateutil (#7715) 2022-04-27 12:52:46 +03:00
Sebastian Rittau 5edf5f0cc9 Remove Python 2 support from toml (#7713) 2022-04-27 12:52:28 +03:00
Sebastian Rittau 27af3dc6b1 Drop Python 2 support from click-spinner (#7710) 2022-04-27 12:49:27 +03:00
Sebastian Rittau 6245bc7432 Remove Python 2 support from entrypoints (#7711) 2022-04-27 12:47:50 +03:00
Sebastian Rittau e916fb5f1e Remove Python 2 support from atomicwrites (#7712) 2022-04-27 12:45:44 +03:00
Sebastian Rittau 891d46cbb4 Drop Python 2 support from polib (#7714) 2022-04-27 12:42:23 +03:00
Sebastian Rittau f39149d3a9 Drop Python 2 support from emoji (#7716) 2022-04-27 12:33:42 +03:00
Sebastian Rittau 54c8f45869 pytype now supports Python 3.10 (#7700) 2022-04-27 10:59:34 +02:00
Sebastian Rittau d0990a0487 Drop Python 2 support from python-nmap (#7706) 2022-04-27 10:58:48 +02:00
Sebastian Rittau 2fb8424503 Drop Python 2 support from croniter (#7705) 2022-04-27 10:58:34 +02:00
Sebastian Rittau 3a98e8be6b Update redis stubs to 4.2 (#7675)
Closes #7597
2022-04-23 22:15:10 -07:00
Sebastian Rittau 2a0fc1b582 Annotate Error and Diagnostics (#7671)
Move cursor class to top of file so it can be used as base class
2022-04-21 21:19:34 -07:00
Sebastian Rittau 321359ca31 Add _typeshed.(Opt)ExcInfo (#7645) 2022-04-18 00:28:43 +01:00
Sebastian Rittau 499e74cf2a Add wsgiref.types (Python 3.11+) (#7644)
_typeshed.wsgi: Import from wsgiref.types in Python 3.11+

Make types match wsgiref.types
2022-04-16 21:36:31 +02:00
Sebastian Rittau 7a3eb5a481 Use tuple instead of _typing.Tuple in ast (#7639) 2022-04-16 16:15:42 +01:00
Sebastian Rittau 182fa6321c Update gettext translations (#7636)
* Use a protocol instead of `IO` for `fp` argument.
* Annotate a few missing return types.
* Mark some class constants as final.

Fixes #7628
2022-04-16 07:07:15 -07:00
Sebastian Rittau 636a7e8b37 Update bleach stubs to version 5 (#7612) 2022-04-11 17:48:55 -07:00
Sebastian Rittau ef819f3910 Remove pre-Python 3.6 branches from datetime.pyi (#7602) 2022-04-07 11:33:45 +02:00
Sebastian Rittau 3941e959ca Update google-cloud-ndb stubs to 1.11 (#7593) 2022-04-05 06:58:02 -07:00
Sebastian Rittau 4c9dc43c87 Update SQLalchemy to 1.4.34 (#7573)
Closes: #7572
2022-04-01 14:22:00 +01:00
Sebastian Rittau 9687d53b65 Use explicit type aliases in _typeshed (#7534) 2022-03-30 11:06:07 +02:00
Sebastian RittauandAlex Waygood c41034c354 passlib: Annotate various handler methods and fields (#7521)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-03-26 20:53:05 -07:00
Sebastian Rittau 9a76b13127 Add _typeshed.Incomplete (#7535)
Closes: #5613
2022-03-25 10:18:09 +01:00
Sebastian Rittau 41160cc294 Fix primer comment workflow (#7545) 2022-03-24 08:02:54 -07:00
Sebastian Rittau 00f1807836 Update black target version to py310 (#7538)
This makes no difference to existing files, but allows scripts to use
the match statement.
2022-03-23 07:57:17 -07:00
Sebastian Rittau 251dd52b57 Remove backports_abc third-party package (#7533)
The last release was in 2016 and it's not required in any currently
supported Python 3 version.
2022-03-22 11:43:59 -07:00
Sebastian Rittau b307142f62 Update pytype to 2022.3.21 (#7532) 2022-03-22 08:30:03 +00:00
Sebastian Rittau 50107e6e2b 'Inactive' -> 'former' consistently (#7512) 2022-03-18 06:01:04 -07:00
Sebastian Rittau 108b6fb091 pyright: Don't report incompatible overrides (#7498)
These overrides are inherited from the implementation and are out of
typeshed's control.
2022-03-16 16:20:06 +01:00
Sebastian Rittau fdc5863337 Use stubtest 0.941 (#7490) 2022-03-15 00:37:34 -07:00
Sebastian Rittau 1cc31cd470 passlib: Annotate pbkdf2_sha* (#7486) 2022-03-14 08:55:37 -07:00
Sebastian Rittau cdb573b398 Remove explicit inheritance from object (#7468) 2022-03-09 19:43:44 +01:00
Sebastian Rittau 6df2274a41 Inactive maintainers policy (#7467)
Closes: #7449
2022-03-09 19:28:05 +01:00
Sebastian RittauandAlex Waygood c3907ab26b Remove Python 2 support from some third-party distributions (#7466)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-03-09 20:19:22 +02:00
Sebastian Rittau 889164cb0c psycopg2: Annotate cursor execute* and dunder methods (#7460) 2022-03-08 08:13:19 -08:00
Sebastian Rittau addce5c067 Add passlib stubs (#7024) 2022-03-06 16:25:00 -08:00
Sebastian Rittau 7e5d2a58aa Add openpyxl stubs (#6801) 2022-03-06 16:24:17 -08:00
Sebastian Rittau 24616d65d9 6-12 months -> six months (#7411)
"At least 6-12 months" is equivalent to "at least six months" and we
usually remove after six month, unless there are issues.
2022-03-01 17:37:53 -08:00
Sebastian Rittau 7f2cf525e9 Add six.create_bound_method dunders to allowlist (#7409)
Closes: #7404
2022-03-01 07:16:49 -08:00
Sebastian Rittau 000b466b21 Remove orjson stubs (#7410) 2022-03-01 10:59:31 +01:00
Sebastian Rittau 3afcc1b2b1 Mark selenium stubs as obsolete (#7383) 2022-02-25 15:46:39 +01:00
Sebastian Rittau 7b024f5e9a Update dateparser stubs for 1.1 (#7368) 2022-02-23 11:15:24 -08:00
Sebastian Rittau ffeac7297f Re-export RedisCluster from redis (#7371) 2022-02-23 16:39:09 +01:00
Sebastian Rittau 7a81bd41e9 Re-introduce the 'stubtest' key for third-party packages (#7351)
Some distributions can't be tested with stubtest for a variety of
reasons or because of bugs in stubtest. This key:

* let's us keep metadata about a distribution in one place,
* prevents us from modifying the scripts because of issues with a
  specific distribution, and
* will trigger tests if only the key is changed.
2022-02-22 15:59:27 +01:00
Sebastian Rittau ae39348d7a Annotate Session.execute() and Result (#7252)
* Annotate return type of Session.execute()

* Annotate Result return types

* Remove sub-class overrides with identical signatures
2022-02-17 09:27:55 -08:00
Sebastian Rittau e3742686b1 Update to redis 4.1.4 (#7247)
Closes: #7245
2022-02-17 01:33:33 -08:00
Sebastian Rittau 4a0dabda1b Various SQLalchemy type improvements (#7238)
* Make ColumnOperators and ColumnElement generic
* Overload Session.query() return type
* Annotate ColumnOperators methods
2022-02-16 19:03:48 -08:00
Sebastian Rittau 44bcf5eed0 Various SQLalchemy fixes and improvements (#7237) 2022-02-16 06:46:11 -08:00
Sebastian Rittau 92685d18f7 Update to Python 3.9.10 and 3.10.2 (#6977) 2022-02-11 17:37:31 -08:00
Sebastian Rittau 84b5e73396 protobuf doesn't support Python 2 anymore (#7176)
Remove Python-2-only package "futures"
2022-02-11 08:10:31 -08:00
Sebastian Rittau 97a327b984 fpdf2: Correct annotations of @contextmanager methods (#7172) 2022-02-10 18:15:09 +01:00
Sebastian Rittau 7179fee2d8 is_zipfile() also accepts bytes paths (#7106)
Use a protocol for is_zipfile(), instead of IO
2022-02-04 21:27:02 -08:00
Sebastian Rittau 2dc53caffe Improve abc module and builtin function decorators (#5703) 2022-02-02 16:22:32 +01:00
Sebastian Rittau 54fde0c2a1 Improve protocol return types (#7093)
* Dunder comparisons must return bool.
* write() return type should be ignored.
* Use custom comparison protocols in _operator.pyi
2022-02-01 08:59:07 +01:00
Sebastian Rittau cb3c1bb638 Replace IO with protocols (#7092) 2022-01-31 11:39:56 +02:00
Sebastian Rittau 6746e83f52 Counter/defaultdict: Key type 'str' if initialized with keywords (#7048) 2022-01-28 12:41:58 +02:00
Sebastian Rittau 4390b88986 Update redis stubs for 4.1.2 (#7064) 2022-01-28 11:30:23 +02:00
Sebastian Rittau b87ebc5375 Don't use a literal for TYPE_CHECKING (#7062)
Partly addresses #7061
2022-01-27 23:51:22 -08:00
Sebastian RittauandAkuli c2182fdd3e Treat validators as classes (#7035)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-25 07:43:40 -08:00
Sebastian Rittau fabd842857 Annotate parts of jsonschema.validators and URIDict (#7025) 2022-01-24 16:42:29 +01:00
Sebastian Rittau 46159aeca3 Update SQLAlchemy stubs for 1.4.31 (#6990) 2022-01-21 18:10:25 -08:00
Sebastian Rittau 852723aa69 Temporarily pin Python 3.9.9 and 3.10.1 for stubtest (#6974) 2022-01-20 11:47:46 +01:00
Sebastian Rittau fb6c9621d6 Update SQLAlchemy stubs for 1.4.30 (#6973) 2022-01-20 12:34:02 +02:00
Sebastian Rittau 5bf672ce42 Update redis stubs to 4.1.1 (#6960)
Closes: #6951
2022-01-19 07:05:15 -08:00
Sebastian Rittau 28faad6143 Unpin 3.10.1 (#6965) 2022-01-19 06:44:31 -08:00
Sebastian Rittau 7d2de33bba Temporarily fix redis version to 4.1.0 (#6952)
Quick fix for #6951
2022-01-18 06:53:37 -08:00
Sebastian Rittau f7534891f1 Annotate command kwargs arguments (#6721) 2022-01-13 11:22:08 +01:00
Sebastian Rittau 67c5d73cdb Further annotate sqlalchemy.engine and collections (#6680) 2022-01-09 15:20:17 +02:00
Sebastian Rittau f4ce1ebaf8 Use positional-only arguments for IO (#6851) 2022-01-08 20:49:29 +02:00
Sebastian Rittau f8501d33c7 Use types-urllib3 for requests (#6859) 2022-01-08 16:25:50 +02:00
Sebastian Rittau 38811a4495 Fix check consistent (#6860) 2022-01-08 15:35:42 +02:00
Sebastian Rittau 29563c3cc3 Add urllib3 stubs (#6858) 2022-01-08 14:49:06 +02:00
Sebastian RittauandJelle Zijlstra 2ad8db51ad Update to mypy 0.931 (#6850)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-01-07 19:21:10 +01:00
Sebastian Rittau e77a66aced Update pyright (#6840) 2022-01-07 18:58:15 +02:00
Sebastian Rittau eee7f71f23 Update pytype (#6839)
* Update pytest and pyright

* Don't upgrade pyright
2022-01-06 00:06:46 -08:00
Sebastian RittauandAkuli 4f4068243a Upgrade stubs to Pillow 9 (#6795)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-05 14:17:56 +02:00
Sebastian Rittau 22bf9e8a78 redis: Restore type annotations of ping() and save() (#6720) 2021-12-28 13:08:05 +02:00
e6cb341d94 Update redis stubs to 4.1 (#6711)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-27 21:34:34 +02:00
Sebastian Rittau 14e5d16c3a Replace METADATA stubtest key with stubtest_apt_packages (#6704) 2021-12-27 17:28:59 +01:00
Sebastian Rittau 51a2cd1289 Enable stubtest for six (#6699) 2021-12-27 12:36:17 +02:00
Sebastian Rittau d065ee4aef Enable stubtest for aiofiles (#6698) 2021-12-26 15:54:42 +02:00