Commit Graph
27 Commits
Author SHA1 Message Date
hatal175 fbf21995e3 Various stubtest fixes (#5230) 2021-04-18 09:30:00 -07:00
hatal175 f44f38fda3 Fixes #1110. Use SupportsIndex in str, bytes and bytesarray functions wh… (#5228)
* Fixes #1110. Use SupportsIndex in str, bytes, bytesarray functions where applicable.
2021-04-17 22:27:58 +03:00
hatal175 c9d996fe55 Various stubtest exceptions (#5227) 2021-04-17 07:03:28 -07:00
hatal175 d3b2cafa85 builtins stubtest exceptions (#5219) 2021-04-16 10:41:04 -07:00
hatal175 82be016aa4 Various packages stubtest fixes (#5221) 2021-04-15 21:04:40 -07:00
hatal175 bf201c8201 Various stubtest fixes (#5215) 2021-04-14 19:14:07 -07:00
hatal175 f89cff3bf8 Fixing product and combinations (#5213) 2021-04-13 08:45:19 +02:00
hatal175 2ae49e1307 http/html stubtest fixes (#5208) 2021-04-12 13:37:09 +02:00
hatal175 7adb0213f7 Convert itertools functions to classes (#5211) 2021-04-12 12:28:51 +02:00
hatal175 60975a3df8 compileall: rx argument, str paths (#5172) 2021-04-11 12:40:41 -07:00
hatal175 472485d80a email stubtest exceptions (#5207) 2021-04-11 07:25:48 -07:00
hatal175 b308c1f964 bz2 stub exceptions (#5199) 2021-04-10 19:53:05 -07:00
hatal175 25bac1d716 csv, ctypes, configparser explanations (#5204) 2021-04-10 19:18:22 -07:00
hatal175 e26971a082 ssl stubtest exception fix/explanation (#5137) 2021-04-10 17:00:35 +02:00
hatal175 5fef564636 Protobuf text_format stubs (#5167)
Fixes #1781
2021-04-08 18:02:38 -07:00
hatal175 413614aa83 xml stubtest exceptions (#5161)
* Explaining xml stubtest exceptions

* Fix 3.6/3.7 ExternalEntityParserCreate

* Fix typos and formatting

* Missing return type

* Reverting ExternalEntityParserCreate change to see error

* Remove unused sys import

* Readd ExternalEntityParserCreate with explanations
2021-04-08 17:43:51 -07:00
hatal175 fd2a176094 Allow per distribution mypy strictness options (#5169)
As requested by https://github.com/python/typeshed/issues/1526.

This addition takes mypy configuration from each distribution metadata file and constructs a single mypy.ini to run with. It assumes there is no mypy.ini but in case we ever need one, it would be simple to add these on top of an existing configuration file.
Might be relevant for #2852

As the issue did not really specify how the configuration would look, I added the following:
- You may add a mypy-tests section to the metadata file.
It looks like this:
[mypy-tests]
[mypy-tests.yaml]
module_name = "yaml"
[mypy-tests.yaml.values]
disallow_incomplete_defs = true
disallow_untyped_defs = true

- module_name can be of the form "a.*" like in mypy.ini.
- You can add several module sections for complex distributions with several modules.
- I added the '--warn-incomplete-stub' option since it is made specifically for typeshed runs. See docs.
2021-04-07 21:30:08 -07:00
hatal175 6c01c6afdc Make ProxyType and CallableProxyType Generic (#5166) 2021-04-07 19:52:22 -07:00
hatal175andShantanu 2e703c37e9 Fix importlib stubtest exceptions (#5148)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2021-04-05 12:01:26 -07:00
hatal175 82130cca56 Fix distutils and difflib stubtest exceptions (#5182) 2021-04-05 12:00:32 -07:00
hatal175 ef9b37ecab codecs stubtest exceptions (#5179) 2021-04-03 22:44:16 -07:00
hatal175 577dbe965c colorama stubs (#5108) 2021-03-27 07:52:37 -07:00
hatal175 20a6de8fdd Stubtest exceptions for sys, symtable, sysconfig and tarfile (#5138) 2021-03-26 21:33:19 -07:00
hatal175 5b730d4ded Fix Shlex stubtest errors (#5135) 2021-03-23 20:56:47 -07:00
hatal175 88a8d0ccbc Explaining/Fixing asyncio allowlist exceptions (#5132) 2021-03-23 17:14:30 -07:00
hatal175 a9c517ad8e Pysftp Stubs (#5120) 2021-03-23 17:07:02 -07:00
hatal175 3de5d893de Add Curses ACS Codes (#5116)
Closes: #5115
2021-03-15 15:24:32 +01:00