Alex Waygood
d91e5f0eff
Further enhance check_consistent.py ( #8604 )
2022-08-26 07:50:26 -07:00
Alex Waygood
8cf125d80d
flake8 config: fix typo ( #8626 )
...
Accidentally introduced in #8612
2022-08-26 11:55:47 +01:00
Shantanu
93ee41bcd9
typing: add _type_repr ( #8624 )
2022-08-26 12:15:11 +02:00
github-actions[bot]
6114fb54c0
[stubsabot] Bump tree-sitter-languages to 1.4.* ( #8623 )
2022-08-26 10:23:59 +01:00
Nipunn Koorapati
7beaebff40
Bump to mypy-protobuf 3.3.0 ( #8612 )
...
* Bump to mypy-protobuf 3.3.0
* Remove some ignores for formatting
2022-08-26 07:24:11 +01:00
Arnav Singh
712b265a16
Fix os.{,p}{read,write}v to take Sequence of ReadableBuffer / WriteableBuffer ( #8617 )
...
Fixes #8615
Fixes #8616
2022-08-25 21:50:01 -07:00
github-actions[bot]
ef25fc6c9b
[stubsabot] Bump jsonschema to 4.14.* ( #8619 )
2022-08-25 19:36:01 -07:00
github-actions[bot]
e93af9b333
[stubsabot] Bump setuptools to 65.3.* ( #8620 )
2022-08-25 19:34:32 -07:00
github-actions[bot]
d6eb817b31
[stubsabot] Bump flake8-bugbear to 22.8.23 ( #8622 )
2022-08-25 19:33:22 -07:00
Shantanu
c91dfdeb2b
Fix stubsabot action ( #8618 )
...
Broken by #8605 and the issue creation code was always broken
2022-08-25 17:28:59 -07:00
junkmd
179228370a
Add win32-specific constants to _ctypes ( #8614 )
2022-08-25 16:22:06 +01:00
Stephen Rosen
2c534dc220
Improve annotation of jsonschema.validators.create ( #8608 )
2022-08-25 15:25:15 +02:00
Nipunn Koorapati
c17c0d5607
Bump protobuf to 3.20.1 ( #8609 )
...
There are even newer versions available (4.*), but I had found a bug
in it which prevented it from working with mypy-protobuf. For now,
sticking to just 3.20.1
2022-08-25 13:28:08 +01:00
Alex Waygood
1c56148ce9
mypy_test.py: Remove --dry-run option (#8611 )
...
Cf #8139 .
2022-08-25 14:23:00 +02:00
Nipunn Koorapati
c697a51378
Support tests/mypy_test.py [package] ( #8610 )
...
Currently, the testsuite early exits if it's filtering on a single
package. With this change, it will correctly complete.
For example `tests/mypy_test.py protobuf`
2022-08-25 12:25:26 +01:00
Alex Waygood
0f1d1f16b4
isort: don't skip stdlib/venv ( #8607 )
2022-08-24 15:48:27 -07:00
Alex Waygood
15f74295d2
Add aiohttp and tomlkit to requirements-tests.txt ( #8605 )
2022-08-24 23:08:54 +01:00
Liam Damewood
3ab3711f42
tqdm: All leave arguments can be None ( #8603 )
...
All `leave` arguments are optional in tqdm.
2022-08-24 12:30:29 +02:00
Shantanu
49062f53c3
Improve check_consistent ( #8581 )
...
- Use pathlib for convenience
- Share more logic between check_stubs and check_stdlib
- Better recursive checking, e.g. if a README.md is in the wrong place
- Fixes bug in checking directories in stubs/
- Test distribution names are valid
- Errors now contain full paths
- I believe pathlib normalises separators, but someone with Windows
might want to double check this continues to work
2022-08-23 23:18:07 -07:00
Aron Bierbaum
ef6bacab92
Update ForwardRef._evaluate for Python 3.11 ( #8600 )
...
recursive_guard argument was added in https://github.com/python/cpython/pull/21553
2022-08-23 18:05:55 -07:00
Nikita Sobolev
fed419b8f1
Add CTYPES_MAX_ARGCOUNT to _ctypes ( #8601 )
2022-08-23 14:52:16 -07:00
junkmd
2066b9533c
_ctypes: add stubs ( #8582 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com >
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com >
2022-08-23 12:22:12 -07:00
Alex Waygood
1e33759f09
cryptography: Add some missing @abstractmethod decorators (#8598 )
2022-08-23 11:38:08 -07:00
Alex Waygood
e160324ba7
six: Fix incorrect type[type[Any]] annotation (#8599 )
...
Mypy will (correctly, I think) start flagging `type[type[Any]]` as an illegal annotation when mypy 0.980 comes out. Let's fix it now, before it comes out.
2022-08-23 11:26:10 -07:00
Ganden Schaffner
9469c1c7ea
Make AsyncExitStack.push_async_exit support __aexit__s returning Awaitable[None] ( #8596 )
...
Make push_async_exit support __aexit__'s returning Awaitable[None]
2022-08-23 14:28:37 +01:00
Alex Waygood
875f0ca7fc
mypy_test.py: Move type-checking of our tests and scripts into a different test (#8587 )
2022-08-22 17:16:03 +01:00
Akuli
5ea1b1e6de
Add types to tkinter.colorchooser.askcolor ( #8588 )
2022-08-22 18:15:37 +02:00
Alex Waygood
976fdae300
xml stubs: Any -> Incomplete (#8576 )
2022-08-22 16:42:37 +01:00
Kevin Kirsche
269c07589a
Add more annotations to xml.dom.minidom and xml.sax.handler ( #8590 )
2022-08-22 16:20:34 +01:00
Nikita Sobolev
57495ddaf4
Update redis/cluster.pyi ( #8593 )
2022-08-22 16:09:01 +02:00
Nikita Sobolev
383eca299b
redis: Do not override AbstractRedis.RESPONSE_CALLBACKS (#8592 )
2022-08-22 14:51:51 +01:00
kasium
cb15481633
Flask-SQLAlchemy: session should be scoped_session, not Session (#8589 )
2022-08-22 13:30:33 +01:00
Alex Waygood
c2966bc5ed
multiprocessing.reduction: Any -> Incomplete (#8585 )
2022-08-21 17:43:55 -07:00
Oleh Prypin
d08e8baef7
Markdown: BlockProcessor.detab returns a pair of strings (#8586 )
2022-08-21 19:59:41 +01:00
David Robertson
836d680f16
cgi.FieldStorage: headers can be email.message.Message (#8584 )
2022-08-21 17:04:54 +01:00
Nikita Sobolev
e17ca47782
Further improve redis.cluster ( #8578 )
2022-08-21 17:00:53 +01:00
Joel
8715951fca
Improve return type for psycopg2 connect function ( #8567 )
...
When a `connection_factory` argument is provided to psycopg2's `connect` function, the function's return type now matches that of the factory output class. However, if `cursor_factory` is set and has a non-`None` value and/or `connection_factory` is not set or is `None`, the return type is simply `connection`, as before.
2022-08-20 16:34:13 -07:00
Shantanu
19beaba9e7
Disallow adding stubs for types- packages ( #8579 )
...
This would lead to confusion. The types prefix is special cased in
various ways in stub_uploader
2022-08-20 15:44:17 -07:00
Alex Waygood
9f05e9ff58
Improve classes returned from OrderedDict.{keys(), items(), values()} ( #8552 )
2022-08-20 22:21:39 +01:00
Alex Waygood
38bc0ec0e6
mypy_test.py: simplify argument parsing (#8577 )
2022-08-20 21:32:17 +01:00
Kevin Kirsche
fb62ccabf5
Add missing annotations for xml.dom.minidom.DOMImplementation ( #8556 )
...
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-08-20 20:33:40 +01:00
Nikita Sobolev
c6d34cc24d
Improve redis.cluster types ( #8573 )
...
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-08-20 18:46:09 +01:00
Alex Waygood
c4ca110c5c
README: Add a link to https://typing.readthedocs.io ( #8575 )
2022-08-20 09:40:57 -07:00
forana
0d47b49840
Flask-SQLAlchemy: type session as Session (#8550 )
2022-08-20 16:25:17 +01:00
Deon Pearson
d0d24b7301
redis: correct set command parameter types (#8536 )
2022-08-20 16:21:39 +01:00
Kevin Kirsche
b26c31a23c
Update sys.exit and SystemExit.code to have the same types ( #8554 )
2022-08-20 10:59:38 +01:00
Ethan Smith
5435ed76ef
sysconfig.get_config_var should return Any ( #8572 )
...
This can return str, int, None... and maybe more. In the interest of being defensive, have it return Any.
2022-08-19 21:29:47 -07:00
Alex Waygood
8a326dc9ec
Remove NoReturn overloads from pow() ( #8568 )
2022-08-19 11:15:07 -07:00
David Robertson
0428069fab
argparse: type subparser helper's add_parser ( #8558 )
2022-08-19 19:51:19 +03:00
Kevin Kirsche
308291033f
xml: add missing xml.dom.minidom.*.nodeType type ( #8557 )
2022-08-18 19:56:55 -07:00