Commit Graph

8887 Commits

Author SHA1 Message Date
Hoël Bagard
0f0e261b90 tensorflow: Add some tf.raw_ops members. (#11387)
https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/raw_ops.pyi
2024-02-16 19:06:56 -08:00
Kanishk Pachauri
aed633ec95 fix: typo on setuptools (#11432) 2024-02-16 18:59:24 +01:00
Stephen Morton
764532356a add _lsprof module (#11159)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2024-02-16 08:38:49 -08:00
winestone
f3c7c48438 itertools: Improve precision of itertools.product types when called with 7 or more arguments (#11163) 2024-02-16 07:03:13 -08:00
plokmijnuhby
c5c2c14db9 builtins: Fix typing of reversed (#10655) 2024-02-16 06:52:58 -08:00
Hoël Bagard
55dd99a338 tensorflow Add tensorflow.summary module (#11358)
Partially derived from https://github.com/hmc-cs-mdrissi/tensorflow_stubs/blob/main/stubs/tensorflow/summary.pyi
2024-02-16 06:05:54 -08:00
David Salvisberg
9b260a59cc oauthlib: Fix annotations for oauthlib.oauth2.RequestValidator (#11417) 2024-02-16 05:46:32 -08:00
Sebastian Rittau
8a38ae62fb Update fpdf2 to 2.7.8 (#11410)
Closes: #11407
2024-02-16 05:45:29 -08:00
Leonard Richardson
cb27610970 html5lib: Additional types (#11411) 2024-02-15 21:26:25 -08:00
Alex Waygood
7c3cb9971d Further improve return types in the numbers module (#11375) 2024-02-15 21:04:25 -08:00
Avasam
48a0497b23 Bump setuptools to 69.1.* (#11423) 2024-02-14 19:58:21 +01:00
Sebastian Rittau
4664986cea Turn TextIOWrapper(buffer) into a protocol (#11420) 2024-02-14 19:49:28 +01:00
Watal M. Iwasaki
a3d356c04c ftplib: Correct timeout option to float | None (#11419) 2024-02-14 10:25:48 +00:00
Akuli
41245698e0 Delete a few simple type aliases in tkinter (#11415) 2024-02-13 11:37:32 +01:00
Akuli
b44d22e81d Use bool | Literal[0, 1] instead of int in some tkinter bool parameters (#11412)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-02-13 02:06:00 +02:00
Riley Miļeško
5382d24d1d Fix return type of calendar.HTMLCalendar.formatyearpage (#11413) 2024-02-12 22:50:32 +00:00
Marcell Perger
4585c714d9 Add annotations and defaults for tkinter.ttk.OptionMenu (#11404)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2024-02-12 21:33:42 +02:00
pa-tna
2c43162728 Pillow: Allow float(s) for cutoff param of autocontrast (#11409) 2024-02-12 14:07:03 +01:00
Marcell Perger
13aed8a1c2 Add defaults for tkinter.ttk __init__ methods (#11405)
NOTE: I've ignored things marked as undocumented or where the type of the default didn't match the annotation.
2024-02-12 12:54:12 +02:00
Andrew Murray
3e021f3330 Pillow: ImageOps.autocontrast can set low and high cutoffs separately (#11408)
ImageOps.autocontrast can set low and high cutoffs separately
2024-02-12 08:20:44 +01:00
github-actions[bot]
238772ad7e [stubsabot] Bump influxdb-client to 1.40.* (#11406)
Release: https://pypi.org/pypi/influxdb-client/1.40.0
Homepage: https://github.com/influxdata/influxdb-client-python
Repository: https://github.com/influxdata/influxdb-client-python
Diff: https://github.com/influxdata/influxdb-client-python/compare/v1.39.0...v1.40.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.
 - 4 files included in typeshed's stubs have been modified or renamed: `influxdb_client/_sync/rest.py`, `influxdb_client/client/write/point.py`, `influxdb_client/client/write_api.py`, `influxdb_client/version.py`.
 - Total lines of Python code added: 133.
 - Total lines of Python code deleted: 4.

---------

Co-authored-by: stubsabot <>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-02-12 00:48:21 +00:00
Marcell Perger
49d5827141 Add annotations for tkinter.ttk.LabeledScale (#11402) 2024-02-11 20:05:27 +02:00
Mike Zimin
a773d3f6e7 unicodedata.pyi: Add normalization form literal (#11390) 2024-02-11 16:20:52 +01:00
github-actions[bot]
7e6b89189f [stubsabot] Bump pyinstaller to 6.4.* (#11398) 2024-02-11 16:18:04 +01:00
Ali Hamdan
0bf3951e54 netaddr: Bump to version 1.0 (#11401)
Closes #11395
2024-02-11 01:50:32 -08:00
Marcell Perger
5eb040b1e6 Fix tkinter.ttk's compound argument (#11393)
Allow the empty string (`""`).
2024-02-10 20:55:08 +02:00
Marcell Perger
187928d8ce Add defaults for tkinter __init__ methods (#11391)
Add defaults for `tkinter`'s `__init__` methods, see #10947 

Some notes about specific arguments:
- `variable` and `textvariable`: The default value (using `dict`) is consistently `""` but this doesn't match the annotated `Variable` type so I didn't fill these in
- `Message(padx, pady)`: The default value is `-1` which is not allowed according to the documentation so I didn't fill this in
- `Toplevel(use)`: The default value is always `""` but this doesn't match the annotated `int` type so I didn't fill this in
2024-02-10 20:51:27 +02:00
Neil Girdhar
9d90eeb296 Fix networkx stub; location of subgraph_view, etc. (#11385) 2024-02-09 13:01:53 +01:00
Alex Waygood
15cdc20744 Fix stdlib stubtest for Python 3.11.8 and 3.12.2 (#11384)
Fix stubtest for Python 3.11.8 and 3.12.2
2024-02-09 02:28:03 -08:00
github-actions[bot]
4eeb0e62bb [stubsabot] Bump flake8-bugbear to 24.2.6 (#11379) 2024-02-08 08:33:31 +01:00
Ran Benita
a4f81a67a0 sys: add last_exc on Python>=3.12 (#11378)
https://docs.python.org/3/library/sys.html#sys.last_exc
2024-02-07 20:37:48 +00:00
M Bussonnier
edf41ae5e2 Update type of Formatter.convert_field (missing |None) (#11377)
From the source it expects that the second parameter (conversion), can
be None:

```python
   def convert_field(self, value, conversion):
        # do any conversion on the resulting object
        if conversion is None:
            return value
   ...
```

Since at least 17 years according to git blame, as None is refered as
early as 11529195cae2438a3ac003babcb1b11af67c4037
And still present in main branch:

ef3ceab09d/Lib/string.py
2024-02-07 19:24:21 +00:00
Alex Waygood
994d22bfbb Pin peewee more tightly for stubtest (#11372)
Fixes  #11367
2024-02-06 18:12:52 +00:00
Tapple Gao
dfd954c79c Bump pexpect to 4.9 (#11287) 2024-02-05 22:54:48 -08:00
Akuli
e6e2f22e6c Annotate tkinter.Canvas.type() (#11366) 2024-02-06 07:31:59 +01:00
Alex Waygood
ed38e99138 influx-db: fix flake8 (#11365) 2024-02-05 18:40:17 +00:00
Avasam
489e8309b5 Type obj parameter of PIL.Image.fromarray (#11176) 2024-02-05 05:42:52 -08:00
Takumasa N
f11eb92bf4 subprocess: Use _CMD instead of str | bytes in getstatusoutput and getoutput (#11354) 2024-02-05 05:36:55 -08:00
Hoël Bagard
684f541357 tensorflow: Add tensorflow.keras.callbacks module (#11332) 2024-02-05 05:19:04 -08:00
Sebastian Rittau
00ec3fe4d8 Bump influxdb-client to 1.39.* (#11116)
Type a few task-related items
2024-02-05 05:10:18 -08:00
Marcell Perger
2c29505765 Fix tkinter overrelief argument (#11360) 2024-02-05 14:40:22 +02:00
Alex Waygood
a2a6aee892 Fix annotation for ast.alias.name (#11364)
This isn't necessarily always an identifier:

```pycon
>>> print(ast.dump(ast.parse('from typing import *'), indent=2))
Module(
  body=[
    ImportFrom(
      module='typing',
      names=[
        alias(name='*')],
      level=0)],
  type_ignores=[])
>>> '*'.isidentifier()
False
```
2024-02-05 01:42:20 +00:00
Hoël Bagard
3600c805eb tensorflow fix tensorflow.data.Dataset's zip (#11357) 2024-02-04 17:23:04 -08:00
Alex Waygood
bf58d62e74 Update test dependencies (#11361) 2024-02-05 00:53:21 +00:00
Alex Waygood
c49c84f319 A new shade of Black (#11362) 2024-02-04 16:38:55 -08:00
Hoël Bagard
7a6a749449 tensorflow: bump version to 2.15 (#11352) 2024-02-03 07:28:25 -08:00
github-actions[bot]
5ce34dc096 [stubsabot] Bump pytz to 2024.1 (#11355) 2024-02-03 02:22:13 +01:00
Alex Waygood
4d8ee113fb Add more return types to the numbers module (#11353) 2024-02-01 18:12:41 +00:00
Hoël Bagard
587e75ff88 tensorflow: add tf.train.CheckpointOptions and other tf.train members. (#11327) 2024-02-01 07:33:13 -08:00
Nikita Sobolev
547cbc748f Remove pluggy stubs (#11351) 2024-01-31 13:30:20 -08:00