Commit Graph

1120 Commits

Author SHA1 Message Date
github-actions[bot]
7e77208f8a [stubsabot] Bump python-slugify to 7.0.* (#9224)
Release: https://pypi.org/pypi/python-slugify/7.0.0
Homepage: https://github.com/un33k/python-slugify
Diff: https://github.com/un33k/python-slugify/compare/v6.1.2...v7.0.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 2 files included in typeshed's stubs have been modified or renamed: `slugify/__init__.py`, `slugify/__version__.py`.
 - Total lines of Python code added: 11.
 - Total lines of Python code deleted: 3.
2022-11-18 17:41:57 -08:00
Nikita Sobolev
ba2597daa9 Mark python-slugify as completed (#9222) 2022-11-18 10:50:20 +00:00
Nikita Sobolev
a21aa2fe26 Mark six as completed (#9221) 2022-11-18 10:32:30 +00:00
Harshal Sheth
c7431181b3 click_spinner: make arguments optional (#9220)
Matches the code, where these arguments are not required: https://github.com/click-contrib/click-spinner/blob/master/click_spinner/__init__.py
2022-11-17 00:47:37 -08:00
github-actions[bot]
8086ae7f44 [stubsabot] Bump flake8-rst-docstrings to 0.3.* (#9218)
Release: https://pypi.org/pypi/flake8-rst-docstrings/0.3.0
Homepage: https://github.com/peterjc/flake8-rst-docstrings
Diff: https://github.com/peterjc/flake8-rst-docstrings/compare/v0.2.7...v0.3.0

Stubsabot analysis of the diff between the two releases:
 - 2 public Python files have been added: `tests/RST214/plurals.py`, `tests/RST215/plurals.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 1 file included in typeshed's stubs has been modified or renamed: `flake8_rst_docstrings.py`.
 - Total lines of Python code added: 38.
 - Total lines of Python code deleted: 54.

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2022-11-17 00:25:58 +00:00
Nikita Sobolev
c6261372d7 Always use bool and Literal for Python compat code (#9213) 2022-11-16 18:00:59 +00:00
Nikita Sobolev
9137258cf4 Add exact **kwargs types to dateutil.parser.parse (#9212)
Closes #9122
2022-11-16 07:25:19 -08:00
Avasam
41d508472a Add missing symbols in pyaudio stubs (#9206)
Split off from #9187
Turned off `ignore_missing_stub` for pyaudio stubs.
Ensured it's valid for Windows and MacOS.
2022-11-16 06:23:08 -08:00
Quentin Pradet
0fbe70f709 Fix urllib3 Url.port type (#9208) 2022-11-16 10:23:50 +01:00
Avasam
7863d53db8 Add missing symbols in JACK-Client stubs (#9205)
`ignore_missing_stub = false` and completed on Windows & MacOS
2022-11-15 18:14:52 -08:00
Nikita Sobolev
64bb9ef8b3 Complete singledispatch stub (#9201) 2022-11-15 17:09:45 +01:00
github-actions[bot]
dc072ea937 [stubsabot] Bump simplejson to 3.18.* (#9198)
Release: https://pypi.org/pypi/simplejson/3.18.0
Homepage: https://github.com/simplejson/simplejson
Diff: https://github.com/simplejson/simplejson/compare/v3.17.6...v3.18.0

Stubsabot analysis of the diff between the two releases:
 - 0 public Python files have been added.
 - 0 files included in typeshed's stubs have been deleted.
 - 3 files included in typeshed's stubs have been modified or renamed: `simplejson/__init__.py`, `simplejson/decoder.py`, `simplejson/encoder.py`.
 - Total lines of Python code added: 63.
 - Total lines of Python code deleted: 25.

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2022-11-15 00:26:37 +00:00
Steve Dignam
1733c46058 stripe: fix test clocks imports (#9137) 2022-11-14 12:44:31 +01:00
Avasam
ede6387510 Comments explaining why keyboard and tzlocal are not run on multiple platforms (#9188) 2022-11-14 11:42:17 +01:00
kasium
f9cd5ee859 Improve ast types; revert several "redundant numeric union" changes from #7906 (#9130)
* Adapt number types in ast

Since mypy  0.990 type promotions was limited.
This means that complex is not longer promoted to int/float, therefore
we should adapt the types to list all possible types

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-11-14 09:41:23 +00:00
Jonah Lawrence
892bc0283a Improvements to existing Babel types (#9190) 2022-11-13 12:51:54 -08:00
Avasam
033d21e775 Complete stubtest for aiofiles + fix on Windows (#9184) 2022-11-13 06:45:20 -08:00
Avasam
82c0ea7bd5 Run stubtest on Windows for waitress (#9181) 2022-11-13 06:42:20 -08:00
Nikita Sobolev
005801d34d Mark ttkthemes as complete (#9186) 2022-11-13 11:12:48 +00:00
Nikita Sobolev
d3b63b88d3 Mark toml as complete (#9185) 2022-11-13 11:11:47 +00:00
github-actions[bot]
1aab9d136a [stubsabot] Bump SQLAlchemy to 1.4.44 (#9182)
Release: https://pypi.org/pypi/SQLAlchemy/1.4.44
Homepage: https://www.sqlalchemy.org

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2022-11-12 16:36:15 -08:00
Avasam
75a74ffb6c Run stubtest for psutil on all platforms (#9169) 2022-11-12 16:35:14 -08:00
Avasam
c0f96e1ab6 Explain why vobject is not tested on Windows (#9175)
Specify vobject.win32tz is broken on Windows
2022-11-12 16:23:26 -08:00
Avasam
24277cedf4 Run stubtest on windows for colorama (#9168) 2022-11-12 16:14:15 -08:00
Akuli
02f2bc30e7 Make peewee stubs compatible with peewee 3.15.4 (#9176) 2022-11-12 16:12:55 -08:00
Avasam
7fc9b8e2c8 cffi: run stubtest on Windows (#9178) 2022-11-12 23:56:43 +00:00
Avasam
f033e61ae2 Make the ldap3 stubs platform-agnostic (#9180) 2022-11-12 23:53:55 +00:00
Avasam
1724fb3e25 Fix paramiko stubtest on Windows (#9179) 2022-11-12 23:52:34 +00:00
Avasam
4bad015bbb Remove setuptools._distutils.command.bdst_msi (#9174)
It does not exist
2022-11-12 18:30:56 +00:00
Avasam
14a43b8015 Fix usage of byte2int with bytes (#9152) 2022-11-12 10:56:04 +00:00
Jonah Lawrence
17d6b97c72 Add more type annotations for Babel (#9125)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-11-11 18:29:21 -08:00
Nikita Sobolev
bc6d91a58e Bump paramiko to 2.12.* (#9163)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-11-11 15:30:11 -08:00
Nikita Sobolev
9cd9f6f6e0 Add the ability to run third-party stubtest on Windows or MacOS when needed (#8923)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-11-11 13:40:50 +00:00
github-actions[bot]
bc0fc1bfc0 [stubsabot] Bump aws-xray-sdk to 2.11.* (#9156)
Release: https://pypi.org/pypi/aws-xray-sdk/2.11.0
Homepage: https://github.com/aws/aws-xray-sdk-python
Diff: https://github.com/aws/aws-xray-sdk-python/compare/2.10.0...2.11.0

Stubsabot analysis of the diff between the two releases:
 - 7 public Python files have been added: `aws_xray_sdk/core/utils/sqs_message_helper.py`, `aws_xray_sdk/ext/httpx/__init__.py`, `aws_xray_sdk/ext/httpx/patch.py`, `tests/ext/httpx/__init__.py`, `tests/ext/httpx/test_httpx.py`, `tests/ext/httpx/test_httpx_async.py`, `tests/test_sqs_message_helper.py`.
 - 0 files included in typeshed's stubs have been deleted.
 - 7 files included in typeshed's stubs have been modified or renamed: `aws_xray_sdk/core/async_recorder.py`, `aws_xray_sdk/core/lambda_launcher.py`, `aws_xray_sdk/core/models/dummy_entities.py`, `aws_xray_sdk/core/models/entity.py`, `aws_xray_sdk/core/patcher.py`, `aws_xray_sdk/core/recorder.py`, `aws_xray_sdk/version.py`.
 - Total lines of Python code added: 858.
 - Total lines of Python code deleted: 56.
2022-11-11 11:19:16 +00:00
Ted Conbeer
294b03f75b tqdm: allow disable=None in tqdm.__init__ (#9154) 2022-11-10 13:45:28 -08:00
Samuel T
19169c1646 Update pywin32 to 305 (#9153) 2022-11-10 12:30:53 -08:00
Samuel T
796bdc2eb0 Improve accuracy of six byte index methods (#9117) 2022-11-09 19:22:33 -08:00
Samuel T
0ac98f6b80 Update pywin32 to mypy 0.990 (#9124) 2022-11-09 19:20:56 -08:00
Nikita Sobolev
04ae11cdd0 All __nonzero__ are methods that return bool (#9139) 2022-11-09 14:53:42 +00:00
Kevin Murphy
0884fe13d4 PyYAML: Permit width: float for pure-Python dump(...) (#8973)
* PyYAML: Permit `width: float` for pure-Python `dump(...)`

To prevent `PyYAML` from wrapping *any* lines, it's possible to pass
`width=float("inf")`, but the current type hints don't like that.  This
works at runtime:

    >>> s = yaml.dump({"foo": "bar" * 1000}, width=float("inf"))
    >>> print(s)
    foo: barbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbarbar...

but `mypy` says

    floatwidth.py:2: error: No overload variant of "dump" matches argument types "Dict[str, str]", "float"
    floatwidth.py:2: note: Possible overload variants:
    floatwidth.py:2: note:     def dump(data: Any, stream: _WriteStream[Any], Dumper: Any = ..., *, default_style: Optional[str] = ..., default_flow_style: Optional[bool] = ..., canonical: Optional[bool] = ..., indent: Optional[int] = ..., width: Optional[int] = ..., allow_unicode: Optional[bool] = ..., line_break: Optional[str] = ..., encoding: Optional[str] = ..., explicit_start: Optional[bool] = ..., explicit_end: Optional[bool] = ..., version: Optional[Tuple[int, int]] = ..., tags: Optional[Mapping[str, str]] = ..., sort_keys: bool = ...) -> None
    floatwidth.py:2: note:     def dump(data: Any, stream: None = ..., Dumper: Any = ..., *, default_style: Optional[str] = ..., default_flow_style: Optional[bool] = ..., canonical: Optional[bool] = ..., indent: Optional[int] = ..., width: Optional[int] = ..., allow_unicode: Optional[bool] = ..., line_break: Optional[str] = ..., encoding: Optional[str] = ..., explicit_start: Optional[bool] = ..., explicit_end: Optional[bool] = ..., version: Optional[Tuple[int, int]] = ..., tags: Optional[Mapping[str, str]] = ..., sort_keys: bool = ...) -> Any
    Found 1 error in 1 file (checked 1 source file)

Poking through the `PyYAML` source, it looks the `width` parameter
could probably be anything "comparable", as it's only compared via
the `<` operator[1].

For the LibYAML implementation, however, we have to use `int`s:

    >>> stream = StringIO()
    >>> dumper = yaml.CDumper(stream, width=float("inf"))
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python3/dist-packages/yaml/cyaml.py", line 81, in __init__
        version=version, tags=tags)
      File "ext/_yaml.pyx", line 973, in _yaml.CEmitter.__init__ (ext/_yaml.c:14797)
    OverflowError: cannot convert float infinity to integer
2022-11-08 21:23:47 +00:00
Nikita Sobolev
62a6c3d616 Annotate known magic-method return types (#9131) 2022-11-08 18:28:42 +00:00
Nikita Sobolev
c0e9038f0d Fix and allow classes with missing metaclasses (#9136) 2022-11-08 18:13:59 +00:00
anthony sottile
b13f8e37a3 add default for simplejson.JSONEncoder.iterencode (#9135)
4364525222/simplejson/encoder.py (L304)
2022-11-08 17:30:05 +00:00
Nikita Sobolev
94dc53ee90 Mark typed_ast as completed (#9121) 2022-11-07 18:34:23 +00:00
Nikita Sobolev
11be6effd3 Mark vobject as complete (#9120) 2022-11-07 14:24:18 +00:00
Jonah Lawrence
157d818106 Added types for babel.core and babel.numbers (#9111) 2022-11-06 15:03:28 -08:00
Alex Waygood
658b6e7de0 PyInstaller: Fix DeprecationWarning when parsing the stub using ast.parse() (#9112)
```python
>>> import ast, warnings
>>> warnings.filterwarnings("always")
>>> with open("typeshed/stubs/pyinstaller/pyi_splash/__init__.pyi", encoding="utf-8") as file:
...     source = file.read()
...
>>> ast.parse(source)
<unknown>:11: DeprecationWarning: invalid escape sequence '\u'
<ast.Module object at 0x0000027EAF6D3AF0>
```

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-11-06 14:50:38 -08:00
Nikita Sobolev
5751b467e0 Remove ssl_match_hostname from pyright exclude (#9116) 2022-11-06 14:02:24 -08:00
Nikita Sobolev
4bff3e240b Remove annoy from pyright excludelist (#9114) 2022-11-06 19:45:25 +00:00
Nikita Sobolev
10f05d3fb6 Remove aiofiles/tempfile/temptypes.pyi from pyright exclude (#9104) 2022-11-05 07:10:50 -07:00