Commit Graph

376 Commits

Author SHA1 Message Date
kasium
20df1808bf Fix minor issues in opentracing (#6482) 2021-12-03 07:24:58 -08:00
kasium
2d07556e09 Add stubs for flake8-builtins (#6483) 2021-12-03 14:44:49 +01:00
kasium
7a24e71a9b Add stubs for flake8-simplify (#6480) 2021-12-03 13:25:29 +01:00
kasium
9dc75772d3 Annotate remaining opentracing fields, arguments, and return types (#6476) 2021-12-03 11:41:49 +01:00
kasium
906d5f1faf Add opentracing stubs (#6473) 2021-12-02 20:55:35 +01:00
Daniel Foerster
506be4fb0a Fix psycopg2 connection.cursor() stub (#6470)
Adds `scrollable=` argument missing since psycopg2 2.5 and prevents `Any` from being hinted when `cursor_factory=` is passed.
2021-12-02 17:50:25 +01:00
Sebastian Rittau
8542b3518a Remove stubs for pallets projects (#6465)
All pallets projects (Flask, Werkzeug, Jinja, Click, ItsDangerous, and
MarkupSafe) have now shipped their own stubs since May 2021. The
maintainer requested removal back then.

Closes: #5423
2021-12-01 09:34:34 -08:00
Akuli
4631b74919 Fix various issues in redis.client (#6464) 2021-12-01 17:09:48 +01:00
Akuli
deaa764915 redis: fix several stubtest warnings (#6378)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2021-12-01 12:00:07 +02:00
Joachim Jablon
e96dde7618 psycopg2: use Error and Warning from _psycopg.pyi in errors.pyi (#6454) 2021-11-30 15:26:50 +02:00
Shantanu
c47ed98b3e dummy_thread/ing: remove in 3.9 (#6408)
https://bugs.python.org/issue37312
2021-11-27 20:50:14 -08:00
Alex Waygood
98af7d667f Improve stubs for sequence types (#6386) 2021-11-26 19:09:38 -08:00
Akuli
a5bc1e037f Add mypy error codes to '# type: ignore' comments (#6379) 2021-11-26 07:07:56 +01:00
Sebastian Rittau
ab026bfecb Update redis stubs to version 4 (#6368) 2021-11-25 11:05:32 +02:00
Alex Waygood
c685c2d6c6 Reduce use of deprecated typing aliases (#6358) 2021-11-23 10:56:43 +01:00
Joachim Jablon
7e836db2f3 Move abstract methods to AbstractConnectionPool (#6340) 2021-11-23 09:40:45 +01:00
Sebastian Rittau
6708ffae14 Add tz{utc,offset}.fromutc() (#6360) 2021-11-23 00:33:40 -08:00
Sebastian Rittau
5b668419ae Fix MutableMapping overrides (#6352) 2021-11-21 07:04:40 -08:00
Akuli
0cd1135219 Revert "do not use mypy-specific syntax in '# type: ignore' comments" (#6338) 2021-11-18 20:13:07 +02:00
Diego Argueta
2f0969cd8d Add prefetch argument to paramiko SFTPClient.getfo (#6331)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-11-17 21:31:22 -08:00
Sebastian Rittau
9c2be9500a Add hilite(shebang) argument and return type (#6316) 2021-11-16 09:17:08 -08:00
Sebastian Rittau
1b0e268102 Improve fpdf.image_parsing (#6313)
* Annotate more attributes, arguments, and return types.
* Add "dims" argument to get_img_info(), added in 2.4.6.
2021-11-16 17:35:08 +01:00
Steve Dignam
49e5b528dc Add more type hints for pyyaml (#6265) 2021-11-12 12:23:58 +01:00
Stéphane Brunner
9c9853967d Redis Sentinel master_for, slave_for returns a Redis client (#6269) 2021-11-12 12:23:12 +01:00
Shantanu
bf92378722 Bump typed-ast version, recommend Python 3.8 for tests (#6278) 2021-11-12 02:53:42 -08:00
Sebastian Rittau
f2551376ae Add stubs for fpdf2 (#6252) 2021-11-10 19:06:26 +02:00
Maximilian Hils
ab25042efa Add pyOpenSSL 21 constants (#6273) 2021-11-10 07:59:42 +01:00
Sebastian Rittau
2679ed1c07 Add some kwonly arguments to Session.send() (#6266)
Bump version to 2.26
2021-11-09 17:23:48 -08:00
Bob Thomas
a0c0435e95 Add markdown.blockprocessors.ReferenceProcessor (#6270) 2021-11-09 18:47:25 +02:00
Jelle Zijlstra
98e5112195 Improve pymysql.converters stubs (#6267)
I spent far too much time being confused about why pyanalyze thought `pymysql.converters.escape_dict` only takes two arguments.

I rewrote the stubs from scratch using the implementation: https://github.com/PyMySQL/PyMySQL/blob/main/pymysql/converters.py.

The "charset" argument is ignored as far as I can tell; it gets passed to other functions but no function actually uses it.

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
2021-11-09 07:57:29 -08:00
luzpaz
b95b729b9e Fix typos (#6263)
Found via `codespell -q 3 -L alo,asend,ba,nams,spawnve`
2021-11-08 18:23:15 -08:00
KotlinIsland
6e646f43dd Remove BaseAdapter from requests.sessions (#6264) 2021-11-08 17:33:16 -08:00
Sebastian Rittau
f4ad8f06b0 Update httplib version to 0.20.* (#6256) 2021-11-08 14:47:01 +02:00
Manfred Kaiser
977a32a3c9 paramiko.ServerInterface: replace str with bytes in some methods (#6254) 2021-11-08 10:57:29 +02:00
Sebastian Rittau
c846c35d50 Process.status returns a status string (#6245)
Typed STATUS_* constants using Literal
2021-11-07 15:04:27 -08:00
Slava Koyfman
7e4a0cbbd2 freezegun: Add as_kwarg argument (#6220) 2021-11-02 15:31:58 +01:00
Nikita Sobolev
151f256051 croniter: Add missing arguments and functions, add types (#6215) 2021-10-30 18:50:20 +02:00
Huw Jones
b98cd0c3b0 Annotate humanfriendly.__init__.pyi (#6209) 2021-10-28 16:16:54 +02:00
Huw Jones
ce7484f70b Add defaults to GCM.__init__ arguments (#6207) 2021-10-28 12:57:40 +02:00
Sebastian Rittau
4e592ada7b Upgrade PyYAML to version 6 (#6183)
* Fix load_all() argument
* Remove Python 2 remnants
  + Replace Text with str
  + Replace alias "_Str" with str
  + Import from collections.abc and re where applicable
  + Remove Python 2 branches
* Fix PyYaml allowlist entries
  + Add yaml._yaml and move CParser and CEmitter there.
  + Add missing functions, classes, and arguments.
* Use relative imports in some modules.
* Add __all__ to yaml.cyaml.
* Remove unnecessary noqa markers.
2021-10-22 20:05:58 +02:00
Roman Joost
3a70f34ddd Stubs for google.cloud.ndb the Google Cloud Datastore ndb client library (#5821) 2021-10-21 07:15:53 +02:00
Daniel Huckins
cf78194c76 Annotate Client.decr() and decrby() (#6179) 2021-10-16 18:46:52 +02:00
Nikita Sobolev
0e24e1fe66 Add redis/sentinel.pyi (#6174) 2021-10-15 12:04:56 +02:00
Akuli
994b69ef8f Use lowercase tuple where possible (#6170) 2021-10-14 17:18:19 -07:00
Akuli
75ca712f3c check_new_syntax.py: check nested annotations (#6167) 2021-10-14 00:28:38 +03:00
Akuli
f30b5ae363 dateparser.search.search_dates: allow arbitrary-length tuples for languages argument (#6166) 2021-10-13 23:22:58 +03:00
Alexandre Viau
b0e1cef4dd freezegun: _freeze_time.__enter__ return a freeze factory (#6164) 2021-10-13 22:11:44 +02:00
Akuli
e72a4034bf Cleanup: use lower-case list and dict, add a test (#6161) 2021-10-13 22:59:27 +03:00
Nipunn Koorapati
39867f1096 Bump protobuf stub to 3.18.1 and mypy-protobuf 3.0.0 (#6157)
* Bump protobuf stub to 3.18.1 and mypy-protobuf 3.0.0

* Fix ConsumeInteger in google/protobuf/text_format.pyi

The arg was removed in protobuf 3.18
2021-10-12 14:33:22 -07:00
cmckain
71f2e4ab0a Put Generic last in base class list (#6155) 2021-10-12 17:58:19 +02:00