basedpyright 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/VERSIONS +3 -1
- package/dist/typeshed-fallback/stdlib/_ast.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_bisect.pyi +221 -221
- package/dist/typeshed-fallback/stdlib/_csv.pyi +213 -213
- package/dist/typeshed-fallback/stdlib/_curses.pyi +1 -2
- package/dist/typeshed-fallback/stdlib/_heapq.pyi +67 -67
- package/dist/typeshed-fallback/stdlib/_interpchannels.pyi +84 -0
- package/dist/typeshed-fallback/stdlib/_json.pyi +92 -92
- package/dist/typeshed-fallback/stdlib/_lsprof.pyi +92 -92
- package/dist/typeshed-fallback/stdlib/_random.pyi +30 -30
- package/dist/typeshed-fallback/stdlib/_tkinter.pyi +7 -0
- package/dist/typeshed-fallback/stdlib/_weakref.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/argparse.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/array.pyi +281 -281
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +56 -37
- package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +4 -1
- package/dist/typeshed-fallback/stdlib/asyncio/unix_events.pyi +156 -134
- package/dist/typeshed-fallback/stdlib/asyncio/windows_events.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/audioop.pyi +95 -95
- package/dist/typeshed-fallback/stdlib/binascii.pyi +123 -123
- package/dist/typeshed-fallback/stdlib/cmath.pyi +112 -112
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +2 -5
- package/dist/typeshed-fallback/stdlib/math.pyi +424 -424
- package/dist/typeshed-fallback/stdlib/mmap.pyi +160 -154
- package/dist/typeshed-fallback/stdlib/multiprocessing/context.pyi +10 -6
- package/dist/typeshed-fallback/stdlib/multiprocessing/sharedctypes.pyi +33 -12
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/posixpath.pyi +3 -13
- package/dist/typeshed-fallback/stdlib/spwd.pyi +9 -0
- package/dist/typeshed-fallback/stdlib/subprocess.pyi +8 -0
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +23 -1
- package/dist/typeshed-fallback/stdlib/telnetlib.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/typing.pyi +21 -2
- package/dist/typeshed-fallback/stdlib/weakref.pyi +4 -1
- package/dist/typeshed-fallback/stdlib/xml/sax/handler.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/zlib.pyi +157 -157
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/flask_socketio/__init__.pyi +4 -4
- package/dist/typeshed-fallback/stubs/aiofiles/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/aiofiles/aiofiles/base.pyi +6 -20
- package/dist/typeshed-fallback/stubs/aiofiles/aiofiles/os.pyi +2 -0
- package/dist/typeshed-fallback/stubs/aiofiles/aiofiles/ospath.pyi +5 -3
- package/dist/typeshed-fallback/stubs/aiofiles/aiofiles/tempfile/__init__.pyi +143 -79
- package/dist/typeshed-fallback/stubs/aiofiles/aiofiles/threadpool/__init__.pyi +5 -5
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/extracting.pyi +7 -1
- package/dist/typeshed-fallback/stubs/docker/docker/_types.pyi +8 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/container.pyi +2 -2
- package/dist/typeshed-fallback/stubs/docker/docker/api/image.pyi +3 -2
- package/dist/typeshed-fallback/stubs/docker/docker/api/network.pyi +32 -15
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +36 -7
- package/dist/typeshed-fallback/stubs/docker/docker/models/images.pyi +67 -5
- package/dist/typeshed-fallback/stubs/docker/docker/models/networks.pyi +20 -3
- package/dist/typeshed-fallback/stubs/docker/docker/types/containers.pyi +78 -70
- package/dist/typeshed-fallback/stubs/docker/docker/utils/json_stream.pyi +4 -7
- package/dist/typeshed-fallback/stubs/flake8/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +16 -5
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/image_datastructures.pyi +2 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/table.pyi +4 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/text_region.pyi +7 -7
- package/dist/typeshed-fallback/stubs/hdbcli/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/hdbcli/hdbcli/dbapi.pyi +1 -0
- package/dist/typeshed-fallback/stubs/hvac/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/raft.pyi +9 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/wrapping.pyi +1 -0
- package/dist/typeshed-fallback/stubs/influxdb-client/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/_pages.pyi +37 -0
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/bucket_api.pyi +5 -1
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/tasks_api.pyi +4 -3
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/domain/bucket.pyi +6 -6
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/domain/task.pyi +6 -6
- package/dist/typeshed-fallback/stubs/networkx/METADATA.toml +3 -1
- package/dist/typeshed-fallback/stubs/olefile/olefile/olefile.pyi +41 -31
- package/dist/typeshed-fallback/stubs/openpyxl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/cell/rich_text.pyi +3 -0
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/chart/trendline.pyi +1 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/descriptors/base.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/descriptors/container.pyi +18 -0
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/descriptors/sequence.pyi +20 -12
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/packaging/custom.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/packaging/extended.pyi +2 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/packaging/relationship.pyi +6 -11
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/pivot/cache.pyi +66 -135
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/pivot/fields.pyi +2 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/alignment.pyi +0 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/borders.pyi +0 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/fills.pyi +3 -3
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/named_styles.pyi +5 -10
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/utils/cell.pyi +2 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/utils/indexed_list.pyi +2 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/workbook/defined_name.pyi +2 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/_read_only.pyi +11 -3
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/datavalidation.pyi +2 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/dimensions.pyi +6 -3
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/filters.pyi +26 -22
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/hyperlink.pyi +3 -5
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/views.pyi +5 -2
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/worksheet.pyi +4 -2
- package/dist/typeshed-fallback/stubs/peewee/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +6 -1
- package/dist/typeshed-fallback/stubs/protobuf/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +84 -15
- package/dist/typeshed-fallback/stubs/psutil/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/psutil/psutil/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stubs/psutil/psutil/_common.pyi +0 -2
- package/dist/typeshed-fallback/stubs/psutil/psutil/_compat.pyi +0 -1
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psaix.pyi +1 -1
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psbsd.pyi +1 -1
- package/dist/typeshed-fallback/stubs/psutil/psutil/_pslinux.pyi +2 -2
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psosx.pyi +1 -1
- package/dist/typeshed-fallback/stubs/psutil/psutil/_pssunos.pyi +1 -1
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_osx.pyi +1 -1
- package/dist/typeshed-fallback/stubs/psutil/psutil/_pswindows.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pyinstaller/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/__main__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/splash.pyi +0 -2
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/compat.pyi +2 -3
- package/dist/typeshed-fallback/stubs/reportlab/METADATA.toml +3 -2
- package/dist/typeshed-fallback/stubs/requests/requests/models.pyi +2 -2
- package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +2 -1
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/__init__.pyi +80 -50
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/__init__.pyi +2 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/build_meta.pyi +6 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/bdist_egg.pyi +3 -9
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/bdist_wheel.pyi +61 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/build_ext.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/build_py.pyi +12 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/easy_install.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/egg_info.pyi +4 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/install_lib.pyi +3 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py311.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/config/expand.pyi +0 -1
- package/dist/typeshed-fallback/stubs/shapely/METADATA.toml +2 -1
- package/dist/typeshed-fallback/stubs/shapely/shapely/_geometry.pyi +3 -3
- package/dist/typeshed-fallback/stubs/shapely/shapely/constructive.pyi +6 -6
- package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/base.pyi +3 -3
- package/dist/typeshed-fallback/stubs/shapely/shapely/io.pyi +2 -2
- package/dist/typeshed-fallback/stubs/shapely/shapely/strtree.pyi +9 -9
- package/dist/typeshed-fallback/stubs/tree-sitter-languages/METADATA.toml +1 -1
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/tree-sitter/METADATA.toml +0 -7
- package/dist/typeshed-fallback/stubs/tree-sitter/tree_sitter/__init__.pyi +0 -17
- package/dist/typeshed-fallback/stubs/tree-sitter/tree_sitter/binding.pyi +0 -115
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
from typing import Literal, TypedDict, type_check_only
|
|
2
4
|
|
|
3
5
|
from .base import DictType
|
|
6
|
+
from .services import Mount
|
|
7
|
+
|
|
8
|
+
@type_check_only
|
|
9
|
+
class ContainerWeightDevice(TypedDict):
|
|
10
|
+
Path: Path
|
|
11
|
+
Weight: int
|
|
4
12
|
|
|
5
13
|
class LogConfigTypesEnum:
|
|
6
14
|
JSON: Incomplete
|
|
@@ -63,71 +71,71 @@ class DeviceRequest(DictType):
|
|
|
63
71
|
class HostConfig(dict[str, Incomplete]):
|
|
64
72
|
def __init__(
|
|
65
73
|
self,
|
|
66
|
-
version,
|
|
74
|
+
version: str,
|
|
67
75
|
binds: Incomplete | None = None,
|
|
68
76
|
port_bindings: Incomplete | None = None,
|
|
69
|
-
lxc_conf: Incomplete | None = None,
|
|
77
|
+
lxc_conf: dict[Incomplete, Incomplete] | None = None,
|
|
70
78
|
publish_all_ports: bool = False,
|
|
71
|
-
links:
|
|
79
|
+
links: dict[str, str | None] | None = None,
|
|
72
80
|
privileged: bool = False,
|
|
73
|
-
dns: Incomplete | None = None,
|
|
74
|
-
dns_search: Incomplete | None = None,
|
|
75
|
-
volumes_from:
|
|
76
|
-
network_mode:
|
|
77
|
-
restart_policy: Incomplete | None = None,
|
|
78
|
-
cap_add:
|
|
79
|
-
cap_drop:
|
|
80
|
-
devices:
|
|
81
|
-
extra_hosts: Incomplete | None = None,
|
|
82
|
-
read_only:
|
|
83
|
-
pid_mode:
|
|
84
|
-
ipc_mode:
|
|
85
|
-
security_opt:
|
|
86
|
-
ulimits:
|
|
87
|
-
log_config:
|
|
88
|
-
mem_limit:
|
|
89
|
-
memswap_limit:
|
|
90
|
-
mem_reservation:
|
|
91
|
-
kernel_memory:
|
|
92
|
-
mem_swappiness:
|
|
93
|
-
cgroup_parent:
|
|
94
|
-
group_add:
|
|
95
|
-
cpu_quota:
|
|
96
|
-
cpu_period:
|
|
97
|
-
blkio_weight:
|
|
98
|
-
blkio_weight_device:
|
|
81
|
+
dns: list[Incomplete] | None = None,
|
|
82
|
+
dns_search: list[Incomplete] | None = None,
|
|
83
|
+
volumes_from: list[str] | None = None,
|
|
84
|
+
network_mode: str | None = None,
|
|
85
|
+
restart_policy: dict[Incomplete, Incomplete] | None = None,
|
|
86
|
+
cap_add: list[str] | None = None,
|
|
87
|
+
cap_drop: list[str] | None = None,
|
|
88
|
+
devices: list[str] | None = None,
|
|
89
|
+
extra_hosts: dict[Incomplete, Incomplete] | None = None,
|
|
90
|
+
read_only: bool | None = None,
|
|
91
|
+
pid_mode: str | None = None,
|
|
92
|
+
ipc_mode: str | None = None,
|
|
93
|
+
security_opt: list[str] | None = None,
|
|
94
|
+
ulimits: list[Ulimit] | None = None,
|
|
95
|
+
log_config: LogConfig | None = None,
|
|
96
|
+
mem_limit: str | int | None = None,
|
|
97
|
+
memswap_limit: str | int | None = None,
|
|
98
|
+
mem_reservation: str | int | None = None,
|
|
99
|
+
kernel_memory: str | int | None = None,
|
|
100
|
+
mem_swappiness: int | None = None,
|
|
101
|
+
cgroup_parent: str | None = None,
|
|
102
|
+
group_add: list[str | int] | None = None,
|
|
103
|
+
cpu_quota: int | None = None,
|
|
104
|
+
cpu_period: int | None = None,
|
|
105
|
+
blkio_weight: int | None = None,
|
|
106
|
+
blkio_weight_device: list[ContainerWeightDevice] | None = None,
|
|
99
107
|
device_read_bps: Incomplete | None = None,
|
|
100
108
|
device_write_bps: Incomplete | None = None,
|
|
101
109
|
device_read_iops: Incomplete | None = None,
|
|
102
110
|
device_write_iops: Incomplete | None = None,
|
|
103
111
|
oom_kill_disable: bool = False,
|
|
104
|
-
shm_size:
|
|
105
|
-
sysctls: Incomplete | None = None,
|
|
106
|
-
tmpfs:
|
|
107
|
-
oom_score_adj:
|
|
108
|
-
dns_opt: Incomplete | None = None,
|
|
109
|
-
cpu_shares:
|
|
110
|
-
cpuset_cpus:
|
|
111
|
-
userns_mode:
|
|
112
|
-
uts_mode:
|
|
113
|
-
pids_limit:
|
|
114
|
-
isolation:
|
|
112
|
+
shm_size: str | int | None = None,
|
|
113
|
+
sysctls: dict[Incomplete, Incomplete] | None = None,
|
|
114
|
+
tmpfs: dict[str, str] | None = None,
|
|
115
|
+
oom_score_adj: int | None = None,
|
|
116
|
+
dns_opt: list[Incomplete] | None = None,
|
|
117
|
+
cpu_shares: int | None = None,
|
|
118
|
+
cpuset_cpus: str | None = None,
|
|
119
|
+
userns_mode: str | None = None,
|
|
120
|
+
uts_mode: str | None = None,
|
|
121
|
+
pids_limit: int | None = None,
|
|
122
|
+
isolation: str | None = None,
|
|
115
123
|
auto_remove: bool = False,
|
|
116
|
-
storage_opt: Incomplete | None = None,
|
|
117
|
-
init:
|
|
118
|
-
init_path:
|
|
119
|
-
volume_driver:
|
|
120
|
-
cpu_count:
|
|
121
|
-
cpu_percent:
|
|
122
|
-
nano_cpus:
|
|
123
|
-
cpuset_mems:
|
|
124
|
-
runtime:
|
|
125
|
-
mounts:
|
|
126
|
-
cpu_rt_period:
|
|
127
|
-
cpu_rt_runtime:
|
|
128
|
-
device_cgroup_rules: Incomplete | None = None,
|
|
129
|
-
device_requests:
|
|
130
|
-
cgroupns:
|
|
124
|
+
storage_opt: dict[Incomplete, Incomplete] | None = None,
|
|
125
|
+
init: bool | None = None,
|
|
126
|
+
init_path: str | None = None,
|
|
127
|
+
volume_driver: str | None = None,
|
|
128
|
+
cpu_count: int | None = None,
|
|
129
|
+
cpu_percent: int | None = None,
|
|
130
|
+
nano_cpus: int | None = None,
|
|
131
|
+
cpuset_mems: str | None = None,
|
|
132
|
+
runtime: str | None = None,
|
|
133
|
+
mounts: list[Mount] | None = None,
|
|
134
|
+
cpu_rt_period: int | None = None,
|
|
135
|
+
cpu_rt_runtime: int | None = None,
|
|
136
|
+
device_cgroup_rules: list[Incomplete] | None = None,
|
|
137
|
+
device_requests: list[DeviceRequest] | None = None,
|
|
138
|
+
cgroupns: Literal["private", "host"] | None = None,
|
|
131
139
|
) -> None: ...
|
|
132
140
|
|
|
133
141
|
def host_config_type_error(param, param_value, expected): ...
|
|
@@ -138,27 +146,27 @@ def host_config_incompatible_error(param, param_value, incompatible_param): ...
|
|
|
138
146
|
class ContainerConfig(dict[str, Incomplete]):
|
|
139
147
|
def __init__(
|
|
140
148
|
self,
|
|
141
|
-
version,
|
|
149
|
+
version: str,
|
|
142
150
|
image,
|
|
143
|
-
command,
|
|
144
|
-
hostname:
|
|
145
|
-
user:
|
|
151
|
+
command: str | list[str],
|
|
152
|
+
hostname: str | None = None,
|
|
153
|
+
user: str | int | None = None,
|
|
146
154
|
detach: bool = False,
|
|
147
155
|
stdin_open: bool = False,
|
|
148
156
|
tty: bool = False,
|
|
149
|
-
ports:
|
|
150
|
-
environment:
|
|
151
|
-
volumes:
|
|
157
|
+
ports: dict[str, int | None] | None = None,
|
|
158
|
+
environment: dict[str, str] | list[str] | None = None,
|
|
159
|
+
volumes: str | list[str] | None = None,
|
|
152
160
|
network_disabled: bool = False,
|
|
153
|
-
entrypoint:
|
|
154
|
-
working_dir:
|
|
155
|
-
domainname:
|
|
161
|
+
entrypoint: str | list[str] | None = None,
|
|
162
|
+
working_dir: str | None = None,
|
|
163
|
+
domainname: str | None = None,
|
|
156
164
|
host_config: Incomplete | None = None,
|
|
157
|
-
mac_address:
|
|
158
|
-
labels:
|
|
159
|
-
stop_signal:
|
|
165
|
+
mac_address: str | None = None,
|
|
166
|
+
labels: dict[str, str] | list[str] | None = None,
|
|
167
|
+
stop_signal: str | None = None,
|
|
160
168
|
networking_config: Incomplete | None = None,
|
|
161
169
|
healthcheck: Incomplete | None = None,
|
|
162
|
-
stop_timeout:
|
|
163
|
-
runtime:
|
|
170
|
+
stop_timeout: int | None = None,
|
|
171
|
+
runtime: str | None = None,
|
|
164
172
|
) -> None: ...
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import json
|
|
2
2
|
from collections.abc import Callable, Generator, Iterator
|
|
3
3
|
from typing import Any
|
|
4
|
-
from typing_extensions import TypeAlias
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
from docker._types import JSON
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
# https://github.com/python/typing/issues/182#issuecomment-1320974824.
|
|
10
|
-
_JSON: TypeAlias = dict[str, _JSON] | list[_JSON] | str | int | float | bool | None
|
|
7
|
+
json_decoder: json.JSONDecoder
|
|
11
8
|
|
|
12
9
|
def stream_as_text(stream: Iterator[str | bytes]) -> Generator[str, None, None]: ...
|
|
13
|
-
def json_splitter(buffer: str) -> tuple[
|
|
14
|
-
def json_stream(stream: Iterator[str]) -> Generator[
|
|
10
|
+
def json_splitter(buffer: str) -> tuple[JSON, str] | None: ...
|
|
11
|
+
def json_stream(stream: Iterator[str]) -> Generator[JSON, None, None]: ...
|
|
15
12
|
def line_splitter(buffer: str, separator: str = "\n") -> tuple[str, str] | None: ...
|
|
16
13
|
def split_buffer(
|
|
17
14
|
stream: Iterator[str | bytes], splitter: Callable[[str], tuple[str, str]] | None = None, decoder: Callable[[str], Any] = ...
|
|
@@ -25,9 +25,11 @@ from .enums import (
|
|
|
25
25
|
RenderStyle,
|
|
26
26
|
TableBordersLayout,
|
|
27
27
|
TableCellFillMode,
|
|
28
|
+
TableHeadingsDisplay,
|
|
28
29
|
TextDirection,
|
|
29
30
|
TextMarkupType,
|
|
30
31
|
TextMode as TextMode,
|
|
32
|
+
VAlign,
|
|
31
33
|
WrapMode as WrapMode,
|
|
32
34
|
XPos as XPos,
|
|
33
35
|
YPos as YPos,
|
|
@@ -41,14 +43,14 @@ from .image_datastructures import (
|
|
|
41
43
|
ImageInfo as ImageInfo,
|
|
42
44
|
RasterImageInfo as RasterImageInfo,
|
|
43
45
|
VectorImageInfo as VectorImageInfo,
|
|
44
|
-
|
|
46
|
+
_TextAlign,
|
|
45
47
|
)
|
|
46
48
|
from .output import OutputProducer, PDFPage
|
|
47
49
|
from .recorder import FPDFRecorder
|
|
48
50
|
from .structure_tree import StructureTreeBuilder
|
|
49
51
|
from .syntax import DestinationXYZ
|
|
50
52
|
from .table import Table
|
|
51
|
-
from .util import _Unit
|
|
53
|
+
from .util import Padding, _Unit
|
|
52
54
|
|
|
53
55
|
__all__ = [
|
|
54
56
|
"FPDF",
|
|
@@ -489,7 +491,7 @@ class FPDF(GraphicsStateMixin):
|
|
|
489
491
|
ncols: int = 1,
|
|
490
492
|
gutter: float = 10,
|
|
491
493
|
balance: bool = False,
|
|
492
|
-
text_align:
|
|
494
|
+
text_align: str | _TextAlign | tuple[_TextAlign | str, ...] = "LEFT",
|
|
493
495
|
line_height: float = 1,
|
|
494
496
|
l_margin: float | None = None,
|
|
495
497
|
r_margin: float | None = None,
|
|
@@ -570,17 +572,26 @@ class FPDF(GraphicsStateMixin):
|
|
|
570
572
|
self,
|
|
571
573
|
rows: Iterable[Incomplete] = (),
|
|
572
574
|
*,
|
|
573
|
-
|
|
575
|
+
# Keep in sync with `fpdf.table.Table`:
|
|
576
|
+
align: str | _TextAlign = "CENTER",
|
|
577
|
+
v_align: str | VAlign = "MIDDLE",
|
|
574
578
|
borders_layout: str | TableBordersLayout = ...,
|
|
575
579
|
cell_fill_color: int | tuple[Incomplete, ...] | DeviceGray | DeviceRGB | None = None,
|
|
576
580
|
cell_fill_mode: str | TableCellFillMode = ...,
|
|
577
581
|
col_widths: int | tuple[int, ...] | None = None,
|
|
578
582
|
first_row_as_headings: bool = True,
|
|
583
|
+
gutter_height: float = 0,
|
|
584
|
+
gutter_width: float = 0,
|
|
579
585
|
headings_style: FontFace = ...,
|
|
580
586
|
line_height: int | None = None,
|
|
581
587
|
markdown: bool = False,
|
|
582
|
-
text_align: str |
|
|
588
|
+
text_align: str | _TextAlign | tuple[str | _TextAlign, ...] = "JUSTIFY",
|
|
583
589
|
width: int | None = None,
|
|
590
|
+
wrapmode: WrapMode = ...,
|
|
591
|
+
padding: float | Padding | None = None,
|
|
592
|
+
outer_border_width: float | None = None,
|
|
593
|
+
num_heading_rows: int = 1,
|
|
594
|
+
repeat_headings: TableHeadingsDisplay | int = 1,
|
|
584
595
|
) -> _GeneratorContextManager[Table]: ...
|
|
585
596
|
@overload
|
|
586
597
|
def output( # type: ignore[overload-overlap]
|
|
@@ -31,6 +31,7 @@ _AlignLiteral: TypeAlias = Literal[
|
|
|
31
31
|
"r",
|
|
32
32
|
"j",
|
|
33
33
|
]
|
|
34
|
+
_TextAlign: TypeAlias = Align | _AlignLiteral
|
|
34
35
|
|
|
35
36
|
class ImageInfo(dict[str, Any]):
|
|
36
37
|
@property
|
|
@@ -43,7 +44,7 @@ class ImageInfo(dict[str, Any]):
|
|
|
43
44
|
def rendered_height(self) -> int: ...
|
|
44
45
|
def scale_inside_box(self, x: float, y: float, w: float, h: float) -> tuple[float, float, float, float]: ...
|
|
45
46
|
@staticmethod
|
|
46
|
-
def x_by_align(x:
|
|
47
|
+
def x_by_align(x: _TextAlign, w: float, pdf: FPDF, keep_aspect_ratio: Literal[False]) -> float: ...
|
|
47
48
|
|
|
48
49
|
class RasterImageInfo(ImageInfo):
|
|
49
50
|
def size_in_document_units(self, w: float, h: float, scale=1) -> tuple[float, float]: ...
|
|
@@ -10,6 +10,7 @@ from .drawing import DeviceGray, DeviceRGB
|
|
|
10
10
|
from .enums import Align, TableBordersLayout, TableCellFillMode, TableHeadingsDisplay, TableSpan, VAlign, WrapMode
|
|
11
11
|
from .fonts import FontFace
|
|
12
12
|
from .fpdf import FPDF
|
|
13
|
+
from .image_datastructures import _TextAlign
|
|
13
14
|
from .util import Padding
|
|
14
15
|
|
|
15
16
|
DEFAULT_HEADINGS_STYLE: FontFace
|
|
@@ -22,7 +23,8 @@ class Table:
|
|
|
22
23
|
fpdf: FPDF,
|
|
23
24
|
rows: Iterable[str] = (),
|
|
24
25
|
*,
|
|
25
|
-
|
|
26
|
+
# Keep in sync with `fpdf.fpdf.FPDF.table`:
|
|
27
|
+
align: str | _TextAlign = "CENTER",
|
|
26
28
|
v_align: str | VAlign = "MIDDLE",
|
|
27
29
|
borders_layout: str | TableBordersLayout = ...,
|
|
28
30
|
cell_fill_color: int | tuple[Incomplete, ...] | DeviceGray | DeviceRGB | None = None,
|
|
@@ -34,7 +36,7 @@ class Table:
|
|
|
34
36
|
headings_style: FontFace = ...,
|
|
35
37
|
line_height: int | None = None,
|
|
36
38
|
markdown: bool = False,
|
|
37
|
-
text_align: str |
|
|
39
|
+
text_align: str | _TextAlign | tuple[str | _TextAlign, ...] = "JUSTIFY",
|
|
38
40
|
width: int | None = None,
|
|
39
41
|
wrapmode: WrapMode = ...,
|
|
40
42
|
padding: float | Padding | None = None,
|
|
@@ -4,7 +4,7 @@ from typing import NamedTuple
|
|
|
4
4
|
from typing_extensions import Self
|
|
5
5
|
|
|
6
6
|
from .enums import Align, WrapMode
|
|
7
|
-
from .image_datastructures import RasterImageInfo, VectorImageInfo,
|
|
7
|
+
from .image_datastructures import RasterImageInfo, VectorImageInfo, _TextAlign
|
|
8
8
|
|
|
9
9
|
class Extents(NamedTuple):
|
|
10
10
|
left: float
|
|
@@ -24,7 +24,7 @@ class LineWrapper(NamedTuple):
|
|
|
24
24
|
|
|
25
25
|
class Paragraph:
|
|
26
26
|
pdf: Incomplete
|
|
27
|
-
text_align:
|
|
27
|
+
text_align: Align
|
|
28
28
|
line_height: Incomplete
|
|
29
29
|
top_margin: Incomplete
|
|
30
30
|
bottom_margin: Incomplete
|
|
@@ -34,7 +34,7 @@ class Paragraph:
|
|
|
34
34
|
def __init__(
|
|
35
35
|
self,
|
|
36
36
|
region,
|
|
37
|
-
text_align:
|
|
37
|
+
text_align: _TextAlign | None = None,
|
|
38
38
|
line_height: Incomplete | None = None,
|
|
39
39
|
top_margin: float = 0,
|
|
40
40
|
bottom_margin: float = 0,
|
|
@@ -67,7 +67,7 @@ class ImageParagraph:
|
|
|
67
67
|
self,
|
|
68
68
|
region,
|
|
69
69
|
name,
|
|
70
|
-
align:
|
|
70
|
+
align: _TextAlign | None = None,
|
|
71
71
|
width: float | None = None,
|
|
72
72
|
height: float | None = None,
|
|
73
73
|
fill_width: bool = False,
|
|
@@ -93,7 +93,7 @@ class ParagraphCollectorMixin:
|
|
|
93
93
|
pdf,
|
|
94
94
|
*args,
|
|
95
95
|
text: str | None = None,
|
|
96
|
-
text_align:
|
|
96
|
+
text_align: _TextAlign = "LEFT",
|
|
97
97
|
line_height: float = 1.0,
|
|
98
98
|
print_sh: bool = False,
|
|
99
99
|
skip_leading_spaces: bool = False,
|
|
@@ -108,7 +108,7 @@ class ParagraphCollectorMixin:
|
|
|
108
108
|
def ln(self, h: float | None = None) -> None: ...
|
|
109
109
|
def paragraph(
|
|
110
110
|
self,
|
|
111
|
-
text_align:
|
|
111
|
+
text_align: _TextAlign | None = None,
|
|
112
112
|
line_height: Incomplete | None = None,
|
|
113
113
|
skip_leading_spaces: bool = False,
|
|
114
114
|
top_margin: int = 0,
|
|
@@ -119,7 +119,7 @@ class ParagraphCollectorMixin:
|
|
|
119
119
|
def image(
|
|
120
120
|
self,
|
|
121
121
|
name,
|
|
122
|
-
align:
|
|
122
|
+
align: _TextAlign | None = None,
|
|
123
123
|
width: float | None = None,
|
|
124
124
|
height: float | None = None,
|
|
125
125
|
fill_width: bool = False,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
version = "2.
|
|
1
|
+
version = "2.21.*"
|
|
2
2
|
# upstream_repository = closed-source
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from typing import Any
|
|
2
3
|
|
|
3
4
|
from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin
|
|
5
|
+
from requests import Response
|
|
4
6
|
|
|
5
7
|
class Raft(SystemBackendMixin):
|
|
6
8
|
def join_raft_cluster(
|
|
@@ -16,3 +18,10 @@ class Raft(SystemBackendMixin):
|
|
|
16
18
|
def take_raft_snapshot(self): ...
|
|
17
19
|
def restore_raft_snapshot(self, snapshot): ...
|
|
18
20
|
def force_restore_raft_snapshot(self, snapshot): ...
|
|
21
|
+
def read_raft_auto_snapshot_status(self, name: str) -> Response: ...
|
|
22
|
+
def read_raft_auto_snapshot_config(self, name: str) -> Response: ...
|
|
23
|
+
def list_raft_auto_snapshot_configs(self) -> Response: ...
|
|
24
|
+
def create_or_update_raft_auto_snapshot_config(
|
|
25
|
+
self, name: str, interval: str, storage_type: str, retain: int = 1, **kwargs: Any
|
|
26
|
+
) -> Response: ...
|
|
27
|
+
def delete_raft_auto_snapshot_config(self, name: str) -> Response: ...
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from collections.abc import Callable
|
|
2
|
+
from typing import Any, Generic, Protocol, TypeVar
|
|
3
|
+
from typing_extensions import Self
|
|
4
|
+
|
|
5
|
+
class _HasId(Protocol):
|
|
6
|
+
@property
|
|
7
|
+
def id(self) -> str | None: ...
|
|
8
|
+
|
|
9
|
+
_R = TypeVar("_R", default=Any)
|
|
10
|
+
_T = TypeVar("_T", bound=_HasId)
|
|
11
|
+
|
|
12
|
+
class _Page(Generic[_T]):
|
|
13
|
+
has_next: bool
|
|
14
|
+
values: list[_T]
|
|
15
|
+
next_after: str | None
|
|
16
|
+
|
|
17
|
+
def __init__(self, values: list[_T], has_next: bool, next_after: str | None) -> None: ...
|
|
18
|
+
@staticmethod
|
|
19
|
+
def empty() -> _Page[_T]: ...
|
|
20
|
+
@staticmethod
|
|
21
|
+
def initial(after: str | None) -> _Page[_T]: ...
|
|
22
|
+
|
|
23
|
+
class _PageIterator(Generic[_T]):
|
|
24
|
+
page: _Page[_T]
|
|
25
|
+
get_next_page: Callable[[_Page[_T]], _Page[_T]]
|
|
26
|
+
|
|
27
|
+
def __init__(self, page: _Page[_T], get_next_page: Callable[[_Page[_T]], _Page[_T]]) -> None: ...
|
|
28
|
+
def __iter__(self) -> Self: ...
|
|
29
|
+
def __next__(self) -> _T: ...
|
|
30
|
+
|
|
31
|
+
class _Paginated(Generic[_T, _R]):
|
|
32
|
+
paginated_getter: Callable[..., _R] # Gets passed additional kwargs to find_iter().
|
|
33
|
+
pluck_page_resources_from_response: Callable[[_R], list[_T]]
|
|
34
|
+
def __init__(
|
|
35
|
+
self, paginated_getter: Callable[..., _R], pluck_page_resources_from_response: Callable[[_R], list[_T]]
|
|
36
|
+
) -> None: ...
|
|
37
|
+
def find_iter(self, *, after: str | None = None, **kwargs: Any) -> _PageIterator[_T]: ...
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
|
|
3
|
-
from
|
|
3
|
+
from ..domain.bucket import Bucket
|
|
4
|
+
from ._pages import _PageIterator
|
|
4
5
|
|
|
5
6
|
class BucketsApi:
|
|
6
7
|
def __init__(self, influxdb_client) -> None: ...
|
|
@@ -18,3 +19,6 @@ class BucketsApi:
|
|
|
18
19
|
def find_bucket_by_id(self, id): ...
|
|
19
20
|
def find_bucket_by_name(self, bucket_name): ...
|
|
20
21
|
def find_buckets(self, **kwargs): ...
|
|
22
|
+
def find_buckets_iter(
|
|
23
|
+
self, *, name: str = ..., org: str = ..., org_id: str = ..., after: str | None = None, limit: int = ...
|
|
24
|
+
) -> _PageIterator[Bucket]: ...
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
from collections.abc import Iterator
|
|
2
1
|
from datetime import datetime
|
|
3
2
|
|
|
4
3
|
from influxdb_client import LabelResponse, LogEvent, Run, TaskCreateRequest, TaskUpdateRequest
|
|
5
4
|
from influxdb_client.domain.task import Task
|
|
6
5
|
|
|
6
|
+
from ._pages import _PageIterator
|
|
7
|
+
|
|
7
8
|
class TasksApi:
|
|
8
9
|
def __init__(self, influxdb_client) -> None: ...
|
|
9
10
|
def find_task_by_id(self, task_id) -> Task: ...
|
|
@@ -11,8 +12,8 @@ class TasksApi:
|
|
|
11
12
|
self, *, name: str = ..., after: str = ..., user: str = ..., org: str = ..., org_id: str = ..., limit: int = ..., **kwargs
|
|
12
13
|
) -> list[Task]: ...
|
|
13
14
|
def find_tasks_iter(
|
|
14
|
-
self, *, name: str = ..., after: str =
|
|
15
|
-
) ->
|
|
15
|
+
self, *, name: str = ..., after: str | None = None, user: str = ..., org: str = ..., org_id: str = ..., limit: int = ...
|
|
16
|
+
) -> _PageIterator[Task]: ...
|
|
16
17
|
def create_task(self, task: Task | None = None, task_create_request: TaskCreateRequest | None = None) -> Task: ...
|
|
17
18
|
def create_task_every(self, name, flux, every, organization) -> Task: ...
|
|
18
19
|
def create_task_cron(self, name: str, flux: str, cron: str, org_id: str) -> Task: ...
|
|
@@ -7,11 +7,11 @@ class Bucket:
|
|
|
7
7
|
def __init__(
|
|
8
8
|
self,
|
|
9
9
|
links: Incomplete | None = None,
|
|
10
|
-
id:
|
|
10
|
+
id: str | None = None,
|
|
11
11
|
type: str = "user",
|
|
12
12
|
name: Incomplete | None = None,
|
|
13
13
|
description: Incomplete | None = None,
|
|
14
|
-
org_id:
|
|
14
|
+
org_id: str | None = None,
|
|
15
15
|
rp: Incomplete | None = None,
|
|
16
16
|
schema_type: Incomplete | None = None,
|
|
17
17
|
created_at: Incomplete | None = None,
|
|
@@ -24,9 +24,9 @@ class Bucket:
|
|
|
24
24
|
@links.setter
|
|
25
25
|
def links(self, links) -> None: ...
|
|
26
26
|
@property
|
|
27
|
-
def id(self): ...
|
|
27
|
+
def id(self) -> str | None: ...
|
|
28
28
|
@id.setter
|
|
29
|
-
def id(self, id) -> None: ...
|
|
29
|
+
def id(self, id: str) -> None: ...
|
|
30
30
|
@property
|
|
31
31
|
def type(self): ...
|
|
32
32
|
@type.setter
|
|
@@ -40,9 +40,9 @@ class Bucket:
|
|
|
40
40
|
@description.setter
|
|
41
41
|
def description(self, description) -> None: ...
|
|
42
42
|
@property
|
|
43
|
-
def org_id(self): ...
|
|
43
|
+
def org_id(self) -> str | None: ...
|
|
44
44
|
@org_id.setter
|
|
45
|
-
def org_id(self, org_id) -> None: ...
|
|
45
|
+
def org_id(self, org_id: str) -> None: ...
|
|
46
46
|
@property
|
|
47
47
|
def rp(self): ...
|
|
48
48
|
@rp.setter
|
|
@@ -6,8 +6,8 @@ class Task:
|
|
|
6
6
|
discriminator: Incomplete
|
|
7
7
|
def __init__(
|
|
8
8
|
self,
|
|
9
|
-
id:
|
|
10
|
-
org_id:
|
|
9
|
+
id: str | None = None,
|
|
10
|
+
org_id: str | None = None,
|
|
11
11
|
org: Incomplete | None = None,
|
|
12
12
|
name: Incomplete | None = None,
|
|
13
13
|
owner_id: Incomplete | None = None,
|
|
@@ -27,13 +27,13 @@ class Task:
|
|
|
27
27
|
links: Incomplete | None = None,
|
|
28
28
|
) -> None: ...
|
|
29
29
|
@property
|
|
30
|
-
def id(self): ...
|
|
30
|
+
def id(self) -> str | None: ...
|
|
31
31
|
@id.setter
|
|
32
|
-
def id(self, id) -> None: ...
|
|
32
|
+
def id(self, id: str) -> None: ...
|
|
33
33
|
@property
|
|
34
|
-
def org_id(self): ...
|
|
34
|
+
def org_id(self) -> str | None: ...
|
|
35
35
|
@org_id.setter
|
|
36
|
-
def org_id(self, org_id) -> None: ...
|
|
36
|
+
def org_id(self, org_id: str) -> None: ...
|
|
37
37
|
@property
|
|
38
38
|
def org(self): ...
|
|
39
39
|
@org.setter
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
version = "3.2.1"
|
|
2
2
|
upstream_repository = "https://github.com/networkx/networkx"
|
|
3
|
-
requires
|
|
3
|
+
# requires a version of numpy with a `py.typed` file
|
|
4
|
+
# TODO: Lots of stubtest errors when using numpy 2
|
|
5
|
+
requires = ["numpy>=1.20,<2"]
|
|
4
6
|
partial_stub = true
|
|
5
7
|
|
|
6
8
|
[tool.stubtest]
|