Commit Graph

2444 Commits

Author SHA1 Message Date
Akuli
75c75a093e ttkthemes: allow constructing ThemedStyle with no arguments (#6046) 2021-09-19 15:11:08 -07:00
Akuli
7ed8da4415 Create stubs for toposort (#6048) 2021-09-19 14:04:23 -07:00
Sebastian Rittau
d7bae50199 Update third-party package versions (#5996) 2021-09-18 20:08:38 -07:00
Sebastian Rittau
aa4a0c763a Fix distribution name backports.ssl_match_hostname (#5997)
Bump version number to latest version available on pypi

Turn backports.ssl_match_hostname into a package to match upstream
2021-09-18 20:08:21 -07:00
Sebastian Rittau
db69e41fda Add setuptools stubs (#5762) 2021-09-18 19:45:23 -07:00
Bas van Beek
a1ca55037a Update the xxhash and hashlib stubs (#6031)
* `name`, `block_size`, `digest_size` and `digestsize` attributes of hash objects were made read-only.
* It is now a type-checking error to subclass `xxhash` classes, such as `xxhash.xxh32`. Previously it was an error only at runtime.
* `xxhash` functions now accept strings as input and any object with `__index__()` method for `seed` (instead of requiring an integer). They also fail the type checking if no arguments are given.
2021-09-14 12:01:11 +03:00
Sam Martin
8a704ab290 Add more annotations to aws_xray_sdk.core.recorder (#6029) 2021-09-13 14:05:47 +02:00
Akuli
e69ca588ac Stubs for ttkthemes (#6024) 2021-09-10 15:59:12 +02:00
Nikita Sobolev
7d41e670ad Annotate more NamedTuples for psutil (#6021) 2021-09-10 14:14:36 +02:00
Jungkook Park
18d4868fce Fix type of blocking_timeout argument to redis.lock.Lock (#6019) 2021-09-10 04:27:05 +02:00
Nikita Sobolev
6122b5e8b4 Annotate several NamedTuples in psutil (#6016) 2021-09-09 22:37:00 +02:00
Nikita Sobolev
2a6f4afc80 Annotate more methods of psutil.Process (#6012) 2021-09-09 21:30:56 +02:00
Nikita Sobolev
6188a3eec7 Improves psutil/_common.pyi (#6010)
* Improves `psutil/_common.pyi`

In this iteration I've fixed the most obvious types and corrected several mistakes.
We can go deeper in the next iteration(s).

* We don't need to import `Union`

* Update _common.pyi

* Update _common.pyi

* Update _common.pyi
2021-09-06 20:37:53 +02:00
Fares Ahmed
d8ec167681 Fix type of stroke_width parameter in Pillow's ImageDraw.*text* functions (#6008) 2021-09-06 13:13:28 +02:00
Sebastian Rittau
2620120a90 Update deprecated.sphinx.deprecated signature (#6005)
The signature was changed in Deprecated 1.2.13.
2021-09-05 19:11:27 -07:00
Nikita Sobolev
1f7b87b6b7 Adds more missing ContextManager types (#6007)
1. c3e63b4dd5/psutil/_psbsd.py (L571)
2. c3e63b4dd5/psutil/_psosx.py (L365)
2021-09-05 17:57:33 -07:00
Nikita Sobolev
5d7e201784 Fix return type of Process.oneshot() (#6006) 2021-09-05 21:03:45 +02:00
Gergely Kalmár
96b5254056 Fix python-slugify replacements argument type (#6004)
Update version field, remove Python 2 compatibility marker
2021-09-05 20:44:23 +02:00
Akuli
832a24c8a1 Create send2trash stubs (#6000) 2021-09-03 22:51:03 +02:00
JP Sugarbroad
d5ff0e8399 dateutil.parser: Complete the isoparser module (#5983) 2021-09-02 14:57:16 +02:00
Akuli
6307bfd421 Delete yaml.CDangerLoader and yaml.CDangerDumper (#5990)
These no longer exist in PyYAML 4.2.
2021-09-01 10:50:30 +03:00
Jon Dufresne
a9a612df98 Add certifi.contents() (#5989)
Added in commit:
3e585603ff

Available since version 2020.04.05.
2021-08-31 21:10:04 -07:00
Ashley Whetter
026405b014 Add C{Full,Unsafe}Loader and UnsafeConstructor (#5988) 2021-09-01 00:50:31 +02:00
Jon Dufresne
2d8fe52d08 Remove geoip2 stubs in favor of upstream (#5964)
The geoip2 package has shipped a PEP 561 py.typed file since Jul 28,
2020.

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-08-31 23:15:55 +02:00
Sebastian Rittau
5f77310418 Update bleach version (no changes) (#5982) 2021-08-30 07:15:23 -07:00
Jon Dufresne
4381e0a558 Remove @python2-only third party stubs that aren't also dependencies (#5975)
Closes #5969
2021-08-30 14:23:28 +02:00
Akuli
8d5452e873 do not use mypy-specific syntax in '# type: ignore' comments (#5953) 2021-08-29 03:58:34 -07:00
Sebastian Rittau
f1532745bc A few html5lib annotations (#5913) 2021-08-28 12:08:45 -07:00
Shantanu
670929e908 dateparser: use PEP 604 (#5977)
Co-authored-by: hauntsaninja <>
2021-08-28 21:03:02 +02:00
Sebastian Rittau
27af44fee2 Deprecate geoip stubs (#5967)
Geoip comes with its own type hints starting at version 4.0.2.
2021-08-28 14:58:38 +03:00
Sebastian Rittau
5a7f25584e Remove tornado stubs again (#5973) 2021-08-27 20:48:32 +02:00
Jon Dufresne
b50ebafa79 Tighten return type of OpenSSL Connection.get_protocol_name() (#5972)
The method always returns a str. See implementation at:

30e82d4ba5/src/OpenSSL/SSL.py (L2420-L2430)

If version were ever None, it would raise an exception on the .decode()
line.
2021-08-27 10:54:27 -07:00
JP Sugarbroad
3dbaf34bd5 yaml.cyaml: Switch Optional to new pipe-based union (#5971) 2021-08-27 19:21:44 +02:00
Sebastian Rittau
47dd8549d2 Temporarily restore tornado stubs and add obsolete_since (#5968)
The stubs can be removed again, once a new release was built.
2021-08-27 10:00:37 -07:00
Jon Dufresne
da8d291bdb Update versions of Python 2 stubs to prepare for eventual removal (#5970) 2021-08-27 18:15:13 +02:00
Jon Dufresne
2e1e91e3c8 Remove tornado stubs in favor of upstream (#5965)
The tornado package has shipped a PEP 561 py.typed file since Mar 1,
2019.
2021-08-27 08:55:41 +02:00
JP Sugarbroad
07a58c3266 Add methods to yaml.cyaml.CParser (#5963) 2021-08-26 19:28:17 -07:00
Sam Martin
f1da797c62 Addition of aws-xray-sdk package (#5961) 2021-08-26 01:03:38 +02:00
Sebastian Rittau
db0f37ccdf Modernize mock stubs (#5949)
* Import from `collections.abc`, instead of `typing`.
* Replace `Text` with `str`.
* Remove version checks.
* Convert mock into a package
2021-08-23 11:53:03 -07:00
Gary Yendell
28f2953b49 mock: Remove version checks, remove Python 2 (#5948)
The mock package is a backport of the latest `unittest.mock` module for all supported Python versions, making version checks unnecessary.

Also update the package version. The latest version doesn't support Python 2 anymore.
2021-08-23 13:57:34 +02:00
SeenicRoot
034a5f6aec Fix return type of Image.reduce() in Pillow (#5946)
Image.reduce() should return an Image instead of None.
2021-08-22 20:03:22 -07:00
Johan Walles
e4879abb59 text_type should be a type alias, not a variable (#5945) 2021-08-22 12:44:23 +02:00
JHeilCoveo
7144118995 Add keys module to cachetools package (#5938) 2021-08-20 09:59:15 +02:00
Henry Schreiner
2002649395 fix(Deprecated): use literal for actions (#5939) 2021-08-19 18:06:23 +02:00
Henry Schreiner
eec10a6c7a fix(Deprecated): support any warning for category (#5937) 2021-08-19 17:55:14 +02:00
Louis Duperier
bfff7d763b add type stubs (#5932) 2021-08-18 17:02:14 +03:00
Marc Mueller
837b57fdd1 Rename nmap to python-nmap (#5931) 2021-08-16 16:44:04 -07:00
Hackrrr
3ce5502675 Added str type to modifying methods on PageElement (#5929)
Co-authored-by: Hackrrr <Hackrrr@users.noreply.github.com>
2021-08-15 08:15:34 -07:00
Sam Martin
a2bc47a682 docutils - added missing stubs for __init__ methods (#5924)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-08-14 20:35:02 +03:00
Oleg Höfling
a6ce6fdce6 More specific type hints for dateparser (#5920)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
2021-08-14 12:33:32 +02:00