Commit Graph

894 Commits

Author SHA1 Message Date
Alex Waygood
6b0c8df9ec Upgrade pyright, improve pyright config files (#8072) 2022-06-16 18:50:50 +01:00
Alex Waygood
a2ef47660a Fix TypeVars in beautifulsoup and SQLAlchemy (#8087) 2022-06-16 17:34:27 +02:00
Alex Waygood
43f923b6c2 protobuf: Delete some __new__ and __init__ methods (#8088) 2022-06-16 17:10:14 +02:00
Alex Waygood
4967c8bc12 redis: fix more unconstrained TypeVars (#8084) 2022-06-15 10:14:13 -07:00
Pierre-Marie de Rodat
640053e8e3 Add stubs for "gdb" (#8013)
This commit adds type stubs for the "gdb" package, the Python API to
extend GDB (https://sourceware.org/gdb/onlinedocs/gdb/Python-API.html).
2022-06-14 22:28:54 -07:00
Shantanu
8cac5284ae [stubsabot] Bump braintree to 4.15.* (#8080)
Co-authored-by: hauntsaninja <>
2022-06-14 22:04:35 +01:00
Shantanu
2755d8c310 [stubsabot] Bump pyfarmhash to 0.3.* (#8079)
Co-authored-by: hauntsaninja <>
2022-06-14 22:03:53 +01:00
Shantanu
1fab7f76fb [stubsabot] Bump ujson to 5.3.* (#8078)
Co-authored-by: hauntsaninja <>
2022-06-14 21:44:12 +01:00
Alex Waygood
01d5e28ff7 Fix miscellaneous invalid TypeVar usages (#8074) 2022-06-14 08:48:41 -07:00
Alex Waygood
7de1ed9589 cachetools: Fix invalid TypeVar usage (#8073) 2022-06-14 06:39:45 -07:00
Shantanu
7c473240ff [stubsabot] Bump flake8-simplify to 0.19.* (#8052) 2022-06-13 12:24:49 +02:00
Lee
70d903c8b6 markdown: annotate HtmlStash. (#8067) 2022-06-13 10:47:51 +02:00
Alex Waygood
1be5918baa Use _typeshed.IdentityFunction more consistently (#8063) 2022-06-12 16:56:14 -07:00
Vincent Donato
ad48606a0d Add stub for emoji.is_emoji (#8053) 2022-06-10 01:08:08 +01:00
Shantanu
95128e61ec certifi: mark as obsolete since 2022.5.18.1 (#8045) 2022-06-09 15:49:23 +02:00
Shantanu
971deee833 Remove stubs/filelock (#8046)
See #8043
2022-06-09 11:22:50 +02:00
Shantanu
81fd55a885 frozendict: mark as obsolete since 2.2.0 (#8044)
It has shipped with a py.typed file since v.2.2.0 in January: 7fcdd3aa99

It can be removed come July 15

Co-authored-by: hauntsaninja <>
2022-06-09 09:49:52 +01:00
Shantanu
d3e291cfb6 filelock: mark as obsolete since 3.3.0 (#8043) 2022-06-09 10:39:16 +02:00
Shantanu
2cbbb31bc3 freezegun: mark as obsolete since 1.2.1 (#8042)
Linking #5842
2022-06-09 10:32:56 +02:00
Alex Waygood
45b9e60d13 dateparser: Remove redundant import of _typeshed.Self (#8041) 2022-06-08 21:02:14 +01:00
Alex Waygood
c449ddde56 Remove stubs for characteristic (#8040) 2022-06-08 20:18:13 +01:00
Sebastian Rittau
60507a08a2 Mark characteristic as no longer updated (#8038)
Part of #8012
2022-06-08 18:57:15 +02:00
Shantanu
2414b21a96 Update xxhash (#8034)
Co-authored-by: hauntsaninja <>
2022-06-07 17:45:04 -07:00
Shantanu
8fd308699c Update flake8-rst-docstrings (#8033)
Fixes #8032

Co-authored-by: hauntsaninja <>
2022-06-07 17:33:10 -07:00
Alex Waygood
7322acbb97 jsonschema: mark type alias explicitly (#8024) 2022-06-06 14:44:46 -07:00
Alex Waygood
43a9ab08d7 Always use TypeAlias when assigning to Any (#8021) 2022-06-05 18:16:20 -07:00
Steve Dignam
e30ff13b7d stripe: update a few signatures (#7978)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-06-03 18:27:23 +01:00
Jelle Zijlstra
cb9023988d psycopg2: stub improvements (#7964)
Fixes an entry from #7928 along with a number of other improvements.

I went off the C code:
https://github.com/psycopg/psycopg2/blob/master/psycopg/connection_type.c
2022-06-02 18:02:07 -07:00
Tom Milligan
51f97dda15 requests: expand types for files (#7999) 2022-06-01 22:55:38 +03:00
Tomoki Nakagawa
461289e181 PyYAML: Add types to add_constructor (#7989) 2022-06-01 18:23:20 +01:00
Tom Parker-Shemilt
f5f79f181d dj-database-url: Add missing fields to _DBConfig TypedDict (#8008)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-06-01 16:52:19 +01:00
Sebastian Rittau
07ac9675e4 SQLAlchemy 1.4.37 fixes (#8003)
Closes: #8001
2022-06-01 09:50:40 +01:00
Lee
a0c65022c6 markdown: remove INSTALLED_EXTENSIONS. (#8002) 2022-06-01 10:26:00 +02:00
Lee
e8f20bbb56 markdown: add Markdown.registeredExtensions (#7997) 2022-05-31 14:10:30 +01:00
Shantanu
d736bb9d85 caldav: add verify_expand to Calendar.date_search (#7996)
Co-authored-by: hauntsaninja <>
2022-05-30 18:29:19 -07:00
Stephen Rosen
17e7cc7d3c Fix exception types for jsonschema._format (#7990)
The annotated type for the `raises` argument on format checkers was

    Exception | tuple[Exception, ...]

when it should read

    type[Exception] | tuple[type[Exception], ...]

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2022-05-30 17:14:33 +01:00
Chanwoo Yoon
92ba4b757f ujson: add JSONDecodeError (#7988) 2022-05-29 23:19:29 -07:00
Lee
8f7786c7df markdown: annotate Registry.__len__(). (#7986) 2022-05-30 02:10:07 +01:00
PIG208
5be7976fe3 psycopg2: Fix the return type of Composable.as_string (#7984)
Signed-off-by: Zixuan James Li <359101898@qq.com>
2022-05-29 15:15:56 -07:00
Stephen Rosen
b2aaed1e68 Fix jsonschema exception str|int containers (#7981)
schema_path, relative_schema_path, and absolute_schema_path are all
(related) attributes of `jsonschema` errors which contain `str | int`
but were accidentally annotated as containing `str`. Fix them for
accuracy.
2022-05-29 22:22:34 +01:00
David Robertson
ea16964d87 jsonschema: {relative,absolute}_path can hold ints (#7980) 2022-05-29 16:38:54 +01:00
Xavier Francisco
c94fb408b7 dj_database_url: make all keys optional in _DBConfig TypedDict (#7979)
Co-authored-by: Xavier Francisco <xavier.n.francisco@gmail.com>
2022-05-29 12:25:16 +01:00
Xavier Francisco
3191c1a2df Add stubs for dj-database-url (#7972)
Co-authored-by: Xavier Francisco <xavier.n.francisco@gmail.com>
2022-05-28 15:14:35 +01:00
Lee
1eef7365b9 markdown: remove __getattr__() (#7962) 2022-05-27 23:12:22 -07:00
Stephen Rosen
f52da1e8b0 Flesh out more of jsonschema stubs (#7950)
Apply more detailed annotations to the format module and most of the
exceptions module.
2022-05-27 17:33:32 +01:00
Xavier Francisco
2d2b34c1ee openpyxl: annotate openpyxl.utils.cell stubs (#7969) 2022-05-27 13:58:20 +01:00
Sebastian Rittau
d2728cf688 dateutil: Add dateutil.rrule.weekdays (#7968)
Closes: #7946
2022-05-27 11:15:03 +01:00
Crozzers
082faf0d29 Pillow: change _Mode type alias to str (#7967) 2022-05-27 11:16:41 +02:00
Jelle Zijlstra
789c12ad90 constructors: Fix defaulted TypeVars (#7965)
From the list in https://github.com/microsoft/pyright/issues/3501
2022-05-27 07:32:56 +01:00
Crozzers
62a8a6922c Pillow: Add missing image modes to _Mode type alias in Image.pyi stub (issue #7956) (#7960) 2022-05-26 19:00:48 +01:00