Commit Graph

6927 Commits

Author SHA1 Message Date
Alex Waygood
fd4feba2c9 Enable pyright's reportUnnecessaryTypeIgnoreComment setting for the whole test_cases directory (#8683) 2022-09-05 15:20:04 +02:00
Alex Waygood
3a397a2252 stubsabot: improve argparse for --action-level (#8682) 2022-09-04 16:16:05 -07:00
Alex Waygood
eb6431c4cc stubsabot: warn if stubtest won't test an update (#8681)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2022-09-04 13:56:58 -07:00
Kevin Kirsche
8e4b89a707 fix: add missing paramiko.win_openssh (#8672) 2022-09-03 14:03:10 -07:00
Alex Waygood
483f0ac078 prettytable: Fix stubtest errors (#8676)
Fixes #8674. A partial revert of 9e69627501.
2022-09-03 13:26:23 -07:00
Alex Waygood
8bc2565d11 pyautogui: just skip stubtest (#8678) 2022-09-03 13:25:50 -07:00
Alex Waygood
54c562827b Cancel old test jobs in CI (#8679) 2022-09-03 13:04:54 -07:00
Kevin Kirsche
82cccac369 jsonschema._format: update some annotations to match upstream (#8673) 2022-09-03 12:54:48 +01:00
Samuel T
4c100febcd Add stubs for pyautogui (#8654)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-09-03 12:45:20 +01:00
James Hilton-Balfe
61831c0164 Add some undocumented constants to gzip.pyi (#8675)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-09-03 12:04:48 +01:00
Samuel T
bfe56cd471 create_baseline_stubs: fix pyright config on windows, write to stubs (#8653) 2022-09-02 14:53:37 -07:00
James Hilton-Balfe
1195bbaf33 Make Struct.size and format read-only properties (#8670)
attribute 'size' of '_struct.Struct' objects is not writable
2022-09-02 14:50:47 +01:00
Nikita Sobolev
4a4acdb30a redis: Improve kwargs typing in sentinel (#8661) 2022-09-02 13:02:12 +01:00
Pierre Riandey
70d76ecf8f Add types for unittest.loader.TestLoader._match_path (#8669) 2022-09-02 09:55:24 +02:00
Samuel T
bcb8384e2f Removed outdated mypy exceptions in CONTRIBUTING (#8668)
Closes #8667
2022-09-02 09:09:35 +02:00
github-actions[bot]
bf3b1f0c4d [stubsabot] Bump jsonschema to 4.15.* (#8665)
Co-authored-by: stubsabot <>
2022-09-01 18:46:51 -07:00
Jelle Zijlstra
c1d307fc3b black: upgrade (#8659) 2022-08-31 16:01:52 -07:00
Kevin Kirsche
80fdf9e6c6 paramiko: Add missing types in __init__.pyi and _version.pyi (#8651) 2022-08-31 18:00:39 +01:00
Alex Waygood
3e5808a990 Bump flake8-pyi and pytype test dependencies (#8656) 2022-08-31 12:20:11 +01:00
Alex Waygood
601700d1a5 Improve some tkinter unions (#8655) 2022-08-31 13:05:51 +03:00
Alex Waygood
86a34c5bd6 typecheck_typeshed.py: Make dir command-line argument positional-only (#8646) 2022-08-31 09:14:53 +01:00
Alex Waygood
8b222200e0 fpdf2: Remove redundant str | Literal['DEPRECATED'] union (#8650) 2022-08-30 19:54:52 +01:00
Anh71me
1dd533acc0 stdlib/_ast.pyi: Fix ast.ImportFrom arg module _identifier to str (#8648) 2022-08-30 12:18:28 +02:00
github-actions[bot]
9e69627501 Bump prettytable to 3.4.* (#8621) 2022-08-29 13:37:50 -07:00
Alex Waygood
b417d5796d Run flake8-noqa in CI (#8641) 2022-08-29 21:06:47 +01:00
junkmd
1c6eb33c23 add and migrate constants from ctypes/__init__.pyi to _ctypes.pyi (#8643)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-08-29 15:33:47 +01:00
Alex Waygood
c72c9a6c96 typed_ast.ast3: arguments.kw_defaults should be list[expr | None] (#8645)
```python
>>> from typed_ast import ast3
>>> print(ast3.dump(ast3.parse('def foo(*, arg: int) -> None: ...')))
Module(body=[FunctionDef(name='foo', args=arguments(args=[], vararg=None, kwonlyargs=[arg(arg='arg', annotation=Name(id='int', ctx=Load()), type_comment=None)], kw_defaults=[None], kwarg=None, defaults=[]), body=[Expr(value=Ellipsis())], decorator_list=[], returns=NameConstant(value=None), type_comment=None)], type_ignores=[])
```

This bug was discovered in https://github.com/python/mypy/pull/13547
2022-08-29 14:44:48 +01:00
Alex Waygood
c0f27e39f9 Upgrade pytype to 22.8.23 (#8644) 2022-08-29 14:07:11 +01:00
Alex Waygood
bc26a98bd7 create_baseline_stubs.py: Modernize a few type annotations (#8642) 2022-08-29 13:49:00 +01:00
Kevin Kirsche
2c7ac0990f Remove ssl.SSLContext.__init__ (#8640)
Fixes: #8632
2022-08-29 13:07:59 +01:00
Alex Waygood
e2211cb420 Delete some unused # noqa comments (#8639) 2022-08-29 12:56:06 +01:00
Alex Waygood
c8a679657b Delete scripts/update-stubtest-allowlist.py (#8606) 2022-08-29 13:50:26 +02:00
Nikita Sobolev
d3cded7fc6 redis: Add _Encodable type alias (#8638) 2022-08-29 13:38:22 +02:00
Nikita Sobolev
6e985ef3de stdlib mapping classes: Use better names for various pos-only parameters (#8637) 2022-08-28 23:29:00 +01:00
Alex Waygood
1b6cda86d4 Alphabetise items in requirements-tests.txt (#8635) 2022-08-28 07:59:17 -07:00
Nikita Sobolev
6d5fd0e290 Allow passing tuples to ipaddress.ip_network (#8634) 2022-08-27 18:38:26 +01:00
Nikita Sobolev
481027e194 redis: Improve ClusterPubSub types (#8627) 2022-08-27 16:13:46 +01:00
Jason Heiss
d1d9b98aff imaplib.Time2Internaldate also takes datetimes and 9-element tuples (#8630)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-08-27 16:11:26 +01:00
MapleCCC
dece0b1fff assertRaises / assertRaisesRegex / assertWarns / assertWarnsRegex: msg argument is keyword-only (#8631) 2022-08-27 15:55:14 +01:00
GrozniyToaster
b6b8894964 Accept anything with __getitem__ in str.translate (#8629)
translate table protocol
2022-08-26 20:24:21 +03:00
Nikita Sobolev
0259068ad6 Remove duplicate definitions in sub-classes (#8594) 2022-08-26 17:10:55 +02:00
Alex Waygood
d91e5f0eff Further enhance check_consistent.py (#8604) 2022-08-26 07:50:26 -07:00
Alex Waygood
8cf125d80d flake8 config: fix typo (#8626)
Accidentally introduced in #8612
2022-08-26 11:55:47 +01:00
Shantanu
93ee41bcd9 typing: add _type_repr (#8624) 2022-08-26 12:15:11 +02:00
github-actions[bot]
6114fb54c0 [stubsabot] Bump tree-sitter-languages to 1.4.* (#8623) 2022-08-26 10:23:59 +01:00
Nipunn Koorapati
7beaebff40 Bump to mypy-protobuf 3.3.0 (#8612)
* Bump to mypy-protobuf 3.3.0

* Remove some ignores for formatting
2022-08-26 07:24:11 +01:00
Arnav Singh
712b265a16 Fix os.{,p}{read,write}v to take Sequence of ReadableBuffer / WriteableBuffer (#8617)
Fixes #8615
Fixes #8616
2022-08-25 21:50:01 -07:00
github-actions[bot]
ef25fc6c9b [stubsabot] Bump jsonschema to 4.14.* (#8619) 2022-08-25 19:36:01 -07:00
github-actions[bot]
e93af9b333 [stubsabot] Bump setuptools to 65.3.* (#8620) 2022-08-25 19:34:32 -07:00
github-actions[bot]
d6eb817b31 [stubsabot] Bump flake8-bugbear to 22.8.23 (#8622) 2022-08-25 19:33:22 -07:00