Commit Graph
100 Commits
Author SHA1 Message Date
Shantanu 1f0172c85d [stubsabot] Bump babel to 2.10.* (#8222) 2022-07-01 22:45:32 +02:00
Shantanuandhauntsaninja 81a95b4b22 [stubsabot] Bump stripe to 3.5.* (#8223)
Co-authored-by: hauntsaninja <>
2022-07-01 20:33:00 +01:00
Shantanuandhauntsaninja 25d7adefb2 [stubsabot] Bump aws-xray-sdk to 2.10.* (#8221)
Co-authored-by: hauntsaninja <>
2022-07-01 20:32:41 +01:00
Shantanu 5818c3e6c4 [stubsabot] Bump flake8-bugbear to 22.7.1 (#8220) 2022-07-01 11:57:51 -07:00
Shantanuandhauntsaninja cf2eaf2a75 [stubsabot] Bump stripe to 3.4.* (#8212)
Co-authored-by: hauntsaninja <>
2022-07-02 00:11:51 +05:30
Shantanuandhauntsaninja af21ef5cb3 [stubsabot] Bump psutil to 5.9.* (#8213)
Co-authored-by: hauntsaninja <>
2022-07-02 00:11:33 +05:30
200891fed1 Bump prettytable to 3.3.* (#8207)
Co-authored-by: hauntsaninja <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-06-30 07:50:39 +01:00
Shantanu 6e039ddce3 [stubsabot] Bump python-slugify to 6.1.* (#8208) 2022-06-29 09:54:42 -07:00
Shantanuandhauntsaninja 4253a1fbf7 [stubsabot] Bump hdbcli to 2.13.* (#8206)
Co-authored-by: hauntsaninja <>
2022-06-29 17:16:15 +01:00
b4587c64c6 Bump fpdf2 to 2.5.* (#8173)
Co-authored-by: hauntsaninja <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-29 16:54:36 +01:00
Shantanu 0178a0e742 [stubsabot] Bump croniter to 1.3.* (#8185) 2022-06-26 17:54:19 +01:00
Shantanuandhauntsaninja 531b162a66 [stubsabot] Bump tzlocal to 4.2 (#8184)
Co-authored-by: hauntsaninja <>
2022-06-26 17:49:20 +01:00
Shantanuandhauntsaninja 627285059a [stubsabot] Bump jmespath to 1.0.* (#8183)
Co-authored-by: hauntsaninja <>
2022-06-26 17:46:04 +01:00
Shantanuandhauntsaninja cdcf264d07 fpdf2: improve types (#8176)
Co-authored-by: hauntsaninja <>
2022-06-26 20:53:29 +05:30
d23d213d7e [stubsabot] Bump aws-xray-sdk to 2.9.* (#8180)
* [stubsabot] Bump aws-xray-sdk to 2.9.*

Co-authored-by: hauntsaninja <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-06-26 14:08:03 +01:00
329edb0a2d [stubsabot] Bump pep8-naming to 0.13.* (#8181)
* [stubsabot] Bump pep8-naming to 0.13.*

* Bye bye Python 2

Co-authored-by: hauntsaninja <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-06-26 14:00:29 +01:00
Shantanuandhauntsaninja feb54c8cb0 [stubsabot] Bump flake8-typing-imports to 1.12.* (#8179)
Co-authored-by: hauntsaninja <>
2022-06-26 13:53:56 +01:00
bef4a5ff65 DateTimeRange: complete stubs (#8168)
Co-authored-by: hauntsaninja <>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-06-26 10:51:00 +01:00
Shantanu a81c695cd6 Bump xmltodict to 0.13.* (#8172) 2022-06-26 10:45:58 +01:00
Shantanuandhauntsaninja e24bbb7000 [stubsabot] Bump python-nmap to 0.7.* (#8174)
Co-authored-by: hauntsaninja <>
2022-06-26 15:09:11 +05:30
Shantanuandhauntsaninja ffb25d964c deprecated: complete stubs (#8169)
Co-authored-by: hauntsaninja <>
2022-06-26 10:30:22 +01:00
Shantanuandhauntsaninja 634f18f615 emoji: complete stubs (#8170)
Co-authored-by: hauntsaninja <>
2022-06-26 08:58:00 +01:00
Shantanuandhauntsaninja b6379e7c7a Check missing definitions for several packages (#8167)
Co-authored-by: hauntsaninja <>
2022-06-26 08:56:18 +01:00
ShantanuandAlexWaygood 288c6ac447 Bump jsonschema to 4.6.* (#8161)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-06-26 08:18:41 +05:30
ShantanuandAlexWaygood d975734b8b Bump regex to 2022.6.2 (#8162)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-06-26 08:18:01 +05:30
Shantanu 98882d3cbe PyYAML: check missing defs (#8159) 2022-06-25 18:05:23 +01:00
Shantanuandhauntsaninja 9113e16c0c [stubsabot] Bump pycurl to 7.45.* (#8163)
Co-authored-by: hauntsaninja <>
2022-06-25 18:02:59 +01:00
Shantanu a9fb8c5119 stubsabot: add project links (#8158)
See https://github.com/python/typeshed/pull/8157 for an example
2022-06-25 06:42:48 -07:00
Shantanu 564347b04e chardet: improve stubs (#8155) 2022-06-25 06:40:58 -07:00
Shantanuandhauntsaninja 14628b519a [stubsabot] Bump entrypoints to 0.4.* (#8157)
Co-authored-by: hauntsaninja <>
2022-06-25 08:25:38 +01:00
Shantanu 22532ba504 dj-database-url, docopt, editdistance, first: check missing defs (#8154) 2022-06-25 08:16:59 +01:00
Shantanuandhauntsaninja 74687b1fa0 ujson, pyfarmhash, toposort: check for missing definitions (#8153)
Co-authored-by: hauntsaninja <>
2022-06-25 08:15:44 +01:00
Shantanu 8b422ff01d appdirs, tabulate, termcolor, xmltodict: check missing defs (#8156)
complete termcolor, xmltodict
2022-06-25 08:09:25 +01:00
Shantanuandhauntsaninja 4415e9cc0b [stubsabot] Bump requests to 2.28.* (#8152)
Co-authored-by: hauntsaninja <>
2022-06-25 12:01:22 +05:30
Shantanuandhauntsaninja 6021a9ec6b [stubsabot] Bump flake8-bugbear to 22.6.22 (#8151)
Co-authored-by: hauntsaninja <>
2022-06-25 12:01:16 +05:30
Shantanuandhauntsaninja 4f5d6743f5 [stubsabot] Bump chardet to 5.0.* (#8150)
Co-authored-by: hauntsaninja <>
2022-06-25 12:01:06 +05:30
Shantanu 305f10b808 stubtest: per project --ignore-missing-stub (#8122) 2022-06-21 05:52:24 -07:00
Shantanu 7ee3b5672c Update cachetools to 5.2.* (#8119) 2022-06-21 09:02:00 +02:00
Shantanuandhauntsaninja b36c7705a7 [stubsabot] Bump pytz to 2022.1 (#8121)
Co-authored-by: hauntsaninja <>
2022-06-20 22:16:45 -07:00
Shantanuandhauntsaninja ec33d7ba87 [stubsabot] Bump editdistance to 0.6.* (#8120)
Co-authored-by: hauntsaninja <>
2022-06-20 22:16:34 -07:00
Shantanu a1323510f3 Bump parsimonious to 0.9.* (#8117) 2022-06-20 21:38:52 -07:00
Shantanuandhauntsaninja 6c63c323ae [stubsabot] Bump humanfriendly to 10.0.* (#8118)
Co-authored-by: hauntsaninja <>
2022-06-20 21:37:42 -07:00
Shantanu 58d486978e Bump mysqlclient to 2.1.* (#8116) 2022-06-20 21:36:21 -07:00
Shantanu 432fc3ff00 Bump invoke to 1.7.* (#8111) 2022-06-20 21:06:53 -07:00
Shantanu 05ac6a7215 Bump waitress to 2.1.* (#8113) 2022-06-20 21:06:15 -07:00
Shantanuandhauntsaninja 6fd87aca20 [stubsabot] Bump flake8-bugbear to 22.4.25 (#8112)
Co-authored-by: hauntsaninja <>
2022-06-20 16:29:31 -07:00
Shantanuandhauntsaninja 34579f1edf socket: add TCP_KEEPALIVE (#8100)
bpo-34932

Co-authored-by: hauntsaninja <>
2022-06-19 17:57:07 +01:00
Shantanu a9cd83adf9 Silence mysterious 3.10.5 stubtest failure (#8102)
Fixes #8098 (along with #8099)
2022-06-19 00:58:43 -07:00
Shantanu b7f8d847be socket: consistency between constants and enums (#8099)
This matches what happens at runtime, from Enum._convert_
Helps with #8098. Closes #5696.
2022-06-19 08:57:55 +01:00
Shantanu 64181e8dad stubtest: use separate table in METADATA.toml (#8096) 2022-06-19 00:43:24 -07:00
Shantanu 42409735b2 Bump oauthlib to 3.2.* (#8081) 2022-06-18 16:27:10 +02:00
ShantanuhauntsaninjaAkuli
225c14c16f [stubsabot] Bump Pygments to 2.12.* (#8093)
Co-authored-by: hauntsaninja <>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-06-18 08:58:29 +01:00
Shantanuandhauntsaninja b7af592718 [stubsabot] Bump paramiko to 2.11.* (#8091)
Co-authored-by: hauntsaninja <>
2022-06-18 08:51:10 +01:00
Shantanuandhauntsaninja 5f1f6dc310 redis: remove duplicate allowlist entries (#8097)
Co-authored-by: hauntsaninja <>
2022-06-18 08:42:07 +01:00
Shantanu c31baed61d [stubsabot] add script (#8035) 2022-06-17 21:52:36 -07:00
Shantanuandhauntsaninja 8cac5284ae [stubsabot] Bump braintree to 4.15.* (#8080)
Co-authored-by: hauntsaninja <>
2022-06-14 22:04:35 +01:00
Shantanuandhauntsaninja 2755d8c310 [stubsabot] Bump pyfarmhash to 0.3.* (#8079)
Co-authored-by: hauntsaninja <>
2022-06-14 22:03:53 +01:00
Shantanuandhauntsaninja 1fab7f76fb [stubsabot] Bump ujson to 5.3.* (#8078)
Co-authored-by: hauntsaninja <>
2022-06-14 21:44:12 +01:00
Shantanu 7c473240ff [stubsabot] Bump flake8-simplify to 0.19.* (#8052) 2022-06-13 12:24:49 +02: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
Shantanuandhauntsaninja 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: https://github.com/Marco-Sulla/python-frozendict/commit/7fcdd3aa990aa323fbcecea4b33733468c97cc27

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
Shantanuandhauntsaninja 2414b21a96 Update xxhash (#8034)
Co-authored-by: hauntsaninja <>
2022-06-07 17:45:04 -07:00
Shantanuandhauntsaninja 8fd308699c Update flake8-rst-docstrings (#8033)
Fixes #8032

Co-authored-by: hauntsaninja <>
2022-06-07 17:33:10 -07:00
Shantanuandhauntsaninja a6924bdcfa Fix CI for Python 3.11 beta 2 (#8005)
Co-authored-by: hauntsaninja <>
2022-06-01 02:28:40 -07:00
Shantanuandhauntsaninja d736bb9d85 caldav: add verify_expand to Calendar.date_search (#7996)
Co-authored-by: hauntsaninja <>
2022-05-30 18:29:19 -07:00
Shantanuandhauntsaninja bf68214245 mypy_primer: report lines truncated (#7993)
Co-authored-by: hauntsaninja <>
2022-05-30 17:04:34 -07:00
Shantanuandhauntsaninja c8f9abf41d threading.Semaphore: add _value (#7952)
I've had occasion to use this multiple times. We already have _value for
asyncio.locks.Semaphore See also
https://github.com/python/cpython/issues/93213

Co-authored-by: hauntsaninja <>
2022-05-25 14:24:09 -07:00
Shantanu 8968eb4fc9 bdb: update for py311 (#7927) 2022-05-23 09:20:48 +02:00
Shantanu ceda368abc shutil: update rmtree for py311 (#7925) 2022-05-22 15:40:06 -07:00
Shantanuandhauntsaninja c0aafb9a34 termios: update for py311 (#7924)
Co-authored-by: hauntsaninja <>
2022-05-22 15:36:50 -07:00
Shantanuandhauntsaninja 5b1ef8b119 mmap: add MADV_FREE on darwin (#7923)
Co-authored-by: hauntsaninja <>
2022-05-22 15:30:09 -07:00
Shantanuandhauntsaninja f2ea124e82 random: explicitly mention int for seed (#7916)
https://github.com/python/typeshed/pull/7906#discussion_r878750404
I felt this better documents how seed is used in practice

Co-authored-by: hauntsaninja <>
2022-05-21 13:00:05 -07:00
Shantanuandhauntsaninja cb45a4387f stubtest: organise allowlists (#7847)
Co-authored-by: hauntsaninja <>
2022-05-16 21:29:39 -07:00
Shantanu b445bb8856 stubtest: test against 3.11 (#7845) 2022-05-16 19:50:30 -07:00
Shantanuandhauntsaninja 05c929d42c stubtest_stdlib: [minor] remove unused code (#7846)
Co-authored-by: hauntsaninja <>
2022-05-16 19:40:46 -07:00
Shantanu a27f15ef0e builtins: reorder overloads (#7828)
This is slightly more friendly for --no-strict-optional (gross)
2022-05-11 01:00:52 -07:00
Shantanuandhauntsaninja 468d8adff1 stubtest_third_party: show package versions on failure (#7826)
Co-authored-by: hauntsaninja <>
2022-05-11 08:08:02 +02:00
Shantanu 75d2f6c881 statistics: improve type for median_grouped (#7825) 2022-05-11 08:06:35 +02:00
Shantanu 550454c9aa beautifulsoup4: small fixes and updates (#7816) 2022-05-10 09:17:40 +02:00
Shantanu 032787d867 builtins: accept old-style iterables to iter (#7817) 2022-05-10 09:06:31 +02:00
Shantanuandhauntsaninja e8b361983f bs4: update to 4.11 (#7785)
Co-authored-by: hauntsaninja <>
2022-05-06 11:54:50 -07:00
Shantanu 4bcb1a95ab Upgrade paramiko (#7766) 2022-05-02 20:52:14 +02:00
ShantanuandAkuli 67425a89d4 hashlib: update for py311 (#7652)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-04-18 21:21:19 +03:00
Shantanu a24ce3f935 dis: update for py311 (#7649) 2022-04-17 20:40:39 +03:00
Shantanuandhauntsaninja b562089d13 ast: add TryStar in py311 (#7646)
Co-authored-by: hauntsaninja <>
2022-04-16 22:13:21 -07:00
Shantanuandhauntsaninja 556fe3e4ef weakref: use positional-only args (#7653)
Co-authored-by: hauntsaninja <>
2022-04-16 22:10:39 -07:00
Shantanu 435f758019 sqlite3: add py311 constants (#7654)
bpo-24139
2022-04-16 22:08:42 -07:00
Shantanu 145a85307a random: update for py311 (#7651) 2022-04-17 01:01:36 +01:00
Shantanu 520f807b5f builtins: default values for int.(to|from)_bytes in py311 (#7647)
See https://github.com/python/cpython/issues/89318
2022-04-17 00:57:13 +01:00
Shantanu c93f92d92e builtins: add BaseExceptionGroup.__class_getitem__ (#7648) 2022-04-17 00:48:46 +01:00
Shantanu e90a551ceb Unpin Python micro versions (#7621)
Fixes #7620
2022-04-13 18:47:17 -07:00
Shantanu 0af746d048 mypy_primer: mention if output is truncated (#7525) 2022-03-21 23:41:31 +01:00
Shantanu 9c737f1326 Re-enable stubtest on SQLAlchemy (#7456) 2022-03-09 07:34:12 +01:00
Shantanuandhauntsaninja 9796b9ed69 Improve open overloads when mode is a literal union (#7428)
As pointed out by @gvanrossum in https://github.com/python/typing/issues/1096

Improves type inference in cases when we know that mode is
OpenBinaryMode, but don't know anything more specific:
```
def my_open(name: str, write: bool):
    mode: Literal['rb', 'wb'] = 'wb' if write else 'rb'
    with open(name, mode) as f:
        reveal_type(f)  # previously typing.IO[Any], now typing.BinaryIO
```

You may be tempted into thinking this is some limitation of type
checkers. mypy does in fact have logic for detecting if we match
multiple overloads and union-ing up the return types of matched
overloads. The problem is the last overload interferes with this logic.
That is, if you remove the fallback overload (prior to this PR), you'd get
"Union[io.BufferedReader, io.BufferedWriter]" in the above example.

Co-authored-by: hauntsaninja <>
2022-03-06 15:45:34 -08:00
Shantanuandhauntsaninja 6cdecae6f9 Rename Github workflow (#7445)
Calling this "stubtest.yml" is a little confusing, since most of the
time stubtest is actually run out of "tests.yml". I renamed the workflow
in #7306 and this gets the filename to match.

Co-authored-by: hauntsaninja <>
2022-03-06 15:24:18 -08:00
Shantanu 77e5a2d468 Upgrade to stubtest with dunder pos only reverted (#7442) 2022-03-05 18:38:08 -08:00
Shantanuandhauntsaninja a5ec3c69b2 bs4: expose several other classes (#7420)
On the same lines as #7419

These are all imports that are not used within bs4/__init__.py
My main interest here is in exposing NavigableString

Co-authored-by: hauntsaninja <>
2022-03-01 17:59:11 -08:00