Commit Graph

5531 Commits

Author SHA1 Message Date
Joseph Young
e6f28c052e Accept PathLike[bytes] in os.listdir (#6870) 2022-01-09 16:17:01 +02:00
Sebastian Rittau
67c5d73cdb Further annotate sqlalchemy.engine and collections (#6680) 2022-01-09 15:20:17 +02:00
Joseph Young
ac623b5036 Support bytes paths in shutil.copy (#6866) 2022-01-09 14:03:26 +02:00
Rui Cunha
d00b3b2d12 Add socket.IPPROTO_MPTCP (#6863) 2022-01-08 20:57:03 +02:00
Joseph Young
ea6c562928 Accept bytes in shutil.copymode (#6862) 2022-01-08 20:49:51 +02:00
Sebastian Rittau
f4ce1ebaf8 Use positional-only arguments for IO (#6851) 2022-01-08 20:49:29 +02:00
Arie Bovenberg
267bb2485a pkgutil.get_loader may return None (#6861) 2022-01-08 20:30:24 +02:00
Sam Bull
933fec014c Pygments: make Formatter generic and improve format/highlight (#6819)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-01-08 20:27:51 +02:00
Alex Waygood
a40d79a4e6 Use lowercase type everywhere (#6853) 2022-01-08 16:09:29 +01:00
Sebastian Rittau
f8501d33c7 Use types-urllib3 for requests (#6859) 2022-01-08 16:25:50 +02:00
Sebastian Rittau
38811a4495 Fix check consistent (#6860) 2022-01-08 15:35:42 +02:00
Sebastian Rittau
29563c3cc3 Add urllib3 stubs (#6858) 2022-01-08 14:49:06 +02:00
Nikita Sobolev
1fbc919ec8 Use Literal and __all__ in filecmp (#6852) 2022-01-08 13:07:33 +01:00
Nikita Sobolev
c4a68faf6c Use Literal type in codecs (#6857) 2022-01-08 12:57:57 +01:00
Akuli
950cff21f6 create_baseline_stubs.py: Fix stubgen invocation (#6856) 2022-01-08 12:33:29 +01:00
Joseph Young
0e5a00b97a Add a comment explaining why shutil.move doesn't allow bytes/Pathlike[bytes] args (#6832) 2022-01-08 11:59:02 +02:00
Nikita Sobolev
28a5e6bb7a Stricter platform checks for constants in fcntl (#6807) 2022-01-07 19:40:13 +01:00
Sebastian Rittau
2ad8db51ad Update to mypy 0.931 (#6850)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-01-07 19:21:10 +01:00
Nikita Sobolev
5103f23de3 Fixes asyncio.events definition (#6811) 2022-01-07 19:25:12 +02:00
Neil Girdhar
1b3d629bc5 Make self positional-only in functools.partial and partialmethod (#6822) 2022-01-07 19:19:13 +02:00
Alex Waygood
9558b36a45 range and slice: start, stop, step are read-only (#6849) 2022-01-07 19:17:28 +02:00
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