Commit Graph

5410 Commits

Author SHA1 Message Date
Sebastian Rittau
e77a66aced Update pyright (#6840) 2022-01-07 18:58:15 +02:00
Thorben Dahl
da78d7cbc3 Improve Babel dates stub (#6730) 2022-01-07 17:10:32 +01:00
Luca Chiodini
3b73acb06b Pillow: Image fixes (#6848)
* Fix return type of `Image.transform()`.
* Add animation attributes to `Image`.
2022-01-07 17:08:30 +01:00
Ambrose Chua
032e6ee90c requests: Add JSONDecodeError (#6838) 2022-01-06 19:34:22 -08:00
cccs-jh
b2edc8fe4f Fix urllib.parse.ParseResultBytes.geturl() return type (#6846) 2022-01-07 00:57:25 +02:00
Alex Waygood
df6f701ba4 builtins: Fix from_bytes() and fromhex() return type (#6842) 2022-01-07 00:43:04 +02:00
Joseph Young
c78107132c Accept bytes in shutil.copystat (#6836) 2022-01-07 00:32:03 +02:00
Joseph Young
7784c56e11 Accept bytes paths in shutil.copyfile (#6841) 2022-01-07 00:30:31 +02:00
Nikita Sobolev
fe75ec69bf Use ParamSpec for concurent.futures.Executor.submit (#6791) 2022-01-06 18:29:47 +02:00
Joseph Young
e504437801 Use StrOrBytesPath in shutil.rmtree (#6835) 2022-01-06 18:22:31 +02:00
Sebastian Rittau
eee7f71f23 Update pytype (#6839)
* Update pytest and pyright

* Don't upgrade pyright
2022-01-06 00:06:46 -08:00
Joseph Young
b99e024faf Fix shutil.chown stub (#6833)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-05 23:55:36 +02:00
Nikita Sobolev
a58a5bbed6 Use pos-only arguments in asyncio.gather (#6834) 2022-01-05 23:50:56 +02:00
Akuli
a7886bfa55 Fix several typos in comments (#6830) 2022-01-05 18:44:34 +01:00
Alex Waygood
2268955701 Remove several unused TypeVars (#6829) 2022-01-05 17:58:03 +02:00
Alex Waygood
beedc1d039 Improve sys stubs (#6816)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-05 17:37:40 +02:00
Alex Waygood
6ff9020603 Clean up os.statvfs_result (#6828) 2022-01-05 14:53:12 +02:00
Sebastian Rittau
4f4068243a Upgrade stubs to Pillow 9 (#6795)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-05 14:17:56 +02:00
Alex Waygood
3112f0e525 _typeshed.structseq: Use Final instead of ClassVar (#6825) 2022-01-05 14:16:57 +02:00
Nikita Sobolev
ca7e0964c4 Use Literal types in csv (#6823) 2022-01-05 11:29:01 +01:00
Nikita Sobolev
73d5098e0b Use Literal types in ast (#6824) 2022-01-05 11:27:58 +01:00
Nikita Sobolev
1527f67207 Use Literal types in calendar, add __all__ (#6827) 2022-01-05 11:26:29 +01:00
Neil Girdhar
9116b2928d functools: Add partial.__new__; remove partial.__init__ (#6813) 2022-01-04 23:48:34 +02:00
Akuli
b5666d473d Improve comments of builtins.function (#6818) 2022-01-04 14:04:33 -06:00
Joseph Young
ff64deb331 Add missing function attributes to builtins.function (#6804)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-01-04 20:41:59 +02:00
Nikita Sobolev
44f9e36952 asyncio.unix_events is not available on Windows (#6809) 2022-01-04 18:25:29 +02:00
Nikita Sobolev
4c61bdbccb multiprocessing.pool: Use Literal and add __all__ (#6815) 2022-01-04 18:20:06 +02:00
Alex Waygood
582f1e9c5f Make os.path.join() first parameter pos-only (#6812) 2022-01-04 15:38:46 +01:00
Nikita Sobolev
73302d3bb8 Improve pty.pyi (#6806)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-01-04 11:12:27 +02:00
Nipunn Koorapati
23e9d87853 Add python310 marker to test requirements for pytype (#6805) 2022-01-04 10:59:26 +02:00
Nipunn Koorapati
b22f29bec1 Add google.protobuf.internal.api_implementation (#6802) 2022-01-03 22:00:19 +01:00
Joseph Young
fdc5a568ab Add six.moves.copyreg six stubs (#6793) 2022-01-03 17:30:14 +01:00
Nikita Sobolev
6e45c3196d Mark several asyncio modules as Windows-only (#6796) 2022-01-03 14:52:39 +01:00
Nikita Sobolev
96c836fc41 Use Literal types in windows_events (#6792) 2022-01-03 10:23:29 +01:00
Nikita Sobolev
0441c880b9 Use Literal in asyncio/constants.pyi (#6788) 2022-01-02 23:44:51 +01:00
Alex Waygood
e655282e87 sys.version_info is a structseq class (#6786) 2022-01-02 22:04:27 +02:00
Joseph Young
4538770404 Add missing functions and keyword arguments to aiofiles.os (#6785)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-02 20:08:00 +02:00
Julien Danjou
1bfcf30a50 FrameType.f_lineno can be None (#6769) 2022-01-02 16:26:58 +01:00
Nikita Sobolev
bbd8c77b16 Use "async def" in asyncio/tasks.pyi (#6783) 2022-01-02 16:22:05 +01:00
Nikita Sobolev
03861b5a1d Use Literal type for constans in asyncio/tasks (#6781) 2022-01-02 12:42:00 +02:00
Nikita Sobolev
686dba35b5 Use Literal type for concurrent states (#6780) 2022-01-02 12:27:02 +02:00
Alex Waygood
505ea72641 Never explicitly inherit from object in Python 3-only stubs (#6777) 2022-01-02 07:24:48 +01:00
Joseph Young
d43cd997a4 re.Match.lastgroup is str rather than AnyStr (#6776) 2022-01-01 15:14:23 +02:00
Nikita Sobolev
764abe8cff Add .editorconfig file (#6771) 2022-01-01 13:31:10 +01:00
Nikita Sobolev
6da5eb2d04 Backport platform specific code to python2 (#6772) 2022-01-01 13:26:20 +01:00
Nikita Sobolev
6bdc158e61 Use Literal types in syslog (#6774) 2022-01-01 14:19:05 +02:00
Alex Waygood
e434b23741 Allowlists: move entries relating to __all__ weirdness to their own section (#6767)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-31 14:31:18 +02:00
Nikita Sobolev
f65d93618d Mark bdist_msi to be Windows-only on python2 (#6768) 2021-12-31 13:15:47 +01:00
Nikita Sobolev
9c8f0d1240 Restore Literal for CO_* constants in inspect.pyi (#6766)
First pushed in #6764, accidentally reverted in #6765
2021-12-30 17:00:35 -06:00
Nikita Sobolev
caee9b0bea inspect.Parameter: several attributes are read-only (#6765) 2021-12-30 16:02:46 -06:00