Commit Graph

7196 Commits

Author SHA1 Message Date
Avasam
cfed3e1113 Cache pip downloads in CI (#9192) 2022-11-15 00:57:20 +00:00
github-actions[bot]
dc072ea937 [stubsabot] Bump simplejson to 3.18.* (#9198)
Release: https://pypi.org/pypi/simplejson/3.18.0
Homepage: https://github.com/simplejson/simplejson
Diff: https://github.com/simplejson/simplejson/compare/v3.17.6...v3.18.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 3 files included in typeshed's stubs have been modified or renamed: `simplejson/__init__.py`, `simplejson/decoder.py`, `simplejson/encoder.py`.
 - Total lines of Python code added: 63.
 - Total lines of Python code deleted: 25.

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 <>
2022-11-15 00:26:37 +00:00
Alex Waygood
263427f438 Bump test dependencies; improve pycln config (#9197) 2022-11-14 11:58:45 -08:00
Nikita Sobolev
66edd05cf3 Cancel old daily CI jobs on PRs (#9196) 2022-11-14 15:47:53 +00:00
Steve Dignam
1733c46058 stripe: fix test clocks imports (#9137) 2022-11-14 12:44:31 +01:00
Avasam
ede6387510 Comments explaining why keyboard and tzlocal are not run on multiple platforms (#9188) 2022-11-14 11:42:17 +01:00
Nikita Sobolev
e8111ea017 DecimalTuple can have string exponent (#9194) 2022-11-14 11:09:16 +01:00
Nikita Sobolev
0bd4e3ce1a ip_interface can have tuple arguments (#9195) 2022-11-14 11:02:56 +01:00
kasium
f9cd5ee859 Improve ast types; revert several "redundant numeric union" changes from #7906 (#9130)
* Adapt number types in ast

Since mypy  0.990 type promotions was limited.
This means that complex is not longer promoted to int/float, therefore
we should adapt the types to list all possible types

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-11-14 09:41:23 +00:00
Jonah Lawrence
892bc0283a Improvements to existing Babel types (#9190) 2022-11-13 12:51:54 -08:00
Anh71me
39d37ec54c types: add __getitem__ on GenericAlias (#9172)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-11-13 06:45:56 -08:00
Avasam
033d21e775 Complete stubtest for aiofiles + fix on Windows (#9184) 2022-11-13 06:45:20 -08:00
Avasam
82c0ea7bd5 Run stubtest on Windows for waitress (#9181) 2022-11-13 06:42:20 -08:00
Nikita Sobolev
005801d34d Mark ttkthemes as complete (#9186) 2022-11-13 11:12:48 +00:00
Nikita Sobolev
d3b63b88d3 Mark toml as complete (#9185) 2022-11-13 11:11:47 +00:00
github-actions[bot]
1aab9d136a [stubsabot] Bump SQLAlchemy to 1.4.44 (#9182)
Release: https://pypi.org/pypi/SQLAlchemy/1.4.44
Homepage: https://www.sqlalchemy.org

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 <>
2022-11-12 16:36:15 -08:00
Avasam
75a74ffb6c Run stubtest for psutil on all platforms (#9169) 2022-11-12 16:35:14 -08:00
Avasam
c0f96e1ab6 Explain why vobject is not tested on Windows (#9175)
Specify vobject.win32tz is broken on Windows
2022-11-12 16:23:26 -08:00
Avasam
24277cedf4 Run stubtest on windows for colorama (#9168) 2022-11-12 16:14:15 -08:00
Akuli
02f2bc30e7 Make peewee stubs compatible with peewee 3.15.4 (#9176) 2022-11-12 16:12:55 -08:00
Avasam
7fc9b8e2c8 cffi: run stubtest on Windows (#9178) 2022-11-12 23:56:43 +00:00
Avasam
f033e61ae2 Make the ldap3 stubs platform-agnostic (#9180) 2022-11-12 23:53:55 +00:00
Avasam
1724fb3e25 Fix paramiko stubtest on Windows (#9179) 2022-11-12 23:52:34 +00:00
Avasam
4bad015bbb Remove setuptools._distutils.command.bdst_msi (#9174)
It does not exist
2022-11-12 18:30:56 +00:00
Avasam
14a43b8015 Fix usage of byte2int with bytes (#9152) 2022-11-12 10:56:04 +00:00
Jonah Lawrence
17d6b97c72 Add more type annotations for Babel (#9125)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-11-11 18:29:21 -08:00
Nikita Sobolev
bc6d91a58e Bump paramiko to 2.12.* (#9163)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-11-11 15:30:11 -08:00
Ben Blank
f5459640f8 Add None as a valid type in SAXParseException's second argument (#9162)
Closes #9161
2022-11-11 12:18:22 -08:00
Nikita Sobolev
70c4af4b73 Refactor round and add tests (#9151)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-11-11 18:19:51 +00:00
Nikita Sobolev
9f80dbd3db Do not run stubtest_third_party on requirements change (#9160)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-11-11 18:16:00 +00:00
Nikita Sobolev
dbac458bd5 Fix CI failure when no third-party stubs were updated (#9159) 2022-11-11 07:09:35 -08:00
Nikita Sobolev
9cd9f6f6e0 Add the ability to run third-party stubtest on Windows or MacOS when needed (#8923)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-11-11 13:40:50 +00:00
Nikita Sobolev
0f33721c52 Remove sqlite3/dbapi2.pyi from pyright excludelist (#9148) 2022-11-11 12:00:19 +00:00
github-actions[bot]
bc0fc1bfc0 [stubsabot] Bump aws-xray-sdk to 2.11.* (#9156)
Release: https://pypi.org/pypi/aws-xray-sdk/2.11.0
Homepage: https://github.com/aws/aws-xray-sdk-python
Diff: https://github.com/aws/aws-xray-sdk-python/compare/2.10.0...2.11.0

Stubsabot analysis of the diff between the two releases:
 - 7 public Python files have been added: `aws_xray_sdk/core/utils/sqs_message_helper.py`, `aws_xray_sdk/ext/httpx/__init__.py`, `aws_xray_sdk/ext/httpx/patch.py`, `tests/ext/httpx/__init__.py`, `tests/ext/httpx/test_httpx.py`, `tests/ext/httpx/test_httpx_async.py`, `tests/test_sqs_message_helper.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 7 files included in typeshed's stubs have been modified or renamed: `aws_xray_sdk/core/async_recorder.py`, `aws_xray_sdk/core/lambda_launcher.py`, `aws_xray_sdk/core/models/dummy_entities.py`, `aws_xray_sdk/core/models/entity.py`, `aws_xray_sdk/core/patcher.py`, `aws_xray_sdk/core/recorder.py`, `aws_xray_sdk/version.py`.
 - Total lines of Python code added: 858.
 - Total lines of Python code deleted: 56.
2022-11-11 11:19:16 +00:00
Nikita Sobolev
0baadae0c9 urllib.parse: improve bytes handling (#9103) 2022-11-10 20:47:57 -08:00
Jelle Zijlstra
ec4ec33639 xml: improve bytes types (#9110)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-11-10 20:43:26 -08:00
Ted Conbeer
294b03f75b tqdm: allow disable=None in tqdm.__init__ (#9154) 2022-11-10 13:45:28 -08:00
Samuel T
19169c1646 Update pywin32 to 305 (#9153) 2022-11-10 12:30:53 -08:00
Jelle Zijlstra
8b59dfd10b termios: improve comments, add more constants (#9101) 2022-11-10 17:44:52 +00:00
Jelle Zijlstra
c7820b401d socket: constructor accepts bytes on Windows (#9095)
d04899abb0/Modules/socketmodule.c (L5318)

This is used in `socket.fromshare`. It must be bytes, not some other buffer.
2022-11-10 15:10:44 +00:00
Alex Waygood
cc7ac01a3e Stubtest: Don't allowlist termios and posix constants on Windows (#9150) 2022-11-10 07:02:53 -08:00
Nikita Sobolev
f8dd877e48 Improve math.{ceil,floor,trunc} (#9141)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-11-10 14:45:07 +00:00
Anh71me
cc66167c38 inspect: use Literal type for Attribute.kind (#9149) 2022-11-10 14:15:36 +00:00
Nikita Sobolev
805519717b regr_test.py: fix typo in --help (#9147)
It used to be:

```
  -p [{3.11,3.10,3.9,3.8,3.7} ...], --python-version [{3.11,3.10,3.9,3.8,3.7} ...]
                        Run mypy for certain Python versions (defaults to
                        sys.version_info[:2])Note that this cannot be specified if
                        --all is also specified.
```
2022-11-10 13:32:22 +00:00
Alex Waygood
068b0b488a Improve builtins.vars() (#9146) 2022-11-10 12:14:05 +01:00
Samuel T
796bdc2eb0 Improve accuracy of six byte index methods (#9117) 2022-11-09 19:22:33 -08:00
Samuel T
0ac98f6b80 Update pywin32 to mypy 0.990 (#9124) 2022-11-09 19:20:56 -08:00
Nikita Sobolev
a74acc8225 urllib.response: improve bytes handling (#9142) 2022-11-09 18:21:13 -08:00
Nikita Sobolev
7b3fff714a Do not run create-issue-on-failure on PRs (#9140) 2022-11-09 15:02:50 +00:00
Nikita Sobolev
04ae11cdd0 All __nonzero__ are methods that return bool (#9139) 2022-11-09 14:53:42 +00:00