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
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
import asyncio
|
|
2
2
|
import enum
|
|
3
3
|
import ssl
|
|
4
|
-
from _typeshed import
|
|
4
|
+
from _typeshed import Unused
|
|
5
|
+
from abc import abstractmethod
|
|
5
6
|
from collections.abc import Callable, Iterable, Mapping
|
|
6
|
-
from
|
|
7
|
-
from
|
|
7
|
+
from types import MappingProxyType
|
|
8
|
+
from typing import Any, Final, Generic, Literal, Protocol, TypedDict, TypeVar, overload
|
|
9
|
+
from typing_extensions import Self, TypeAlias
|
|
8
10
|
|
|
9
|
-
from redis import RedisError
|
|
10
11
|
from redis.asyncio.retry import Retry
|
|
11
12
|
from redis.credentials import CredentialProvider
|
|
12
|
-
from redis.exceptions import ResponseError
|
|
13
|
+
from redis.exceptions import AuthenticationError, RedisError, ResponseError
|
|
13
14
|
from redis.typing import EncodableT, EncodedT
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
_SSLVerifyMode: TypeAlias = Literal["none", "optional", "required"]
|
|
17
|
+
|
|
18
|
+
SYM_STAR: Final[bytes]
|
|
19
|
+
SYM_DOLLAR: Final[bytes]
|
|
20
|
+
SYM_CRLF: Final[bytes]
|
|
21
|
+
SYM_LF: Final[bytes]
|
|
22
|
+
SYM_EMPTY: Final[bytes]
|
|
23
|
+
|
|
24
|
+
SERVER_CLOSED_CONNECTION_ERROR: Final[str]
|
|
22
25
|
|
|
23
26
|
class _Sentinel(enum.Enum):
|
|
24
|
-
sentinel
|
|
27
|
+
sentinel = object()
|
|
25
28
|
|
|
26
|
-
SENTINEL:
|
|
27
|
-
MODULE_LOAD_ERROR: str
|
|
28
|
-
NO_SUCH_MODULE_ERROR: str
|
|
29
|
-
MODULE_UNLOAD_NOT_POSSIBLE_ERROR: str
|
|
30
|
-
MODULE_EXPORTS_DATA_TYPES_ERROR: str
|
|
29
|
+
SENTINEL: Final[object]
|
|
30
|
+
MODULE_LOAD_ERROR: Final[str]
|
|
31
|
+
NO_SUCH_MODULE_ERROR: Final[str]
|
|
32
|
+
MODULE_UNLOAD_NOT_POSSIBLE_ERROR: Final[str]
|
|
33
|
+
MODULE_EXPORTS_DATA_TYPES_ERROR: Final[str]
|
|
34
|
+
NO_AUTH_SET_ERROR: Final[dict[str, type[AuthenticationError]]]
|
|
31
35
|
|
|
32
36
|
class Encoder:
|
|
33
|
-
encoding:
|
|
34
|
-
encoding_errors:
|
|
35
|
-
decode_responses:
|
|
37
|
+
encoding: str
|
|
38
|
+
encoding_errors: str
|
|
39
|
+
decode_responses: bool
|
|
36
40
|
def __init__(self, encoding: str, encoding_errors: str, decode_responses: bool) -> None: ...
|
|
37
41
|
def encode(self, value: EncodableT) -> EncodedT: ...
|
|
38
42
|
def decode(self, value: EncodableT, force: bool = False) -> EncodableT: ...
|
|
@@ -44,21 +48,28 @@ class BaseParser:
|
|
|
44
48
|
def __init__(self, socket_read_size: int) -> None: ...
|
|
45
49
|
@classmethod
|
|
46
50
|
def parse_error(cls, response: str) -> ResponseError: ...
|
|
51
|
+
@abstractmethod
|
|
47
52
|
def on_disconnect(self) -> None: ...
|
|
48
|
-
|
|
53
|
+
@abstractmethod
|
|
54
|
+
def on_connect(self, connection: AbstractConnection) -> None: ...
|
|
55
|
+
@abstractmethod
|
|
56
|
+
async def can_read_destructive(self) -> bool: ...
|
|
57
|
+
@abstractmethod
|
|
49
58
|
async def read_response(self, disable_decoding: bool = False) -> EncodableT | ResponseError | list[EncodableT] | None: ...
|
|
50
59
|
|
|
51
60
|
class PythonParser(BaseParser):
|
|
52
|
-
encoder:
|
|
61
|
+
encoder: Encoder | None
|
|
53
62
|
def __init__(self, socket_read_size: int) -> None: ...
|
|
54
|
-
def on_connect(self, connection:
|
|
63
|
+
def on_connect(self, connection: AbstractConnection) -> None: ...
|
|
55
64
|
def on_disconnect(self) -> None: ...
|
|
65
|
+
async def can_read_destructive(self) -> bool: ...
|
|
56
66
|
async def read_response(self, disable_decoding: bool = False) -> EncodableT | ResponseError | None: ...
|
|
57
67
|
|
|
58
68
|
class HiredisParser(BaseParser):
|
|
59
69
|
def __init__(self, socket_read_size: int) -> None: ...
|
|
60
|
-
def on_connect(self, connection:
|
|
70
|
+
def on_connect(self, connection: AbstractConnection) -> None: ...
|
|
61
71
|
def on_disconnect(self) -> None: ...
|
|
72
|
+
async def can_read_destructive(self) -> bool: ...
|
|
62
73
|
async def read_from_socket(self) -> Literal[True]: ...
|
|
63
74
|
async def read_response(self, disable_decoding: bool = False) -> EncodableT | list[EncodableT]: ...
|
|
64
75
|
|
|
@@ -72,39 +83,30 @@ class AsyncConnectCallbackProtocol(Protocol):
|
|
|
72
83
|
|
|
73
84
|
ConnectCallbackT: TypeAlias = ConnectCallbackProtocol | AsyncConnectCallbackProtocol
|
|
74
85
|
|
|
75
|
-
class
|
|
76
|
-
pid:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
password: Any
|
|
86
|
+
class AbstractConnection:
|
|
87
|
+
pid: int
|
|
88
|
+
db: str | int
|
|
89
|
+
client_name: str | None
|
|
90
|
+
credential_provider: CredentialProvider | None
|
|
91
|
+
password: str | None
|
|
92
|
+
username: str | None
|
|
83
93
|
socket_timeout: float | None
|
|
84
94
|
socket_connect_timeout: float | None
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
socket_type: Any
|
|
88
|
-
retry_on_timeout: Any
|
|
89
|
-
retry_on_error: list[type[RedisError]]
|
|
95
|
+
retry_on_timeout: bool
|
|
96
|
+
retry_on_error: list[type[Exception]]
|
|
90
97
|
retry: Retry
|
|
91
|
-
health_check_interval:
|
|
92
|
-
next_health_check:
|
|
93
|
-
|
|
94
|
-
encoder: Any
|
|
98
|
+
health_check_interval: float
|
|
99
|
+
next_health_check: float
|
|
100
|
+
encoder: Encoder
|
|
95
101
|
redis_connect_func: ConnectCallbackT | None
|
|
102
|
+
|
|
96
103
|
def __init__(
|
|
97
104
|
self,
|
|
98
105
|
*,
|
|
99
|
-
host: str = "localhost",
|
|
100
|
-
port: str | int = 6379,
|
|
101
106
|
db: str | int = 0,
|
|
102
107
|
password: str | None = None,
|
|
103
108
|
socket_timeout: float | None = None,
|
|
104
109
|
socket_connect_timeout: float | None = None,
|
|
105
|
-
socket_keepalive: bool = False,
|
|
106
|
-
socket_keepalive_options: Mapping[int, int | bytes] | None = None,
|
|
107
|
-
socket_type: int = 0,
|
|
108
110
|
retry_on_timeout: bool = False,
|
|
109
111
|
retry_on_error: list[type[RedisError]] | _Sentinel = ...,
|
|
110
112
|
encoding: str = "utf-8",
|
|
@@ -120,67 +122,125 @@ class Connection:
|
|
|
120
122
|
encoder_class: type[Encoder] = ...,
|
|
121
123
|
credential_provider: CredentialProvider | None = None,
|
|
122
124
|
) -> None: ...
|
|
123
|
-
|
|
125
|
+
@abstractmethod
|
|
126
|
+
def repr_pieces(self) -> list[tuple[str, Any]]: ...
|
|
124
127
|
@property
|
|
125
|
-
def is_connected(self): ...
|
|
126
|
-
def register_connect_callback(self, callback) -> None: ...
|
|
128
|
+
def is_connected(self) -> bool: ...
|
|
129
|
+
def register_connect_callback(self, callback: ConnectCallbackT) -> None: ...
|
|
127
130
|
def clear_connect_callbacks(self) -> None: ...
|
|
128
|
-
def set_parser(self, parser_class) -> None: ...
|
|
131
|
+
def set_parser(self, parser_class: type[BaseParser]) -> None: ...
|
|
129
132
|
async def connect(self) -> None: ...
|
|
130
133
|
async def on_connect(self) -> None: ...
|
|
131
134
|
async def disconnect(self, nowait: bool = False) -> None: ...
|
|
132
135
|
async def check_health(self) -> None: ...
|
|
133
|
-
async def send_packed_command(self, command: bytes | str | Iterable[bytes], check_health: bool = True): ...
|
|
134
|
-
async def send_command(self, *args, **kwargs) -> None: ...
|
|
135
|
-
|
|
136
|
-
async def read_response(self, *, timeout: float, disconnect_on_error: bool = True) -> Incomplete | None: ...
|
|
137
|
-
@overload
|
|
136
|
+
async def send_packed_command(self, command: bytes | str | Iterable[bytes], check_health: bool = True) -> None: ...
|
|
137
|
+
async def send_command(self, *args: Any, **kwargs: Any) -> None: ...
|
|
138
|
+
async def can_read_destructive(self) -> bool: ...
|
|
138
139
|
async def read_response(
|
|
139
|
-
self, disable_decoding: bool, timeout: float, *, disconnect_on_error: bool = True
|
|
140
|
-
) ->
|
|
141
|
-
@overload
|
|
142
|
-
async def read_response(self, disable_decoding: bool = False, timeout: None = None, *, disconnect_on_error: bool = True): ...
|
|
140
|
+
self, disable_decoding: bool = False, timeout: float | None = None, *, disconnect_on_error: bool = True
|
|
141
|
+
) -> EncodableT | list[EncodableT] | None: ...
|
|
143
142
|
def pack_command(self, *args: EncodableT) -> list[bytes]: ...
|
|
144
143
|
def pack_commands(self, commands: Iterable[Iterable[EncodableT]]) -> list[bytes]: ...
|
|
145
144
|
|
|
145
|
+
class Connection(AbstractConnection):
|
|
146
|
+
host: str
|
|
147
|
+
port: int
|
|
148
|
+
socket_keepalive: bool
|
|
149
|
+
socket_keepalive_options: Mapping[int, int | bytes] | None
|
|
150
|
+
socket_type: int
|
|
151
|
+
|
|
152
|
+
def __init__(
|
|
153
|
+
self,
|
|
154
|
+
*,
|
|
155
|
+
host: str = "localhost",
|
|
156
|
+
port: str | int = 6379,
|
|
157
|
+
socket_keepalive: bool = False,
|
|
158
|
+
socket_keepalive_options: Mapping[int, int | bytes] | None = None,
|
|
159
|
+
socket_type: int = 0,
|
|
160
|
+
# **kwargs forwarded to AbstractConnection.
|
|
161
|
+
db: str | int = 0,
|
|
162
|
+
password: str | None = None,
|
|
163
|
+
socket_timeout: float | None = None,
|
|
164
|
+
socket_connect_timeout: float | None = None,
|
|
165
|
+
retry_on_timeout: bool = False,
|
|
166
|
+
retry_on_error: list[type[RedisError]] | _Sentinel = ...,
|
|
167
|
+
encoding: str = "utf-8",
|
|
168
|
+
encoding_errors: str = "strict",
|
|
169
|
+
decode_responses: bool = False,
|
|
170
|
+
parser_class: type[BaseParser] = ...,
|
|
171
|
+
socket_read_size: int = 65536,
|
|
172
|
+
health_check_interval: float = 0,
|
|
173
|
+
client_name: str | None = None,
|
|
174
|
+
username: str | None = None,
|
|
175
|
+
retry: Retry | None = None,
|
|
176
|
+
redis_connect_func: ConnectCallbackT | None = None,
|
|
177
|
+
encoder_class: type[Encoder] = ...,
|
|
178
|
+
credential_provider: CredentialProvider | None = None,
|
|
179
|
+
) -> None: ...
|
|
180
|
+
def repr_pieces(self) -> list[tuple[str, Any]]: ...
|
|
181
|
+
|
|
146
182
|
class SSLConnection(Connection):
|
|
147
|
-
ssl_context:
|
|
183
|
+
ssl_context: RedisSSLContext
|
|
148
184
|
def __init__(
|
|
149
185
|
self,
|
|
150
186
|
ssl_keyfile: str | None = None,
|
|
151
187
|
ssl_certfile: str | None = None,
|
|
152
|
-
ssl_cert_reqs:
|
|
188
|
+
ssl_cert_reqs: _SSLVerifyMode = "required",
|
|
153
189
|
ssl_ca_certs: str | None = None,
|
|
154
190
|
ssl_ca_data: str | None = None,
|
|
155
191
|
ssl_check_hostname: bool = False,
|
|
156
|
-
|
|
192
|
+
*,
|
|
193
|
+
# **kwargs forwarded to Connection.
|
|
194
|
+
host: str = "localhost",
|
|
195
|
+
port: str | int = 6379,
|
|
196
|
+
socket_keepalive: bool = False,
|
|
197
|
+
socket_keepalive_options: Mapping[int, int | bytes] | None = None,
|
|
198
|
+
socket_type: int = 0,
|
|
199
|
+
db: str | int = 0,
|
|
200
|
+
password: str | None = None,
|
|
201
|
+
socket_timeout: float | None = None,
|
|
202
|
+
socket_connect_timeout: float | None = None,
|
|
203
|
+
retry_on_timeout: bool = False,
|
|
204
|
+
retry_on_error: list[type[RedisError]] | _Sentinel = ...,
|
|
205
|
+
encoding: str = "utf-8",
|
|
206
|
+
encoding_errors: str = "strict",
|
|
207
|
+
decode_responses: bool = False,
|
|
208
|
+
parser_class: type[BaseParser] = ...,
|
|
209
|
+
socket_read_size: int = 65536,
|
|
210
|
+
health_check_interval: float = 0,
|
|
211
|
+
client_name: str | None = None,
|
|
212
|
+
username: str | None = None,
|
|
213
|
+
retry: Retry | None = None,
|
|
214
|
+
redis_connect_func: ConnectCallbackT | None = None,
|
|
215
|
+
encoder_class: type[Encoder] = ...,
|
|
216
|
+
credential_provider: CredentialProvider | None = None,
|
|
157
217
|
) -> None: ...
|
|
158
218
|
@property
|
|
159
|
-
def keyfile(self): ...
|
|
219
|
+
def keyfile(self) -> str | None: ...
|
|
160
220
|
@property
|
|
161
|
-
def certfile(self): ...
|
|
221
|
+
def certfile(self) -> str | None: ...
|
|
162
222
|
@property
|
|
163
|
-
def cert_reqs(self): ...
|
|
223
|
+
def cert_reqs(self) -> ssl.VerifyMode: ...
|
|
164
224
|
@property
|
|
165
|
-
def ca_certs(self): ...
|
|
225
|
+
def ca_certs(self) -> str | None: ...
|
|
166
226
|
@property
|
|
167
|
-
def ca_data(self): ...
|
|
227
|
+
def ca_data(self) -> str | None: ...
|
|
168
228
|
@property
|
|
169
|
-
def check_hostname(self): ...
|
|
229
|
+
def check_hostname(self) -> bool: ...
|
|
170
230
|
|
|
171
231
|
class RedisSSLContext:
|
|
172
|
-
keyfile:
|
|
173
|
-
certfile:
|
|
174
|
-
cert_reqs:
|
|
175
|
-
ca_certs:
|
|
176
|
-
ca_data:
|
|
177
|
-
check_hostname:
|
|
178
|
-
context:
|
|
232
|
+
keyfile: str | None
|
|
233
|
+
certfile: str | None
|
|
234
|
+
cert_reqs: ssl.VerifyMode
|
|
235
|
+
ca_certs: str | None
|
|
236
|
+
ca_data: str | None
|
|
237
|
+
check_hostname: bool
|
|
238
|
+
context: ssl.SSLContext | None
|
|
179
239
|
def __init__(
|
|
180
240
|
self,
|
|
181
241
|
keyfile: str | None = None,
|
|
182
242
|
certfile: str | None = None,
|
|
183
|
-
cert_reqs:
|
|
243
|
+
cert_reqs: _SSLVerifyMode | None = None,
|
|
184
244
|
ca_certs: str | None = None,
|
|
185
245
|
ca_data: str | None = None,
|
|
186
246
|
check_hostname: bool = False,
|
|
@@ -188,53 +248,43 @@ class RedisSSLContext:
|
|
|
188
248
|
def get(self) -> ssl.SSLContext: ...
|
|
189
249
|
|
|
190
250
|
class UnixDomainSocketConnection(Connection):
|
|
191
|
-
|
|
192
|
-
path: Any
|
|
193
|
-
db: Any
|
|
194
|
-
username: Any
|
|
195
|
-
client_name: Any
|
|
196
|
-
password: Any
|
|
197
|
-
retry_on_timeout: Any
|
|
198
|
-
retry_on_error: list[type[RedisError]]
|
|
199
|
-
retry: Any
|
|
200
|
-
health_check_interval: Any
|
|
201
|
-
next_health_check: int
|
|
202
|
-
redis_connect_func: ConnectCallbackT | None
|
|
203
|
-
encoder: Any
|
|
251
|
+
path: str
|
|
204
252
|
def __init__(
|
|
205
253
|
self,
|
|
206
254
|
*,
|
|
207
255
|
path: str = "",
|
|
256
|
+
# **kwargs forwarded to AbstractConnection.
|
|
208
257
|
db: str | int = 0,
|
|
209
|
-
username: str | None = None,
|
|
210
258
|
password: str | None = None,
|
|
211
259
|
socket_timeout: float | None = None,
|
|
212
260
|
socket_connect_timeout: float | None = None,
|
|
261
|
+
retry_on_timeout: bool = False,
|
|
262
|
+
retry_on_error: list[type[RedisError]] | _Sentinel = ...,
|
|
213
263
|
encoding: str = "utf-8",
|
|
214
264
|
encoding_errors: str = "strict",
|
|
215
265
|
decode_responses: bool = False,
|
|
216
|
-
retry_on_timeout: bool = False,
|
|
217
|
-
retry_on_error: list[type[RedisError]] | _Sentinel = ...,
|
|
218
266
|
parser_class: type[BaseParser] = ...,
|
|
219
267
|
socket_read_size: int = 65536,
|
|
220
|
-
health_check_interval: float = 0
|
|
268
|
+
health_check_interval: float = 0,
|
|
221
269
|
client_name: str | None = None,
|
|
270
|
+
username: str | None = None,
|
|
222
271
|
retry: Retry | None = None,
|
|
223
272
|
redis_connect_func: ConnectCallbackT | None = None,
|
|
273
|
+
encoder_class: type[Encoder] = ...,
|
|
224
274
|
credential_provider: CredentialProvider | None = None,
|
|
225
275
|
) -> None: ...
|
|
226
|
-
def repr_pieces(self) ->
|
|
276
|
+
def repr_pieces(self) -> list[tuple[str, Any]]: ...
|
|
227
277
|
|
|
228
|
-
FALSE_STRINGS:
|
|
278
|
+
FALSE_STRINGS: Final[tuple[str, ...]]
|
|
229
279
|
|
|
230
|
-
def to_bool(value) -> bool | None: ...
|
|
280
|
+
def to_bool(value: object) -> bool | None: ...
|
|
231
281
|
|
|
232
|
-
URL_QUERY_ARGUMENT_PARSERS:
|
|
282
|
+
URL_QUERY_ARGUMENT_PARSERS: MappingProxyType[str, Callable[[str], Any]]
|
|
233
283
|
|
|
234
284
|
class ConnectKwargs(TypedDict):
|
|
235
285
|
username: str
|
|
236
286
|
password: str
|
|
237
|
-
connection_class: type[
|
|
287
|
+
connection_class: type[AbstractConnection]
|
|
238
288
|
host: str
|
|
239
289
|
port: int
|
|
240
290
|
db: int
|
|
@@ -242,40 +292,72 @@ class ConnectKwargs(TypedDict):
|
|
|
242
292
|
|
|
243
293
|
def parse_url(url: str) -> ConnectKwargs: ...
|
|
244
294
|
|
|
245
|
-
|
|
295
|
+
_ConnectionT = TypeVar("_ConnectionT", bound=AbstractConnection)
|
|
296
|
+
|
|
297
|
+
class ConnectionPool(Generic[_ConnectionT]):
|
|
298
|
+
# kwargs accepts all arguments from the connection class chosen for
|
|
299
|
+
# the given URL, except those encoded in the URL itself.
|
|
246
300
|
@classmethod
|
|
247
|
-
def from_url(cls, url: str, **kwargs) ->
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
301
|
+
def from_url(cls, url: str, **kwargs: Any) -> Self: ...
|
|
302
|
+
|
|
303
|
+
connection_class: type[_ConnectionT]
|
|
304
|
+
connection_kwargs: Mapping[str, Any]
|
|
305
|
+
max_connections: int
|
|
306
|
+
encoder_class: type[Encoder]
|
|
307
|
+
pid: int
|
|
308
|
+
|
|
309
|
+
@overload
|
|
252
310
|
def __init__(
|
|
253
|
-
self
|
|
311
|
+
self: ConnectionPool[_ConnectionT],
|
|
312
|
+
connection_class: type[_ConnectionT],
|
|
313
|
+
max_connections: int | None = None,
|
|
314
|
+
# **kwargs are passed to the constructed connection instances.
|
|
315
|
+
**connection_kwargs: Any,
|
|
254
316
|
) -> None: ...
|
|
255
|
-
|
|
317
|
+
@overload
|
|
318
|
+
def __init__(self: ConnectionPool[Connection], *, max_connections: int | None = None, **connection_kwargs) -> None: ...
|
|
256
319
|
def reset(self) -> None: ...
|
|
257
|
-
async def get_connection(self, command_name, *keys, **options): ...
|
|
258
|
-
def get_encoder(self): ...
|
|
259
|
-
def make_connection(self): ...
|
|
260
|
-
async def release(self, connection:
|
|
261
|
-
def owns_connection(self, connection:
|
|
262
|
-
async def disconnect(self, inuse_connections: bool = True): ...
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
320
|
+
async def get_connection(self, command_name: Unused, *keys: Unused, **options: Unused) -> _ConnectionT: ...
|
|
321
|
+
def get_encoder(self) -> Encoder: ...
|
|
322
|
+
def make_connection(self) -> _ConnectionT: ...
|
|
323
|
+
async def release(self, connection: AbstractConnection) -> None: ...
|
|
324
|
+
def owns_connection(self, connection: AbstractConnection) -> bool: ...
|
|
325
|
+
async def disconnect(self, inuse_connections: bool = True) -> None: ...
|
|
326
|
+
def set_retry(self, retry: Retry) -> None: ...
|
|
327
|
+
|
|
328
|
+
class BlockingConnectionPool(ConnectionPool[_ConnectionT]):
|
|
329
|
+
queue_class: type[asyncio.Queue[_ConnectionT | None]]
|
|
330
|
+
timeout: int | None
|
|
331
|
+
pool: asyncio.Queue[_ConnectionT | None]
|
|
332
|
+
|
|
333
|
+
@overload
|
|
267
334
|
def __init__(
|
|
268
|
-
self,
|
|
335
|
+
self: BlockingConnectionPool[_ConnectionT],
|
|
336
|
+
max_connections: int,
|
|
337
|
+
timeout: int | None,
|
|
338
|
+
connection_class: type[_ConnectionT],
|
|
339
|
+
queue_class: type[asyncio.Queue[_ConnectionT | None]] = ...,
|
|
340
|
+
# **kwargs are passed to the constructed connection instances.
|
|
341
|
+
**connection_kwargs: Any,
|
|
342
|
+
) -> None: ...
|
|
343
|
+
@overload
|
|
344
|
+
def __init__(
|
|
345
|
+
self: BlockingConnectionPool[_ConnectionT],
|
|
269
346
|
max_connections: int = 50,
|
|
270
347
|
timeout: int | None = 20,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
348
|
+
*,
|
|
349
|
+
connection_class: type[_ConnectionT],
|
|
350
|
+
queue_class: type[asyncio.Queue[_ConnectionT | None]] = ...,
|
|
351
|
+
# **kwargs are passed to the constructed connection instances.
|
|
352
|
+
**connection_kwargs: Any,
|
|
353
|
+
) -> None: ...
|
|
354
|
+
@overload
|
|
355
|
+
def __init__(
|
|
356
|
+
self: BlockingConnectionPool[Connection],
|
|
357
|
+
max_connections: int = 50,
|
|
358
|
+
timeout: int | None = 20,
|
|
359
|
+
*,
|
|
360
|
+
queue_class: type[asyncio.Queue[Connection | None]] = ...,
|
|
361
|
+
# **kwargs are passed to the constructed connection instances.
|
|
362
|
+
**connection_kwargs: Any,
|
|
274
363
|
) -> None: ...
|
|
275
|
-
pool: Any
|
|
276
|
-
pid: Any
|
|
277
|
-
def reset(self) -> None: ...
|
|
278
|
-
def make_connection(self): ...
|
|
279
|
-
async def get_connection(self, command_name, *keys, **options): ...
|
|
280
|
-
async def release(self, connection: Connection): ...
|
|
281
|
-
async def disconnect(self, inuse_connections: bool = True): ...
|