Alex Waygood and GitHub
a62fd92fb0
Improve some in-place BinOp methods ( #7149 )
2022-02-06 15:36:57 -08:00
62e33cbbd5
Add stubs for chevron package ( #7139 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-02-05 21:38:19 +02:00
ebcdcfa24e
Makes DESCRIPTOR non nullable again ( #7125 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2022-02-04 22:05:58 +02:00
Roman Joost and GitHub
fc60d02c3e
Fix mistyped get_by_id class methods ( #7120 )
...
The types for these class methods were mixed up. The async method
returned an optional `Model`, while the synchronous method returned a
`Future`. It's the other way around.
Fixes #7103
2022-02-02 15:59:02 -08:00
Alex Waygood and GitHub
26e8959279
Use _typeshed.Self in docutils.VersionInfo and os.sched_param ( #7117 )
2022-02-02 23:30:39 +01:00
Alex Waygood and GitHub
15d76b072a
Improve classmethods in paramiko stubs ( #7113 )
2022-02-02 22:15:26 +01:00
Alex Waygood and GitHub
b4e97a1909
Improve __enter__ & constructor methods ( #7114 )
2022-02-02 22:14:59 +01:00
klaerik and GitHub
b327f64d9a
Add iterable and ServerPool types to ldap3 Connection.server parameter ( #7101 )
2022-02-02 18:59:53 +01:00
Nipunn Koorapati and GitHub
90f5422df7
Add/fix types to a bunch of non-generated protobuf files ( #7017 )
2022-02-02 12:30:39 +01:00
Rajiv Bakulesh Shah and GitHub
beac964588
Redis: Annotate .lolwut() ( #7104 )
2022-02-02 11:18:11 +01:00
UncleOwen and GitHub
8631ed9e57
requests.Session: Accept hooks and lists of hooks ( #7094 )
2022-01-31 11:29:05 +01:00
Sebastian Rittau and GitHub
cb3c1bb638
Replace IO with protocols ( #7092 )
2022-01-31 11:39:56 +02:00
Rajiv Bakulesh Shah and GitHub
064317a72e
Redis: Annotate .pttl(), .dump(), and .getdel() ( #7091 )
2022-01-31 08:30:46 +01:00
Shantanu and GitHub
b88a6f19cd
Upgrade black version ( #7089 )
2022-01-30 16:27:06 -08:00
45a2dad83c
Reduce use of Any in equality methods ( #7081 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-01-30 00:59:00 +02:00
lovetox and GitHub
9aeecb4c35
pyOpenSSL: Adapt to changes in 22.0.0 ( #7080 )
2022-01-30 00:05:59 +02:00
Nipunn Koorapati and GitHub
470ea31ccd
Use relax_strict_optional_primitives on protobuf generated code ( #7038 )
...
Per the suggestion in https://github.com/dropbox/mypy-protobuf/issues/344
This generates more permissive constructors (which protobuf itself actually
accepts).
Philosophically, I think it makes sense for the generated code hosted on
typeshed to be most permissive, while the generated code of individual
projects can make individual decisions (defaulting to less permissive).
2022-01-28 17:37:57 -08:00
Andrew Soutar and GitHub
220a8d1be9
Add __enter__/__exit__ to pymysql.Connection ( #7069 )
2022-01-28 19:57:21 +01:00
Sebastian Rittau and GitHub
4390b88986
Update redis stubs for 4.1.2 ( #7064 )
2022-01-28 11:30:23 +02:00
Martin Fischer and GitHub
40f5fcc82f
Add babel.core.get_global ( #7063 )
2022-01-28 08:46:24 +01:00
Alex Waygood and GitHub
dbb5488b31
Do not use True or False as default values in assignments ( #7060 )
2022-01-27 13:51:36 -08:00
Alex Waygood and GitHub
2d8decd237
Backport many ParamSpec-related changes to Python 2 ( #7054 )
2022-01-27 07:57:26 -08:00
Alex Waygood and GitHub
5b39d07cd9
Add ParamSpec to decorator.contextmanager ( #7051 )
...
There may be other places in this package where `ParamSpec` could be used, but this one is the most clear-cut.
2022-01-27 07:35:19 -08:00
Alex Waygood and GitHub
e01fc81497
Improve contextvars.Context ( #7052 )
...
Similar changes to the ones @sobolevn made in #6942
2022-01-27 07:33:53 -08:00
c2182fdd3e
Treat validators as classes ( #7035 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-01-25 07:43:40 -08:00
b8bea1b2c9
Improve trait signature in mypy_extensions.pyi ( #7027 )
...
Co-authored-by: Mehdi Drissi <mdrissi@snapchat.com >
2022-01-25 11:03:54 +01:00
kasium and GitHub
7bc9c1625e
Fix missing return type in pep8ext_naming ( #7031 )
2022-01-25 09:21:41 +01:00
kasium and GitHub
54a37d10b1
Add stubs for flake8_rst_docstrings ( #7029 )
2022-01-25 09:20:15 +01:00
kasium and GitHub
0238956f90
Add stubs for pep8-naming ( #7030 )
2022-01-25 08:39:16 +01:00
Sebastian Rittau and GitHub
fabd842857
Annotate parts of jsonschema.validators and URIDict ( #7025 )
2022-01-24 16:42:29 +01:00
Nipunn Koorapati and GitHub
35064a7f75
Bump to mypy-protobuf 3.2.0 ( #7013 )
2022-01-23 14:49:33 -08:00
Jelle Zijlstra and GitHub
3d28f0981f
bs4: Expose bs4.SoupStrainer and bs4.Tag ( #7002 )
2022-01-23 19:11:38 +02:00
Jelle Zijlstra and GitHub
de5ec6a0d1
fix incorrect tuple[T] ( #6996 )
...
Found from PyCQA/flake8-pyi#135 .
2022-01-22 09:37:14 -08:00
Alex Waygood and GitHub
049a260acb
Use class-based syntax for TypedDict in Flask-Cors/flask_cors/core.pyi ( #6995 )
...
Refs https://github.com/PyCQA/flake8-pyi/pull/133
2022-01-22 08:46:15 -08:00
kasium and GitHub
57a854652a
Add missing default values to flask-cors cross_origin ( #6994 )
2022-01-22 08:10:23 -08:00
kasium and GitHub
6a273231f5
Add __getattr__ to flask-sqlalchemy ( #6993 )
...
The SQLAlchemy class exposes dynamically classes of SQLAlchemy. The exact classes depend on used SQLAlchemy version.
2022-01-22 08:10:10 -08:00
kasium and GitHub
30133bb2fb
Add stubs for flask-cors ( #6939 )
2022-01-22 07:14:55 -08:00
kasium and GitHub
2bf7458091
Add stubs for invoke ( #6938 )
2022-01-21 20:44:26 -08:00
Sebastian Rittau and GitHub
46159aeca3
Update SQLAlchemy stubs for 1.4.31 ( #6990 )
2022-01-21 18:10:25 -08:00
9b5011759f
Add missing context manager stub for JACK Client ( #6982 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2022-01-21 16:57:31 -08:00
kasium and GitHub
3a22bf2411
Add stubs for Flask-SQLAlchemy ( #6946 )
2022-01-20 13:10:26 -08:00
Alex Waygood and GitHub
76af72831a
Use the Literal["foo", "bar"] syntax consistently ( #6984 )
2022-01-20 20:16:04 +02:00
Sebastian Rittau and GitHub
fb6c9621d6
Update SQLAlchemy stubs for 1.4.30 ( #6973 )
2022-01-20 12:34:02 +02:00
Alex Waygood and GitHub
aea52b35d1
Remove nearly all __str__ and __repr__ methods from typeshed ( #6968 )
2022-01-20 00:45:11 +01:00
Sebastian Rittau and GitHub
5bf672ce42
Update redis stubs to 4.1.1 ( #6960 )
...
Closes : #6951
2022-01-19 07:05:15 -08:00
Jelle Zijlstra and GitHub
a0d748de2f
Revert "Temporarily fix redis version to 4.1.0" ( #6957 )
...
This reverts commit 7d2de33bba .
2022-01-18 15:09:19 -08:00
Alex Waygood and GitHub
90d92aa0a5
Use _typeshed.Self in protobuf/google/protobuf/message.pyi ( #6955 )
2022-01-18 12:54:09 -08:00
Alex Waygood and GitHub
cd93461225
Use PEP 585 syntax in @python2/_ast, convert more TypeVars to _typeshed.Self, & # noqa a SQLAlchemy line ( #6954 )
...
* Manual fixes for `_ast` and `SQLAlchemy`
* Change more `TypeVar`s to `Self`, using script
2022-01-18 11:15:34 -08:00
Alex Waygood and GitHub
8af5e0d340
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible ( #6949 )
2022-01-18 07:14:03 -08:00
Nipunn Koorapati and GitHub
aa885ecd65
Flatten stubtest_allowlist for protobuf generated files ( #6944 )
...
I added stubtest testing for generated files within mypy-protobuf.
There are many ways in which the protobuf code is doing *weird*
things and we want the stubs to look a bit different. They're enumerated
in the `stubtest_allowlist.txt` of mypy-protobuf, so squashing them here
so that this one can focus on the non-generated files.
2022-01-18 06:58:48 -08:00