basedpyright 1.10.3 → 1.10.4
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/_typeshed/__init__.pyi +7 -2
- package/dist/typeshed-fallback/stdlib/asyncio/constants.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/asyncio/locks.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/asyncio/sslproto.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/asyncio/streams.pyi +10 -5
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +23 -22
- package/dist/typeshed-fallback/stdlib/email/message.pyi +26 -27
- package/dist/typeshed-fallback/stdlib/email/parser.pyi +25 -15
- package/dist/typeshed-fallback/stdlib/http/__init__.pyi +68 -68
- package/dist/typeshed-fallback/stdlib/http/client.pyi +7 -21
- package/dist/typeshed-fallback/stdlib/inspect.pyi +24 -24
- package/dist/typeshed-fallback/stdlib/multiprocessing/synchronize.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/plistlib.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/pstats.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/py_compile.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/signal.pyi +46 -46
- package/dist/typeshed-fallback/stdlib/socket.pyi +75 -75
- package/dist/typeshed-fallback/stdlib/ssl.pyi +81 -81
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +38 -38
- package/dist/typeshed-fallback/stdlib/typing.pyi +22 -14
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/uuid.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/winreg.pyi +75 -46
- package/dist/typeshed-fallback/stubs/Pillow/METADATA.toml +1 -0
- package/dist/typeshed-fallback/stubs/Pillow/PIL/BlpImagePlugin.pyi +7 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ExifTags.pyi +331 -331
- package/dist/typeshed-fallback/stubs/Pillow/PIL/FtexImagePlugin.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Pillow/PIL/Image.pyi +28 -28
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageCms.pyi +7 -7
- package/dist/typeshed-fallback/stubs/Pillow/PIL/ImageFont.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Pillow/PIL/PngImagePlugin.pyi +5 -5
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/reservoir.pyi +3 -3
- package/dist/typeshed-fallback/stubs/boltons/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/boltons/boltons/ecoutils.pyi +0 -1
- package/dist/typeshed-fallback/stubs/boltons/boltons/funcutils.pyi +15 -0
- package/dist/typeshed-fallback/stubs/boltons/boltons/ioutils.pyi +0 -2
- package/dist/typeshed-fallback/stubs/boltons/boltons/strutils.pyi +4 -6
- package/dist/typeshed-fallback/stubs/boltons/boltons/urlutils.pyi +2 -0
- package/dist/typeshed-fallback/stubs/capturer/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/capturer/capturer.pyi +122 -0
- package/dist/typeshed-fallback/stubs/croniter/croniter/croniter.pyi +1 -1
- package/dist/typeshed-fallback/stubs/dateparser/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/dateparser/dateparser/utils/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/docker/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/docker/docker/__init__.pyi +7 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/build.pyi +55 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/client.pyi +55 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/config.pyi +7 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/container.pyi +109 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/daemon.pyi +23 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/exec_api.pyi +22 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/image.pyi +59 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/network.pyi +34 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/plugin.pyi +14 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/secret.pyi +7 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/service.pyi +47 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/swarm.pyi +41 -0
- package/dist/typeshed-fallback/stubs/docker/docker/api/volume.pyi +14 -0
- package/dist/typeshed-fallback/stubs/docker/docker/auth.pyi +40 -0
- package/dist/typeshed-fallback/stubs/docker/docker/client.pyi +49 -0
- package/dist/typeshed-fallback/stubs/docker/docker/constants.pyi +22 -0
- package/dist/typeshed-fallback/stubs/docker/docker/context/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/docker/docker/context/api.pyi +30 -0
- package/dist/typeshed-fallback/stubs/docker/docker/context/config.pyi +10 -0
- package/dist/typeshed-fallback/stubs/docker/docker/context/context.pyi +47 -0
- package/dist/typeshed-fallback/stubs/docker/docker/credentials/__init__.pyi +8 -0
- package/dist/typeshed-fallback/stubs/docker/docker/credentials/constants.pyi +4 -0
- package/dist/typeshed-fallback/stubs/docker/docker/credentials/errors.pyi +7 -0
- package/dist/typeshed-fallback/stubs/docker/docker/credentials/store.pyi +11 -0
- package/dist/typeshed-fallback/stubs/docker/docker/credentials/utils.pyi +1 -0
- package/dist/typeshed-fallback/stubs/docker/docker/errors.pyi +71 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/configs.pyi +13 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +81 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/images.pyi +43 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/networks.pyi +19 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/nodes.pyi +13 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/plugins.pyi +25 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/resource.pyi +27 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/secrets.pyi +13 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/services.pyi +27 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/swarm.pyi +33 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/volumes.pyi +16 -0
- package/dist/typeshed-fallback/stubs/docker/docker/tls.pyi +10 -0
- package/dist/typeshed-fallback/stubs/docker/docker/transport/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/docker/docker/transport/basehttpadapter.pyi +4 -0
- package/dist/typeshed-fallback/stubs/docker/docker/transport/npipeconn.pyi +29 -0
- package/dist/typeshed-fallback/stubs/docker/docker/transport/npipesocket.pyi +49 -0
- package/dist/typeshed-fallback/stubs/docker/docker/transport/sshconn.pyi +49 -0
- package/dist/typeshed-fallback/stubs/docker/docker/transport/unixconn.pyi +31 -0
- package/dist/typeshed-fallback/stubs/docker/docker/types/__init__.pyi +35 -0
- package/dist/typeshed-fallback/stubs/docker/docker/types/base.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docker/docker/types/containers.pyi +164 -0
- package/dist/typeshed-fallback/stubs/docker/docker/types/daemon.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docker/docker/types/healthcheck.pyi +24 -0
- package/dist/typeshed-fallback/stubs/docker/docker/types/networks.pyi +31 -0
- package/dist/typeshed-fallback/stubs/docker/docker/types/services.pyi +170 -0
- package/dist/typeshed-fallback/stubs/docker/docker/types/swarm.pyi +29 -0
- package/dist/typeshed-fallback/stubs/docker/docker/utils/__init__.pyi +32 -0
- package/dist/typeshed-fallback/stubs/docker/docker/utils/build.pyi +38 -0
- package/dist/typeshed-fallback/stubs/docker/docker/utils/config.pyi +10 -0
- package/dist/typeshed-fallback/stubs/docker/docker/utils/decorators.pyi +3 -0
- package/dist/typeshed-fallback/stubs/docker/docker/utils/fnmatch.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docker/docker/utils/json_stream.pyi +10 -0
- package/dist/typeshed-fallback/stubs/docker/docker/utils/ports.pyi +9 -0
- package/dist/typeshed-fallback/stubs/docker/docker/utils/proxy.pyi +33 -0
- package/dist/typeshed-fallback/stubs/docker/docker/utils/socket.pyi +18 -0
- package/dist/typeshed-fallback/stubs/docker/docker/utils/utils.pyi +34 -0
- package/dist/typeshed-fallback/stubs/docker/docker/version.pyi +1 -0
- package/dist/typeshed-fallback/stubs/docutils/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/frontend.pyi +55 -11
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/states.pyi +1 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/tableparser.pyi +1 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/statemachine.pyi +3 -2
- package/dist/typeshed-fallback/stubs/editdistance/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/editdistance/editdistance/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/flake8-bugbear/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/flake8-builtins/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/enums.pyi +163 -163
- package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +5 -0
- package/dist/typeshed-fallback/stubs/hdbcli/hdbcli/dbapi.pyi +2 -1
- package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/__init__.pyi +40 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/cal.pyi +86 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/caselessdict.pyi +43 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/parser.pyi +58 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/parser_tools.pyi +17 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/prop.pyi +225 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone_cache.pyi +0 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/tools.pyi +10 -0
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/windows_to_olson.pyi +3 -0
- package/dist/typeshed-fallback/stubs/influxdb-client/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/flux_csv_parser.pyi +5 -5
- package/dist/typeshed-fallback/stubs/influxdb-client/influxdb_client/client/write_api.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness.pyi +9 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness_subset.pyi +8 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/closeness.pyi +11 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/degree_alg.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/dispersion.pyi +5 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/convert.pyi +5 -5
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/worksheet/worksheet.pyi +7 -2
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/client.pyi +4 -3
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/config.pyi +2 -1
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/dsskey.pyi +3 -3
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/ecdsakey.pyi +3 -3
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/ed25519key.pyi +2 -2
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/hostkeys.pyi +4 -3
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/pkey.pyi +4 -3
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/primes.pyi +3 -1
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/rsakey.pyi +3 -3
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/sftp_server.pyi +2 -1
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/transport.pyi +2 -1
- package/dist/typeshed-fallback/stubs/paramiko/paramiko/util.pyi +3 -3
- package/dist/typeshed-fallback/stubs/peewee/METADATA.toml +9 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +53 -22
- package/dist/typeshed-fallback/stubs/peewee/playhouse/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/peewee/playhouse/flask_utils.pyi +28 -0
- package/dist/typeshed-fallback/stubs/pika/pika/delivery_mode.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pika/pika/exchange_type.pyi +4 -4
- package/dist/typeshed-fallback/stubs/protobuf/METADATA.toml +4 -2
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/any_pb2.pyi +13 -8
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/api_pb2.pyi +25 -19
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/compiler/plugin_pb2.pyi +51 -17
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor.pyi +84 -82
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +743 -161
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor_pool.pyi +3 -7
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/duration_pb2.pyi +4 -3
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/empty_pb2.pyi +2 -2
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/field_mask_pb2.pyi +5 -3
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/internal/builder.pyi +2 -3
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/internal/containers.pyi +6 -5
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/internal/decoder.pyi +3 -3
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/internal/well_known_types.pyi +5 -7
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/json_format.pyi +19 -19
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/message.pyi +3 -3
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/message_factory.pyi +2 -2
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/source_context_pb2.pyi +4 -3
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/struct_pb2.pyi +17 -12
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/text_format.pyi +94 -92
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/timestamp_pb2.pyi +5 -6
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/type_pb2.pyi +43 -20
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/wrappers_pb2.pyi +50 -19
- package/dist/typeshed-fallback/stubs/psutil/psutil/_common.pyi +5 -5
- package/dist/typeshed-fallback/stubs/psutil/psutil/_pslinux.pyi +4 -4
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_windows.pyi +8 -6
- package/dist/typeshed-fallback/stubs/psutil/psutil/_pswindows.pyi +10 -10
- package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/_psycopg.pyi +3 -3
- package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/pool.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pyOpenSSL/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pyOpenSSL/OpenSSL/SSL.pyi +2 -3
- package/dist/typeshed-fallback/stubs/pycurl/METADATA.toml +2 -13
- package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +669 -639
- package/dist/typeshed-fallback/stubs/pyinstaller/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/build_main.pyi +2 -1
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/splash.pyi +19 -1
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +64 -64
- package/dist/typeshed-fallback/stubs/pynput/pynput/mouse/_base.pyi +33 -33
- package/dist/typeshed-fallback/stubs/python-crontab/crontab.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pytz/pytz/lazy.pyi +11 -7
- package/dist/typeshed-fallback/stubs/pywin32/win32comext/propsys/propsys.pyi +1 -1
- package/dist/typeshed-fallback/stubs/qrbill/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/qrbill/qrbill/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/qrbill/qrbill/bill.pyi +180 -0
- package/dist/typeshed-fallback/stubs/qrcode/qrcode/constants.pyi +6 -4
- package/dist/typeshed-fallback/stubs/qrcode/qrcode/main.pyi +68 -18
- package/dist/typeshed-fallback/stubs/qrcode/qrcode/util.pyi +24 -13
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/client.pyi +7 -7
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/cluster.pyi +56 -5
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/connection.pyi +210 -128
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/sentinel.pyi +141 -48
- package/dist/typeshed-fallback/stubs/redis/redis/cluster.pyi +1 -1
- package/dist/typeshed-fallback/stubs/redis/redis/commands/cluster.pyi +1 -1
- package/dist/typeshed-fallback/stubs/redis/redis/typing.pyi +2 -2
- package/dist/typeshed-fallback/stubs/regex/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/regex/regex/_regex_core.pyi +34 -34
- package/dist/typeshed-fallback/stubs/requests-oauthlib/requests_oauthlib/oauth2_session.pyi +1 -3
- package/dist/typeshed-fallback/stubs/s2clientprotocol/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/s2clientprotocol/s2clientprotocol/common_pb2.pyi +25 -23
- package/dist/typeshed-fallback/stubs/s2clientprotocol/s2clientprotocol/data_pb2.pyi +31 -28
- package/dist/typeshed-fallback/stubs/s2clientprotocol/s2clientprotocol/debug_pb2.pyi +53 -48
- package/dist/typeshed-fallback/stubs/s2clientprotocol/s2clientprotocol/error_pb2.pyi +1 -0
- package/dist/typeshed-fallback/stubs/s2clientprotocol/s2clientprotocol/query_pb2.pyi +33 -32
- package/dist/typeshed-fallback/stubs/s2clientprotocol/s2clientprotocol/raw_pb2.pyi +85 -71
- package/dist/typeshed-fallback/stubs/s2clientprotocol/s2clientprotocol/sc2api_pb2.pyi +246 -197
- package/dist/typeshed-fallback/stubs/s2clientprotocol/s2clientprotocol/score_pb2.pyi +31 -16
- package/dist/typeshed-fallback/stubs/s2clientprotocol/s2clientprotocol/spatial_pb2.pyi +75 -34
- package/dist/typeshed-fallback/stubs/s2clientprotocol/s2clientprotocol/ui_pb2.pyi +61 -59
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/groupby.pyi +2 -2
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/plot.pyi +1 -1
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/scales.pyi +3 -3
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/typing.pyi +1 -1
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/axisgrid.pyi +1 -1
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/categorical.pyi +12 -13
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/matrix.pyi +5 -7
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/utils.pyi +1 -3
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/distutils/_modified.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/bdist.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/command/install_lib.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compat/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/bdist.pyi +25 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/register.pyi +13 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/sdist.pyi +10 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/upload.pyi +13 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compat/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/editable_wheel.pyi +3 -3
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/contrib/discord.pyi +1 -6
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/contrib/slack.pyi +3 -1
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/contrib/telegram.pyi +3 -1
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/rich.pyi +3 -3
- package/dist/typeshed-fallback/stubs/waitress/METADATA.toml +1 -4
- package/dist/typeshed-fallback/stubs/waitress/waitress/__init__.pyi +16 -5
- package/dist/typeshed-fallback/stubs/waitress/waitress/adjustments.pyi +12 -9
- package/dist/typeshed-fallback/stubs/waitress/waitress/buffers.pyi +8 -9
- package/dist/typeshed-fallback/stubs/waitress/waitress/channel.pyi +14 -11
- package/dist/typeshed-fallback/stubs/waitress/waitress/compat.pyi +6 -28
- package/dist/typeshed-fallback/stubs/waitress/waitress/parser.pyi +3 -2
- package/dist/typeshed-fallback/stubs/waitress/waitress/proxy_headers.pyi +12 -11
- package/dist/typeshed-fallback/stubs/waitress/waitress/rfc7230.pyi +27 -12
- package/dist/typeshed-fallback/stubs/waitress/waitress/runner.pyi +6 -5
- package/dist/typeshed-fallback/stubs/waitress/waitress/server.pyi +40 -37
- package/dist/typeshed-fallback/stubs/waitress/waitress/task.pyi +11 -10
- package/dist/typeshed-fallback/stubs/waitress/waitress/trigger.pyi +4 -3
- package/dist/typeshed-fallback/stubs/waitress/waitress/utilities.pyi +11 -11
- package/dist/typeshed-fallback/stubs/waitress/waitress/wasyncore.pyi +31 -34
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/tzlocal/METADATA.toml +0 -4
- package/dist/typeshed-fallback/stubs/tzlocal/tzlocal/__init__.pyi +0 -8
- package/dist/typeshed-fallback/stubs/tzlocal/tzlocal/utils.pyi +0 -4
- package/dist/typeshed-fallback/stubs/tzlocal/tzlocal/windows_tz.pyi +0 -4
|
@@ -56,13 +56,13 @@ USE_CFFI_ACCESS: bool
|
|
|
56
56
|
def isImageType(t: object) -> TypeGuard[Image]: ...
|
|
57
57
|
|
|
58
58
|
class Transpose(IntEnum):
|
|
59
|
-
FLIP_LEFT_RIGHT
|
|
60
|
-
FLIP_TOP_BOTTOM
|
|
61
|
-
ROTATE_90
|
|
62
|
-
ROTATE_180
|
|
63
|
-
ROTATE_270
|
|
64
|
-
TRANSPOSE
|
|
65
|
-
TRANSVERSE
|
|
59
|
+
FLIP_LEFT_RIGHT = 0
|
|
60
|
+
FLIP_TOP_BOTTOM = 1
|
|
61
|
+
ROTATE_90 = 2
|
|
62
|
+
ROTATE_180 = 3
|
|
63
|
+
ROTATE_270 = 4
|
|
64
|
+
TRANSPOSE = 5
|
|
65
|
+
TRANSVERSE = 6
|
|
66
66
|
|
|
67
67
|
# All Transpose items
|
|
68
68
|
FLIP_LEFT_RIGHT: Literal[0]
|
|
@@ -74,11 +74,11 @@ TRANSPOSE: Literal[5]
|
|
|
74
74
|
TRANSVERSE: Literal[6]
|
|
75
75
|
|
|
76
76
|
class Transform(IntEnum):
|
|
77
|
-
AFFINE
|
|
78
|
-
EXTENT
|
|
79
|
-
PERSPECTIVE
|
|
80
|
-
QUAD
|
|
81
|
-
MESH
|
|
77
|
+
AFFINE = 0
|
|
78
|
+
EXTENT = 1
|
|
79
|
+
PERSPECTIVE = 2
|
|
80
|
+
QUAD = 3
|
|
81
|
+
MESH = 4
|
|
82
82
|
|
|
83
83
|
# All Transform items
|
|
84
84
|
AFFINE: Literal[0]
|
|
@@ -88,12 +88,12 @@ QUAD: Literal[3]
|
|
|
88
88
|
MESH: Literal[4]
|
|
89
89
|
|
|
90
90
|
class Resampling(IntEnum):
|
|
91
|
-
NEAREST
|
|
92
|
-
LANCZOS
|
|
93
|
-
BILINEAR
|
|
94
|
-
BICUBIC
|
|
95
|
-
BOX
|
|
96
|
-
HAMMING
|
|
91
|
+
NEAREST = 0
|
|
92
|
+
LANCZOS = 1
|
|
93
|
+
BILINEAR = 2
|
|
94
|
+
BICUBIC = 3
|
|
95
|
+
BOX = 4
|
|
96
|
+
HAMMING = 5
|
|
97
97
|
|
|
98
98
|
# All Resampling items
|
|
99
99
|
NEAREST: Literal[0]
|
|
@@ -104,10 +104,10 @@ BOX: Literal[4]
|
|
|
104
104
|
HAMMING: Literal[5]
|
|
105
105
|
|
|
106
106
|
class Dither(IntEnum):
|
|
107
|
-
NONE
|
|
108
|
-
ORDERED
|
|
109
|
-
RASTERIZE
|
|
110
|
-
FLOYDSTEINBERG
|
|
107
|
+
NONE = 0
|
|
108
|
+
ORDERED = 1
|
|
109
|
+
RASTERIZE = 2
|
|
110
|
+
FLOYDSTEINBERG = 3
|
|
111
111
|
|
|
112
112
|
# All Dither items
|
|
113
113
|
NONE: Literal[0]
|
|
@@ -116,18 +116,18 @@ RASTERIZE: Literal[2]
|
|
|
116
116
|
FLOYDSTEINBERG: Literal[3]
|
|
117
117
|
|
|
118
118
|
class Palette(IntEnum):
|
|
119
|
-
WEB
|
|
120
|
-
ADAPTIVE
|
|
119
|
+
WEB = 0
|
|
120
|
+
ADAPTIVE = 1
|
|
121
121
|
|
|
122
122
|
# All Palette items
|
|
123
123
|
WEB: Literal[0]
|
|
124
124
|
ADAPTIVE: Literal[1]
|
|
125
125
|
|
|
126
126
|
class Quantize(IntEnum):
|
|
127
|
-
MEDIANCUT
|
|
128
|
-
MAXCOVERAGE
|
|
129
|
-
FASTOCTREE
|
|
130
|
-
LIBIMAGEQUANT
|
|
127
|
+
MEDIANCUT = 0
|
|
128
|
+
MAXCOVERAGE = 1
|
|
129
|
+
FASTOCTREE = 2
|
|
130
|
+
LIBIMAGEQUANT = 3
|
|
131
131
|
|
|
132
132
|
# All Quantize items
|
|
133
133
|
MEDIANCUT: Literal[0]
|
|
@@ -9,15 +9,15 @@ VERSION: str
|
|
|
9
9
|
core: Incomplete
|
|
10
10
|
|
|
11
11
|
class Intent(IntEnum):
|
|
12
|
-
PERCEPTUAL
|
|
13
|
-
RELATIVE_COLORIMETRIC
|
|
14
|
-
SATURATION
|
|
15
|
-
ABSOLUTE_COLORIMETRIC
|
|
12
|
+
PERCEPTUAL = 0
|
|
13
|
+
RELATIVE_COLORIMETRIC = 1
|
|
14
|
+
SATURATION = 2
|
|
15
|
+
ABSOLUTE_COLORIMETRIC = 3
|
|
16
16
|
|
|
17
17
|
class Direction(IntEnum):
|
|
18
|
-
INPUT
|
|
19
|
-
OUTPUT
|
|
20
|
-
PROOF
|
|
18
|
+
INPUT = 0
|
|
19
|
+
OUTPUT = 1
|
|
20
|
+
PROOF = 2
|
|
21
21
|
|
|
22
22
|
FLAGS: Incomplete
|
|
23
23
|
|
|
@@ -10,13 +10,13 @@ MAX_TEXT_CHUNK: Incomplete
|
|
|
10
10
|
MAX_TEXT_MEMORY: Incomplete
|
|
11
11
|
|
|
12
12
|
class Disposal(IntEnum):
|
|
13
|
-
OP_NONE
|
|
14
|
-
OP_BACKGROUND
|
|
15
|
-
OP_PREVIOUS
|
|
13
|
+
OP_NONE = 0
|
|
14
|
+
OP_BACKGROUND = 1
|
|
15
|
+
OP_PREVIOUS = 2
|
|
16
16
|
|
|
17
17
|
class Blend(IntEnum):
|
|
18
|
-
OP_SOURCE
|
|
19
|
-
OP_OVER
|
|
18
|
+
OP_SOURCE = 0
|
|
19
|
+
OP_OVER = 1
|
|
20
20
|
|
|
21
21
|
class ChunkStream:
|
|
22
22
|
fp: Incomplete
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
version = "
|
|
1
|
+
version = "24.0.*"
|
|
2
2
|
upstream_repository = "https://github.com/mahmoud/boltons"
|
|
@@ -4,6 +4,21 @@ from functools import total_ordering as total_ordering
|
|
|
4
4
|
|
|
5
5
|
NO_DEFAULT: Incomplete
|
|
6
6
|
|
|
7
|
+
def inspect_formatargspec(
|
|
8
|
+
args,
|
|
9
|
+
varargs=None,
|
|
10
|
+
varkw=None,
|
|
11
|
+
defaults=None,
|
|
12
|
+
kwonlyargs=(),
|
|
13
|
+
kwonlydefaults={},
|
|
14
|
+
annotations={},
|
|
15
|
+
formatarg=...,
|
|
16
|
+
formatvarargs=...,
|
|
17
|
+
formatvarkw=...,
|
|
18
|
+
formatvalue=...,
|
|
19
|
+
formatreturns=...,
|
|
20
|
+
formatannotation=...,
|
|
21
|
+
): ...
|
|
7
22
|
def get_module_callables(mod, ignore: Incomplete | None = None): ...
|
|
8
23
|
def mro_items(type_obj): ...
|
|
9
24
|
def dir_dict(obj, raise_exc: bool = False): ...
|
|
@@ -5,8 +5,6 @@ from typing import Any, TypeVar
|
|
|
5
5
|
_KT = TypeVar("_KT")
|
|
6
6
|
_VT = TypeVar("_VT")
|
|
7
7
|
|
|
8
|
-
unichr = chr
|
|
9
|
-
|
|
10
8
|
def camel2under(camel_string: str) -> str: ...
|
|
11
9
|
def under2camel(under_string: str) -> str: ...
|
|
12
10
|
def slugify(text: str, delim: str = "_", lower: bool = True, ascii: bool = False) -> str: ...
|
|
@@ -49,6 +47,10 @@ def args2sh(args: list[str], sep: str = " ") -> str: ...
|
|
|
49
47
|
def args2cmd(args: list[str], sep: str = " ") -> str: ...
|
|
50
48
|
def parse_int_list(range_string: str, delim: str = ",", range_delim: str = "-") -> list[int]: ...
|
|
51
49
|
def format_int_list(int_list: list[int], delim: str = ",", range_delim: str = "-", delim_space: bool = False) -> str: ...
|
|
50
|
+
def complement_int_list(
|
|
51
|
+
range_string: str, range_start: int = 0, range_end: int | None = None, delim: str = ",", range_delim: str = "-"
|
|
52
|
+
) -> str: ...
|
|
53
|
+
def int_ranges_from_int_list(range_string: str, delim: str = ",", range_delim: str = "-") -> tuple[int, int]: ...
|
|
52
54
|
|
|
53
55
|
class MultiReplace:
|
|
54
56
|
group_map: dict[str, str]
|
|
@@ -58,7 +60,3 @@ class MultiReplace:
|
|
|
58
60
|
|
|
59
61
|
def multi_replace(text: str, sub_map: dict[str, str], **kwargs) -> str: ...
|
|
60
62
|
def unwrap_text(text: str, ending: str = "\n\n") -> str: ...
|
|
61
|
-
|
|
62
|
-
# Names in __all__ with no definition:
|
|
63
|
-
# int_list_complement
|
|
64
|
-
# int_list_to_int_tuples
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
from _typeshed import FileDescriptorOrPath, SupportsWrite
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from io import BufferedReader
|
|
4
|
+
from multiprocessing import Process
|
|
5
|
+
from multiprocessing.queues import Queue
|
|
6
|
+
from multiprocessing.synchronize import Event
|
|
7
|
+
from signal import Signals
|
|
8
|
+
from types import FrameType, TracebackType
|
|
9
|
+
from typing import IO, Any, NoReturn
|
|
10
|
+
from typing_extensions import Self
|
|
11
|
+
|
|
12
|
+
__version__: str
|
|
13
|
+
aliases: dict[str, Any]
|
|
14
|
+
DEFAULT_TEXT_ENCODING: str
|
|
15
|
+
GRACEFUL_SHUTDOWN_SIGNAL: Signals
|
|
16
|
+
TERMINATION_DELAY: float
|
|
17
|
+
PARTIAL_DEFAULT: bool
|
|
18
|
+
STDOUT_FD: int
|
|
19
|
+
STDERR_FD: int
|
|
20
|
+
|
|
21
|
+
def enable_old_api() -> None: ...
|
|
22
|
+
def create_proxy_method(name: str) -> Callable[..., Any]: ...
|
|
23
|
+
|
|
24
|
+
class MultiProcessHelper:
|
|
25
|
+
processes: list[Process]
|
|
26
|
+
def __init__(self) -> None: ...
|
|
27
|
+
def start_child(self, target: Callable[[Event], Any]) -> None: ...
|
|
28
|
+
def stop_children(self) -> None: ...
|
|
29
|
+
def wait_for_children(self) -> None: ...
|
|
30
|
+
def enable_graceful_shutdown(self) -> None: ...
|
|
31
|
+
def raise_shutdown_request(self, signum: int, frame: FrameType | None) -> NoReturn: ...
|
|
32
|
+
|
|
33
|
+
class CaptureOutput(MultiProcessHelper):
|
|
34
|
+
chunk_size: int
|
|
35
|
+
encoding: str
|
|
36
|
+
merged: bool
|
|
37
|
+
relay: bool
|
|
38
|
+
termination_delay: float
|
|
39
|
+
pseudo_terminals: list[PseudoTerminal]
|
|
40
|
+
streams: list[tuple[int, Stream]]
|
|
41
|
+
stdout_stream: Stream
|
|
42
|
+
stderr_stream: Stream
|
|
43
|
+
output: PseudoTerminal
|
|
44
|
+
output_queue: Queue[tuple[Any, bytes]]
|
|
45
|
+
stdout: PseudoTerminal
|
|
46
|
+
stderr: PseudoTerminal
|
|
47
|
+
def __init__(
|
|
48
|
+
self, merged: bool = True, encoding: str = ..., termination_delay: float = ..., chunk_size: int = 1024, relay: bool = True
|
|
49
|
+
) -> None: ...
|
|
50
|
+
def initialize_stream(self, file_obj: IO[str], expected_fd: int) -> Stream: ...
|
|
51
|
+
def __enter__(self) -> Self: ...
|
|
52
|
+
def __exit__(
|
|
53
|
+
self,
|
|
54
|
+
exc_type: type[BaseException] | None = None,
|
|
55
|
+
exc_val: BaseException | None = None,
|
|
56
|
+
exc_tb: TracebackType | None = None,
|
|
57
|
+
) -> bool | None: ...
|
|
58
|
+
@property
|
|
59
|
+
def is_capturing(self) -> bool: ...
|
|
60
|
+
def start_capture(self) -> None: ...
|
|
61
|
+
def finish_capture(self) -> None: ...
|
|
62
|
+
def allocate_pty(
|
|
63
|
+
self, relay_fd: int | None = None, output_queue: Queue[tuple[Any, bytes]] | None = None, queue_token: Any | None = None
|
|
64
|
+
) -> PseudoTerminal: ...
|
|
65
|
+
def merge_loop(self, started_event: Event) -> None: ...
|
|
66
|
+
def get_handle(self, partial: bool = ...) -> BufferedReader: ...
|
|
67
|
+
def get_bytes(self, partial: bool = ...) -> bytes: ...
|
|
68
|
+
def get_lines(self, interpreted: bool = True, partial: bool = ...) -> list[str]: ...
|
|
69
|
+
def get_text(self, interpreted: bool = ..., partial: bool = ...) -> str: ...
|
|
70
|
+
def save_to_handle(self, handle: SupportsWrite[bytes], partial: bool = ...) -> None: ...
|
|
71
|
+
def save_to_path(self, filename: FileDescriptorOrPath, partial: bool = ...) -> None: ...
|
|
72
|
+
|
|
73
|
+
class OutputBuffer:
|
|
74
|
+
fd: int
|
|
75
|
+
buffer: bytes
|
|
76
|
+
def __init__(self, fd: int) -> None: ...
|
|
77
|
+
def add(self, output: bytes) -> None: ...
|
|
78
|
+
def flush(self) -> None: ...
|
|
79
|
+
|
|
80
|
+
class PseudoTerminal(MultiProcessHelper):
|
|
81
|
+
encoding: str
|
|
82
|
+
termination_delay: float
|
|
83
|
+
chunk_size: int
|
|
84
|
+
relay_fd: int | None
|
|
85
|
+
output_queue: Queue[tuple[Any, bytes]] | None
|
|
86
|
+
queue_token: Any | None
|
|
87
|
+
streams: list[Stream]
|
|
88
|
+
master_fd: int
|
|
89
|
+
slave_fd: int
|
|
90
|
+
output_fd: int
|
|
91
|
+
output_handle: BufferedReader
|
|
92
|
+
def __init__(
|
|
93
|
+
self,
|
|
94
|
+
encoding: str,
|
|
95
|
+
termination_delay: float,
|
|
96
|
+
chunk_size: int,
|
|
97
|
+
relay_fd: int | None,
|
|
98
|
+
output_queue: Queue[tuple[int, bytes]] | None,
|
|
99
|
+
queue_token: Any | None,
|
|
100
|
+
) -> None: ...
|
|
101
|
+
def attach(self, stream: Stream) -> None: ...
|
|
102
|
+
def start_capture(self) -> None: ...
|
|
103
|
+
def finish_capture(self) -> None: ...
|
|
104
|
+
def close_pseudo_terminal(self) -> None: ...
|
|
105
|
+
def restore_streams(self) -> None: ...
|
|
106
|
+
def get_handle(self, partial: bool = ...) -> BufferedReader: ...
|
|
107
|
+
def get_bytes(self, partial: bool = ...) -> bytes: ...
|
|
108
|
+
def get_lines(self, interpreted: bool = True, partial: bool = ...) -> list[str]: ...
|
|
109
|
+
def get_text(self, interpreted: bool = ..., partial: bool = ...) -> str: ...
|
|
110
|
+
def save_to_handle(self, handle: SupportsWrite[bytes], partial: bool = ...) -> None: ...
|
|
111
|
+
def save_to_path(self, filename: FileDescriptorOrPath, partial: bool = ...) -> None: ...
|
|
112
|
+
def capture_loop(self, started_event: Event) -> None: ...
|
|
113
|
+
|
|
114
|
+
class Stream:
|
|
115
|
+
fd: int
|
|
116
|
+
original_fd: int
|
|
117
|
+
is_redirected: bool
|
|
118
|
+
def __init__(self, fd: int) -> None: ...
|
|
119
|
+
def redirect(self, target_fd: int) -> None: ...
|
|
120
|
+
def restore(self) -> None: ...
|
|
121
|
+
|
|
122
|
+
class ShutdownRequested(Exception): ...
|
|
@@ -103,7 +103,7 @@ class croniter(Iterator[Any]):
|
|
|
103
103
|
@classmethod
|
|
104
104
|
def expand(cls, expr_format: str, hash_id: bytes | None = None) -> tuple[list[list[str]], dict[str, set[int]]]: ...
|
|
105
105
|
@classmethod
|
|
106
|
-
def is_valid(cls, expression: str, hash_id: bytes | None = None) -> bool: ...
|
|
106
|
+
def is_valid(cls, expression: str, hash_id: bytes | None = None, encoding: str = "UTF-8") -> bool: ...
|
|
107
107
|
@classmethod
|
|
108
108
|
def match(cls, cron_expression: str, testdate: float | datetime.datetime | None, day_or: bool = True) -> bool: ...
|
|
109
109
|
@classmethod
|
|
@@ -18,6 +18,7 @@ def get_last_day_of_month(year, month): ...
|
|
|
18
18
|
def get_previous_leap_year(year): ...
|
|
19
19
|
def get_next_leap_year(year): ...
|
|
20
20
|
def set_correct_day_from_settings(date_obj, settings, current_day: Incomplete | None = None): ...
|
|
21
|
+
def set_correct_month_from_settings(date_obj, settings, current_month=None): ...
|
|
21
22
|
def registry(cls): ...
|
|
22
23
|
def get_logger() -> Any: ...
|
|
23
24
|
def setup_logging() -> None: ...
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
from .api import APIClient as APIClient
|
|
2
|
+
from .client import DockerClient as DockerClient, from_env as from_env
|
|
3
|
+
from .context import Context as Context, ContextAPI as ContextAPI
|
|
4
|
+
from .tls import TLSConfig as TLSConfig
|
|
5
|
+
from .version import __version__ as __version__
|
|
6
|
+
|
|
7
|
+
__title__: str
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .client import APIClient as APIClient
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
from collections.abc import Generator
|
|
2
|
+
from io import StringIO
|
|
3
|
+
from logging import Logger
|
|
4
|
+
from typing import IO, Any, TypedDict, type_check_only
|
|
5
|
+
|
|
6
|
+
log: Logger
|
|
7
|
+
|
|
8
|
+
@type_check_only
|
|
9
|
+
class _ContainerLimits(TypedDict, total=False):
|
|
10
|
+
memory: int
|
|
11
|
+
memswap: int
|
|
12
|
+
cpushares: int
|
|
13
|
+
cpusetcpus: str
|
|
14
|
+
|
|
15
|
+
@type_check_only
|
|
16
|
+
class _Filers(TypedDict, total=False):
|
|
17
|
+
dangling: bool
|
|
18
|
+
until: str
|
|
19
|
+
|
|
20
|
+
class BuildApiMixin:
|
|
21
|
+
def build(
|
|
22
|
+
self,
|
|
23
|
+
path: str | None = None,
|
|
24
|
+
tag: str | None = None,
|
|
25
|
+
quiet: bool = False,
|
|
26
|
+
fileobj: StringIO | IO[bytes] | None = None,
|
|
27
|
+
nocache: bool = False,
|
|
28
|
+
rm: bool = False,
|
|
29
|
+
timeout: int | None = None,
|
|
30
|
+
custom_context: bool = False,
|
|
31
|
+
encoding: str | None = None,
|
|
32
|
+
pull: bool = False,
|
|
33
|
+
forcerm: bool = False,
|
|
34
|
+
dockerfile: str | None = None,
|
|
35
|
+
container_limits: _ContainerLimits | None = None,
|
|
36
|
+
decode: bool = False,
|
|
37
|
+
buildargs: dict[str, Any] | None = None,
|
|
38
|
+
gzip: bool = False,
|
|
39
|
+
shmsize: int | None = None,
|
|
40
|
+
labels: dict[str, Any] | None = None,
|
|
41
|
+
# need to use list, because the type must be json serializable
|
|
42
|
+
cache_from: list[str] | None = None,
|
|
43
|
+
target: str | None = None,
|
|
44
|
+
network_mode: str | None = None,
|
|
45
|
+
squash: bool | None = None,
|
|
46
|
+
extra_hosts: list[str] | dict[str, str] | None = None,
|
|
47
|
+
platform: str | None = None,
|
|
48
|
+
isolation: str | None = None,
|
|
49
|
+
use_config_proxy: bool = True,
|
|
50
|
+
) -> Generator[Any, None, None]: ...
|
|
51
|
+
def prune_builds(
|
|
52
|
+
self, filters: _Filers | None = None, keep_storage: int | None = None, all: bool | None = None
|
|
53
|
+
) -> dict[str, Any]: ...
|
|
54
|
+
|
|
55
|
+
def process_dockerfile(dockerfile: str | None, path: str) -> tuple[str | None, str | None]: ...
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Mapping, Sequence
|
|
3
|
+
|
|
4
|
+
import requests
|
|
5
|
+
from docker.tls import TLSConfig
|
|
6
|
+
from requests.adapters import BaseAdapter
|
|
7
|
+
|
|
8
|
+
from .build import BuildApiMixin
|
|
9
|
+
from .config import ConfigApiMixin
|
|
10
|
+
from .container import ContainerApiMixin
|
|
11
|
+
from .daemon import DaemonApiMixin
|
|
12
|
+
from .exec_api import ExecApiMixin
|
|
13
|
+
from .image import ImageApiMixin
|
|
14
|
+
from .network import NetworkApiMixin
|
|
15
|
+
from .plugin import PluginApiMixin
|
|
16
|
+
from .secret import SecretApiMixin
|
|
17
|
+
from .service import ServiceApiMixin
|
|
18
|
+
from .swarm import SwarmApiMixin
|
|
19
|
+
from .volume import VolumeApiMixin
|
|
20
|
+
|
|
21
|
+
class APIClient(
|
|
22
|
+
requests.Session,
|
|
23
|
+
BuildApiMixin,
|
|
24
|
+
ConfigApiMixin,
|
|
25
|
+
ContainerApiMixin,
|
|
26
|
+
DaemonApiMixin,
|
|
27
|
+
ExecApiMixin,
|
|
28
|
+
ImageApiMixin,
|
|
29
|
+
NetworkApiMixin,
|
|
30
|
+
PluginApiMixin,
|
|
31
|
+
SecretApiMixin,
|
|
32
|
+
ServiceApiMixin,
|
|
33
|
+
SwarmApiMixin,
|
|
34
|
+
VolumeApiMixin,
|
|
35
|
+
):
|
|
36
|
+
__attrs__: Sequence[str]
|
|
37
|
+
base_url: str
|
|
38
|
+
timeout: int
|
|
39
|
+
credstore_env: Mapping[Incomplete, Incomplete] | None
|
|
40
|
+
def __init__(
|
|
41
|
+
self,
|
|
42
|
+
base_url: str | None = None,
|
|
43
|
+
version: str | None = None,
|
|
44
|
+
timeout: int = 60,
|
|
45
|
+
tls: bool | TLSConfig = False,
|
|
46
|
+
user_agent: str = "docker-sdk-python/7.0.0",
|
|
47
|
+
num_pools: int | None = None,
|
|
48
|
+
credstore_env: Mapping[Incomplete, Incomplete] | None = None,
|
|
49
|
+
use_ssh_client: bool = False,
|
|
50
|
+
max_pool_size: int = 10,
|
|
51
|
+
) -> None: ...
|
|
52
|
+
def get_adapter(self, url: str) -> BaseAdapter: ...
|
|
53
|
+
@property
|
|
54
|
+
def api_version(self) -> str: ...
|
|
55
|
+
def reload_config(self, dockercfg_path: str | None = None) -> None: ...
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class ConfigApiMixin:
|
|
4
|
+
def create_config(self, name, data, labels: Incomplete | None = None, templating: Incomplete | None = None): ...
|
|
5
|
+
def inspect_config(self, id): ...
|
|
6
|
+
def remove_config(self, id): ...
|
|
7
|
+
def configs(self, filters: Incomplete | None = None): ...
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class ContainerApiMixin:
|
|
4
|
+
def attach(
|
|
5
|
+
self, container, stdout: bool = True, stderr: bool = True, stream: bool = False, logs: bool = False, demux: bool = False
|
|
6
|
+
): ...
|
|
7
|
+
def attach_socket(self, container, params: Incomplete | None = None, ws: bool = False): ...
|
|
8
|
+
def commit(
|
|
9
|
+
self,
|
|
10
|
+
container,
|
|
11
|
+
repository: str | None = None,
|
|
12
|
+
tag: str | None = None,
|
|
13
|
+
message: Incomplete | None = None,
|
|
14
|
+
author: Incomplete | None = None,
|
|
15
|
+
pause: bool = True,
|
|
16
|
+
changes: Incomplete | None = None,
|
|
17
|
+
conf: Incomplete | None = None,
|
|
18
|
+
): ...
|
|
19
|
+
def containers(
|
|
20
|
+
self,
|
|
21
|
+
quiet: bool = False,
|
|
22
|
+
all: bool = False,
|
|
23
|
+
trunc: bool = False,
|
|
24
|
+
latest: bool = False,
|
|
25
|
+
since: Incomplete | None = None,
|
|
26
|
+
before: Incomplete | None = None,
|
|
27
|
+
limit: int = -1,
|
|
28
|
+
size: bool = False,
|
|
29
|
+
filters: Incomplete | None = None,
|
|
30
|
+
): ...
|
|
31
|
+
def create_container(
|
|
32
|
+
self,
|
|
33
|
+
image,
|
|
34
|
+
command: Incomplete | None = None,
|
|
35
|
+
hostname: Incomplete | None = None,
|
|
36
|
+
user: Incomplete | None = None,
|
|
37
|
+
detach: bool = False,
|
|
38
|
+
stdin_open: bool = False,
|
|
39
|
+
tty: bool = False,
|
|
40
|
+
ports: Incomplete | None = None,
|
|
41
|
+
environment: Incomplete | None = None,
|
|
42
|
+
volumes: Incomplete | None = None,
|
|
43
|
+
network_disabled: bool = False,
|
|
44
|
+
name: Incomplete | None = None,
|
|
45
|
+
entrypoint: Incomplete | None = None,
|
|
46
|
+
working_dir: Incomplete | None = None,
|
|
47
|
+
domainname: Incomplete | None = None,
|
|
48
|
+
host_config: Incomplete | None = None,
|
|
49
|
+
mac_address: Incomplete | None = None,
|
|
50
|
+
labels: Incomplete | None = None,
|
|
51
|
+
stop_signal: Incomplete | None = None,
|
|
52
|
+
networking_config: Incomplete | None = None,
|
|
53
|
+
healthcheck: Incomplete | None = None,
|
|
54
|
+
stop_timeout: Incomplete | None = None,
|
|
55
|
+
runtime: Incomplete | None = None,
|
|
56
|
+
use_config_proxy: bool = True,
|
|
57
|
+
platform: Incomplete | None = None,
|
|
58
|
+
): ...
|
|
59
|
+
def create_container_config(self, *args, **kwargs): ...
|
|
60
|
+
def create_container_from_config(self, config, name: Incomplete | None = None, platform: Incomplete | None = None): ...
|
|
61
|
+
def create_host_config(self, *args, **kwargs): ...
|
|
62
|
+
def create_networking_config(self, *args, **kwargs): ...
|
|
63
|
+
def create_endpoint_config(self, *args, **kwargs): ...
|
|
64
|
+
def diff(self, container): ...
|
|
65
|
+
def export(self, container, chunk_size=2097152): ...
|
|
66
|
+
def get_archive(self, container, path, chunk_size=2097152, encode_stream: bool = False): ...
|
|
67
|
+
def inspect_container(self, container): ...
|
|
68
|
+
def kill(self, container, signal: Incomplete | None = None) -> None: ...
|
|
69
|
+
def logs(
|
|
70
|
+
self,
|
|
71
|
+
container,
|
|
72
|
+
stdout: bool = True,
|
|
73
|
+
stderr: bool = True,
|
|
74
|
+
stream: bool = False,
|
|
75
|
+
timestamps: bool = False,
|
|
76
|
+
tail: str = "all",
|
|
77
|
+
since: Incomplete | None = None,
|
|
78
|
+
follow: Incomplete | None = None,
|
|
79
|
+
until: Incomplete | None = None,
|
|
80
|
+
): ...
|
|
81
|
+
def pause(self, container) -> None: ...
|
|
82
|
+
def port(self, container, private_port): ...
|
|
83
|
+
def put_archive(self, container, path, data): ...
|
|
84
|
+
def prune_containers(self, filters: Incomplete | None = None): ...
|
|
85
|
+
def remove_container(self, container, v: bool = False, link: bool = False, force: bool = False) -> None: ...
|
|
86
|
+
def rename(self, container, name) -> None: ...
|
|
87
|
+
def resize(self, container, height, width) -> None: ...
|
|
88
|
+
def restart(self, container, timeout: int = 10) -> None: ...
|
|
89
|
+
def start(self, container, *args, **kwargs) -> None: ...
|
|
90
|
+
def stats(self, container, decode: Incomplete | None = None, stream: bool = True, one_shot: Incomplete | None = None): ...
|
|
91
|
+
def stop(self, container, timeout: Incomplete | None = None) -> None: ...
|
|
92
|
+
def top(self, container, ps_args: Incomplete | None = None): ...
|
|
93
|
+
def unpause(self, container) -> None: ...
|
|
94
|
+
def update_container(
|
|
95
|
+
self,
|
|
96
|
+
container,
|
|
97
|
+
blkio_weight: Incomplete | None = None,
|
|
98
|
+
cpu_period: Incomplete | None = None,
|
|
99
|
+
cpu_quota: Incomplete | None = None,
|
|
100
|
+
cpu_shares: Incomplete | None = None,
|
|
101
|
+
cpuset_cpus: Incomplete | None = None,
|
|
102
|
+
cpuset_mems: Incomplete | None = None,
|
|
103
|
+
mem_limit: Incomplete | None = None,
|
|
104
|
+
mem_reservation: Incomplete | None = None,
|
|
105
|
+
memswap_limit: Incomplete | None = None,
|
|
106
|
+
kernel_memory: Incomplete | None = None,
|
|
107
|
+
restart_policy: Incomplete | None = None,
|
|
108
|
+
): ...
|
|
109
|
+
def wait(self, container, timeout: Incomplete | None = None, condition: Incomplete | None = None): ...
|