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
Nikita Sobolev
cb5ed3c5fb
Run stubtest on all third party stubs if requirements.txt is changed ( #9132 )
2022-11-09 14:30:56 +00:00
Jelle Zijlstra
afa2a8e3dd
mailbox: improve bytes handling ( #9083 )
...
- The _MessageData alias refers to objects handled in the
_dump_message method: 016c7d37b6/Lib/mailbox.py (L210)
- The path passed to __init__ should be a str path because there are
many places in the file (search for self._path) where we join it
with a str, which won't work with a bytes path.
2022-11-08 21:50:51 +00:00
Kevin Murphy
0884fe13d4
PyYAML: Permit width: float for pure-Python dump(...) ( #8973 )
...
* PyYAML: Permit `width: float` for pure-Python `dump(...)`
To prevent `PyYAML` from wrapping *any* lines, it's possible to pass
`width=float("inf")`, but the current type hints don't like that. This
works at runtime:
>>> s = yaml.dump({"foo": "bar" * 1000}, width=float("inf"))
>>> print(s)
foo: barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar...
but `mypy` says
floatwidth.py:2: error: No overload variant of "dump" matches argument types "Dict[str, str]", "float"
floatwidth.py:2: note: Possible overload variants:
floatwidth.py:2: note: def dump(data: Any, stream: _WriteStream[Any], Dumper: Any = ..., *, default_style: Optional[str] = ..., default_flow_style: Optional[bool] = ..., canonical: Optional[bool] = ..., indent: Optional[int] = ..., width: Optional[int] = ..., allow_unicode: Optional[bool] = ..., line_break: Optional[str] = ..., encoding: Optional[str] = ..., explicit_start: Optional[bool] = ..., explicit_end: Optional[bool] = ..., version: Optional[Tuple[int, int]] = ..., tags: Optional[Mapping[str, str]] = ..., sort_keys: bool = ...) -> None
floatwidth.py:2: note: def dump(data: Any, stream: None = ..., Dumper: Any = ..., *, default_style: Optional[str] = ..., default_flow_style: Optional[bool] = ..., canonical: Optional[bool] = ..., indent: Optional[int] = ..., width: Optional[int] = ..., allow_unicode: Optional[bool] = ..., line_break: Optional[str] = ..., encoding: Optional[str] = ..., explicit_start: Optional[bool] = ..., explicit_end: Optional[bool] = ..., version: Optional[Tuple[int, int]] = ..., tags: Optional[Mapping[str, str]] = ..., sort_keys: bool = ...) -> Any
Found 1 error in 1 file (checked 1 source file)
Poking through the `PyYAML` source, it looks the `width` parameter
could probably be anything "comparable", as it's only compared via
the `<` operator[1].
For the LibYAML implementation, however, we have to use `int`s:
>>> stream = StringIO()
>>> dumper = yaml.CDumper(stream, width=float("inf"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/yaml/cyaml.py", line 81, in __init__
version=version, tags=tags)
File "ext/_yaml.pyx", line 973, in _yaml.CEmitter.__init__ (ext/_yaml.c:14797)
OverflowError: cannot convert float infinity to integer
2022-11-08 21:23:47 +00:00
Nikita Sobolev
62a6c3d616
Annotate known magic-method return types ( #9131 )
2022-11-08 18:28:42 +00:00
Nikita Sobolev
c0e9038f0d
Fix and allow classes with missing metaclasses ( #9136 )
2022-11-08 18:13:59 +00:00
anthony sottile
b13f8e37a3
add default for simplejson.JSONEncoder.iterencode ( #9135 )
...
4364525222/simplejson/encoder.py (L304)
2022-11-08 17:30:05 +00:00
Alex Waygood
739460291b
Use recursive type aliases in builtins and _typeshed ( #9134 )
2022-11-08 17:04:09 +00:00
Alex Waygood
efa1048d42
stubsabot: warn if stubtest is skipped in CI (for real this time) ( #9133 )
...
Fixes a bug in #8681 . The logic currently is broken; there should have been a warning message in the PR body for #9118 , but there wasn't.
2022-11-08 08:33:17 -08:00
Alex Waygood
4f381af4c5
Upgrade mypy to 0.990 ( #9123 )
2022-11-07 11:20:47 -08:00
Nikita Sobolev
94dc53ee90
Mark typed_ast as completed ( #9121 )
2022-11-07 18:34:23 +00:00
Nikita Sobolev
11be6effd3
Mark vobject as complete ( #9120 )
2022-11-07 14:24:18 +00:00
Jelle Zijlstra
68924e00e5
os: improve bytes handling ( #9072 )
2022-11-06 21:32:46 -08:00