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,8 +1,11 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
-
from
|
|
2
|
+
from collections.abc import Iterable, Iterator
|
|
3
|
+
from typing import AnyStr, ClassVar, TypeVar, overload
|
|
3
4
|
|
|
4
5
|
from ..config import PyPIRCCommand
|
|
5
6
|
|
|
7
|
+
_T = TypeVar("_T")
|
|
8
|
+
|
|
6
9
|
class upload(PyPIRCCommand):
|
|
7
10
|
description: ClassVar[str]
|
|
8
11
|
username: str
|
|
@@ -16,3 +19,12 @@ class upload(PyPIRCCommand):
|
|
|
16
19
|
def finalize_options(self) -> None: ...
|
|
17
20
|
def run(self) -> None: ...
|
|
18
21
|
def upload_file(self, command: str, pyversion: str, filename: str) -> None: ...
|
|
22
|
+
|
|
23
|
+
@overload
|
|
24
|
+
def make_iterable(values: None) -> list[None]: ...
|
|
25
|
+
@overload
|
|
26
|
+
def make_iterable(values: AnyStr) -> Iterator[AnyStr]: ...
|
|
27
|
+
@overload
|
|
28
|
+
def make_iterable(values: Iterable[_T]) -> Iterator[_T]: ...
|
|
29
|
+
@overload
|
|
30
|
+
def make_iterable(values: _T) -> Iterator[_T]: ...
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
def consolidate_linker_args(args: list[str]) -> str | list[str]: ...
|
|
@@ -13,9 +13,9 @@ from ..warnings import SetuptoolsWarning
|
|
|
13
13
|
_WheelFile: TypeAlias = Incomplete
|
|
14
14
|
|
|
15
15
|
class _EditableMode(Enum):
|
|
16
|
-
STRICT
|
|
17
|
-
LENIENT
|
|
18
|
-
COMPAT
|
|
16
|
+
STRICT = "strict"
|
|
17
|
+
LENIENT = "lenient"
|
|
18
|
+
COMPAT = "compat"
|
|
19
19
|
@classmethod
|
|
20
20
|
def convert(cls, mode: str | None) -> _EditableMode: ...
|
|
21
21
|
|
|
@@ -80,12 +80,7 @@ class tqdm_discord(tqdm_auto[_T]):
|
|
|
80
80
|
**kwargs,
|
|
81
81
|
) -> None: ...
|
|
82
82
|
def display(
|
|
83
|
-
self,
|
|
84
|
-
msg: str | None = ...,
|
|
85
|
-
pos: int | None = ...,
|
|
86
|
-
close: bool = ...,
|
|
87
|
-
bar_style: Incomplete = ...,
|
|
88
|
-
check_delay: bool = ...,
|
|
83
|
+
self, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style=..., check_delay: bool = ...
|
|
89
84
|
) -> None: ...
|
|
90
85
|
def clear(self, *args, **kwargs) -> None: ...
|
|
91
86
|
|
|
@@ -84,7 +84,9 @@ class tqdm_slack(tqdm_auto[_T]):
|
|
|
84
84
|
channel: int = ...,
|
|
85
85
|
**kwargs,
|
|
86
86
|
) -> None: ...
|
|
87
|
-
def display(
|
|
87
|
+
def display( # type: ignore[override]
|
|
88
|
+
self, *, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style=..., check_delay: bool = ...
|
|
89
|
+
) -> None: ...
|
|
88
90
|
def clear(self, *args, **kwargs) -> None: ...
|
|
89
91
|
|
|
90
92
|
def tsrange(*args, **kwargs) -> tqdm_slack[int]: ...
|
|
@@ -89,7 +89,9 @@ class tqdm_telegram(tqdm_auto[_T]):
|
|
|
89
89
|
chat_id: str = ...,
|
|
90
90
|
**kwargs,
|
|
91
91
|
) -> None: ...
|
|
92
|
-
def display(
|
|
92
|
+
def display( # type: ignore[override]
|
|
93
|
+
self, *, msg: str | None = ..., pos: int | None = ..., close: bool = ..., bar_style=..., check_delay: bool = ...
|
|
94
|
+
) -> None: ...
|
|
93
95
|
def clear(self, *args, **kwargs) -> None: ...
|
|
94
96
|
def close(self) -> None: ...
|
|
95
97
|
|
|
@@ -13,10 +13,10 @@ _T = TypeVar("_T")
|
|
|
13
13
|
class _ProgressColumn(ABC):
|
|
14
14
|
max_refresh: float | None
|
|
15
15
|
def __init__(self, table_column: Incomplete | None = ...) -> None: ...
|
|
16
|
-
def get_table_column(self)
|
|
17
|
-
def __call__(self, task
|
|
16
|
+
def get_table_column(self): ...
|
|
17
|
+
def __call__(self, task): ...
|
|
18
18
|
@abstractmethod
|
|
19
|
-
def render(self, task
|
|
19
|
+
def render(self, task): ...
|
|
20
20
|
|
|
21
21
|
class FractionColumn(_ProgressColumn):
|
|
22
22
|
unit_scale: bool
|
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
from
|
|
1
|
+
from _typeshed import Unused
|
|
2
|
+
from _typeshed.wsgi import WSGIApplication
|
|
3
|
+
from collections.abc import Callable, Iterable
|
|
4
|
+
from typing import Any, Literal
|
|
2
5
|
|
|
3
|
-
from waitress.
|
|
6
|
+
from waitress.adjustments import _AdjustmentsParams
|
|
7
|
+
from waitress.server import BaseWSGIServer
|
|
4
8
|
|
|
5
|
-
def serve(
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
def serve(
|
|
10
|
+
app: WSGIApplication,
|
|
11
|
+
*,
|
|
12
|
+
_server: Callable[..., BaseWSGIServer] = ...,
|
|
13
|
+
_quiet: bool = False,
|
|
14
|
+
_profile: bool = False,
|
|
15
|
+
**kw: _AdjustmentsParams,
|
|
16
|
+
) -> None: ...
|
|
17
|
+
def serve_paste(app: WSGIApplication, global_conf: Unused, **kw: _AdjustmentsParams) -> Literal[0]: ...
|
|
18
|
+
def profile(cmd: str, globals: dict[str, Any], locals: dict[str, Any], sort_order: Iterable[str], callers: bool) -> None: ...
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
1
2
|
from collections.abc import Iterable, Sequence
|
|
2
3
|
from socket import socket
|
|
3
|
-
from typing import
|
|
4
|
+
from typing import Final
|
|
5
|
+
from typing_extensions import TypeAlias
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
# Really complex, consider unpacking a TypedDict
|
|
8
|
+
_AdjustmentsParams: TypeAlias = Incomplete
|
|
7
9
|
|
|
8
|
-
truthy: frozenset[
|
|
9
|
-
KNOWN_PROXY_HEADERS: frozenset[
|
|
10
|
+
truthy: frozenset[str]
|
|
11
|
+
KNOWN_PROXY_HEADERS: Final[frozenset[str]]
|
|
10
12
|
|
|
11
13
|
def asbool(s: bool | str | int | None) -> bool: ...
|
|
12
14
|
def asoctal(s: str) -> int: ...
|
|
@@ -19,7 +21,6 @@ def as_socket_list(sockets: Sequence[object]) -> list[socket]: ...
|
|
|
19
21
|
|
|
20
22
|
class _str_marker(str): ...
|
|
21
23
|
class _int_marker(int): ...
|
|
22
|
-
class _bool_marker: ...
|
|
23
24
|
|
|
24
25
|
class Adjustments:
|
|
25
26
|
host: _str_marker
|
|
@@ -30,7 +31,7 @@ class Adjustments:
|
|
|
30
31
|
trusted_proxy_count: int | None
|
|
31
32
|
trusted_proxy_headers: set[str]
|
|
32
33
|
log_untrusted_proxy_headers: bool
|
|
33
|
-
clear_untrusted_proxy_headers:
|
|
34
|
+
clear_untrusted_proxy_headers: bool
|
|
34
35
|
url_scheme: str
|
|
35
36
|
url_prefix: str
|
|
36
37
|
ident: str
|
|
@@ -55,8 +56,10 @@ class Adjustments:
|
|
|
55
56
|
ipv4: bool
|
|
56
57
|
ipv6: bool
|
|
57
58
|
sockets: list[socket]
|
|
58
|
-
|
|
59
|
+
channel_request_lookahead: int
|
|
60
|
+
server_name: str
|
|
61
|
+
def __init__(self, **kw: _AdjustmentsParams) -> None: ...
|
|
59
62
|
@classmethod
|
|
60
|
-
def parse_args(cls, argv: str) -> tuple[dict[str,
|
|
63
|
+
def parse_args(cls, argv: str) -> tuple[dict[str, bool], list[str]]: ...
|
|
61
64
|
@classmethod
|
|
62
65
|
def check_sockets(cls, sockets: Iterable[socket]) -> None: ...
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
+
from _typeshed import ReadableBuffer
|
|
1
2
|
from io import BufferedIOBase, BufferedRandom, BytesIO
|
|
2
|
-
from typing import
|
|
3
|
+
from typing import Final, Literal, NoReturn
|
|
3
4
|
|
|
4
|
-
COPY_BYTES:
|
|
5
|
-
STRBUF_LIMIT:
|
|
5
|
+
COPY_BYTES: Final = 262144
|
|
6
|
+
STRBUF_LIMIT: Final = 8192
|
|
6
7
|
|
|
7
8
|
class FileBasedBuffer:
|
|
8
9
|
remain: int
|
|
9
10
|
file: BytesIO
|
|
10
11
|
def __init__(self, file: BytesIO, from_buffer: BytesIO | None = None) -> None: ...
|
|
11
12
|
def __len__(self) -> int: ...
|
|
12
|
-
def __nonzero__(self) -> bool: ...
|
|
13
13
|
def __bool__(self) -> Literal[True]: ...
|
|
14
|
-
def append(self, s:
|
|
14
|
+
def append(self, s: ReadableBuffer) -> None: ...
|
|
15
15
|
def get(self, numbytes: int = -1, skip: bool = False) -> bytes: ...
|
|
16
16
|
def skip(self, numbytes: int, allow_prune: int = 0) -> None: ...
|
|
17
|
-
def newfile(self) ->
|
|
17
|
+
def newfile(self) -> BufferedIOBase: ...
|
|
18
18
|
def prune(self) -> None: ...
|
|
19
|
-
def getfile(self) ->
|
|
19
|
+
def getfile(self) -> BytesIO: ...
|
|
20
20
|
def close(self) -> None: ...
|
|
21
21
|
|
|
22
22
|
class TempfileBasedBuffer(FileBasedBuffer):
|
|
@@ -38,7 +38,7 @@ class ReadOnlyFileBasedBuffer(FileBasedBuffer):
|
|
|
38
38
|
def __iter__(self) -> ReadOnlyFileBasedBuffer: ...
|
|
39
39
|
def next(self) -> bytes | None: ...
|
|
40
40
|
__next__ = next
|
|
41
|
-
def append(self, s:
|
|
41
|
+
def append(self, s: ReadableBuffer) -> NoReturn: ...
|
|
42
42
|
|
|
43
43
|
class OverflowableBuffer:
|
|
44
44
|
overflowed: bool
|
|
@@ -47,7 +47,6 @@ class OverflowableBuffer:
|
|
|
47
47
|
overflow: int
|
|
48
48
|
def __init__(self, overflow: int) -> None: ...
|
|
49
49
|
def __len__(self) -> int: ...
|
|
50
|
-
def __nonzero__(self) -> bool: ...
|
|
51
50
|
def __bool__(self) -> bool: ...
|
|
52
51
|
def append(self, s: bytes) -> None: ...
|
|
53
52
|
def get(self, numbytes: int = -1, skip: bool = False) -> bytes: ...
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
from collections.abc import
|
|
2
|
-
from socket import socket
|
|
1
|
+
from collections.abc import Sequence
|
|
2
|
+
from socket import _RetAddress, socket
|
|
3
3
|
from threading import Condition, Lock
|
|
4
4
|
|
|
5
5
|
from waitress.adjustments import Adjustments
|
|
@@ -8,15 +8,16 @@ from waitress.parser import HTTPRequestParser
|
|
|
8
8
|
from waitress.server import BaseWSGIServer
|
|
9
9
|
from waitress.task import ErrorTask, WSGITask
|
|
10
10
|
|
|
11
|
-
from . import wasyncore
|
|
11
|
+
from . import wasyncore
|
|
12
|
+
from .wasyncore import _SocketMap
|
|
12
13
|
|
|
13
14
|
class ClientDisconnected(Exception): ...
|
|
14
15
|
|
|
15
16
|
class HTTPChannel(wasyncore.dispatcher):
|
|
16
|
-
task_class: WSGITask
|
|
17
|
-
error_task_class: ErrorTask
|
|
18
|
-
parser_class: HTTPRequestParser
|
|
19
|
-
request: HTTPRequestParser
|
|
17
|
+
task_class: type[WSGITask]
|
|
18
|
+
error_task_class: type[ErrorTask]
|
|
19
|
+
parser_class: type[HTTPRequestParser]
|
|
20
|
+
request: HTTPRequestParser | None
|
|
20
21
|
last_activity: float
|
|
21
22
|
will_close: bool
|
|
22
23
|
close_when_flushed: bool
|
|
@@ -31,19 +32,21 @@ class HTTPChannel(wasyncore.dispatcher):
|
|
|
31
32
|
sendbuf_len: int
|
|
32
33
|
task_lock: Lock
|
|
33
34
|
outbuf_lock: Condition
|
|
34
|
-
addr:
|
|
35
|
+
addr: _RetAddress
|
|
35
36
|
def __init__(
|
|
36
|
-
self, server: BaseWSGIServer, sock: socket, addr:
|
|
37
|
+
self, server: BaseWSGIServer, sock: socket, addr: _RetAddress, adj: Adjustments, map: _SocketMap | None = None
|
|
37
38
|
) -> None: ...
|
|
39
|
+
def check_client_disconnected(self) -> None: ...
|
|
38
40
|
def writable(self) -> bool: ...
|
|
39
41
|
def handle_write(self) -> None: ...
|
|
40
42
|
def readable(self) -> bool: ...
|
|
41
43
|
def handle_read(self) -> None: ...
|
|
44
|
+
def send_continue(self) -> None: ...
|
|
42
45
|
def received(self, data: bytes) -> bool: ...
|
|
43
46
|
connected: bool
|
|
44
47
|
def handle_close(self) -> None: ...
|
|
45
|
-
def add_channel(self, map:
|
|
46
|
-
def del_channel(self, map:
|
|
48
|
+
def add_channel(self, map: _SocketMap | None = None) -> None: ...
|
|
49
|
+
def del_channel(self, map: _SocketMap | None = None) -> None: ...
|
|
47
50
|
def write_soon(self, data: bytes) -> int: ...
|
|
48
51
|
def service(self) -> None: ...
|
|
49
52
|
def cancel(self) -> None: ...
|
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
from
|
|
2
|
-
from typing import Any, Literal
|
|
1
|
+
from typing import Final
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class_types: tuple[type]
|
|
10
|
-
|
|
11
|
-
def unquote_bytes_to_wsgi(bytestring: bytes) -> str: ...
|
|
12
|
-
def text_(s: str, encoding: str = ..., errors: str = ...) -> str: ...
|
|
13
|
-
def tostr(s: str) -> str: ...
|
|
14
|
-
def tobytes(s: str) -> bytes: ...
|
|
15
|
-
|
|
16
|
-
exec_: Any
|
|
17
|
-
|
|
18
|
-
def reraise(tp: Any, value: BaseException, tb: str | None = ...) -> None: ...
|
|
19
|
-
|
|
20
|
-
MAXINT: int
|
|
21
|
-
HAS_IPV6: bool
|
|
22
|
-
IPPROTO_IPV6: int
|
|
23
|
-
IPV6_V6ONLY: int
|
|
24
|
-
|
|
25
|
-
def set_nonblocking(fd: TextIOWrapper) -> None: ...
|
|
26
|
-
|
|
27
|
-
ResourceWarning: Warning
|
|
28
|
-
|
|
29
|
-
def qualname(cls: Any) -> str: ...
|
|
3
|
+
WIN: Final[bool]
|
|
4
|
+
MAXINT: Final[int]
|
|
5
|
+
HAS_IPV6: Final[bool]
|
|
6
|
+
IPPROTO_IPV6: Final[int]
|
|
7
|
+
IPV6_V6ONLY: Final[int]
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
from collections.abc import Mapping, Sequence
|
|
2
2
|
from io import BytesIO
|
|
3
3
|
from re import Pattern
|
|
4
|
-
from typing import Any
|
|
5
4
|
|
|
6
5
|
from waitress.adjustments import Adjustments
|
|
7
6
|
from waitress.receiver import ChunkedReceiver, FixedStreamReceiver
|
|
8
7
|
from waitress.utilities import Error
|
|
9
8
|
|
|
9
|
+
def unquote_bytes_to_wsgi(bytestring: str | bytes | bytearray) -> str: ...
|
|
10
|
+
|
|
10
11
|
class ParsingError(Exception): ...
|
|
11
12
|
class TransferEncodingNotImplemented(Exception): ...
|
|
12
13
|
|
|
@@ -38,6 +39,6 @@ class HTTPRequestParser:
|
|
|
38
39
|
def split_uri(uri: bytes) -> tuple[str, str, bytes, str, str]: ...
|
|
39
40
|
def get_header_lines(header: bytes) -> Sequence[bytes]: ...
|
|
40
41
|
|
|
41
|
-
first_line_re: Pattern[
|
|
42
|
+
first_line_re: Pattern[str]
|
|
42
43
|
|
|
43
44
|
def crack_first_line(line: str) -> tuple[bytes, bytes, bytes]: ...
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
from
|
|
1
|
+
from _typeshed.wsgi import WSGIApplication
|
|
2
|
+
from collections.abc import Mapping, Sequence
|
|
2
3
|
from logging import Logger
|
|
3
|
-
from typing import
|
|
4
|
+
from typing import Final, NamedTuple, TypeVar
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
_T = TypeVar("_T")
|
|
6
7
|
|
|
7
|
-
PROXY_HEADERS: frozenset[
|
|
8
|
+
PROXY_HEADERS: Final[frozenset[str]]
|
|
8
9
|
|
|
9
10
|
class Forwarded(NamedTuple):
|
|
10
|
-
by:
|
|
11
|
-
for_:
|
|
12
|
-
host:
|
|
13
|
-
proto:
|
|
11
|
+
by: str
|
|
12
|
+
for_: str
|
|
13
|
+
host: str
|
|
14
|
+
proto: str
|
|
14
15
|
|
|
15
16
|
class MalformedProxyHeader(Exception):
|
|
16
17
|
header: str
|
|
@@ -19,18 +20,18 @@ class MalformedProxyHeader(Exception):
|
|
|
19
20
|
def __init__(self, header: str, reason: str, value: str) -> None: ...
|
|
20
21
|
|
|
21
22
|
def proxy_headers_middleware(
|
|
22
|
-
app:
|
|
23
|
+
app: WSGIApplication,
|
|
23
24
|
trusted_proxy: str | None = None,
|
|
24
25
|
trusted_proxy_count: int = 1,
|
|
25
26
|
trusted_proxy_headers: set[str] | None = None,
|
|
26
27
|
clear_untrusted: bool = True,
|
|
27
28
|
log_untrusted: bool = False,
|
|
28
29
|
logger: Logger = ...,
|
|
29
|
-
) ->
|
|
30
|
+
) -> WSGIApplication: ...
|
|
30
31
|
def parse_proxy_headers(
|
|
31
32
|
environ: Mapping[str, str], trusted_proxy_count: int, trusted_proxy_headers: set[str], logger: Logger = ...
|
|
32
33
|
) -> set[str]: ...
|
|
33
|
-
def strip_brackets(addr:
|
|
34
|
+
def strip_brackets(addr: Sequence[_T]) -> Sequence[_T]: ...
|
|
34
35
|
def clear_untrusted_headers(
|
|
35
36
|
environ: Mapping[str, str], untrusted_headers: Sequence[str], log_warning: bool = False, logger: Logger = ...
|
|
36
37
|
) -> None: ...
|
|
@@ -1,13 +1,28 @@
|
|
|
1
|
-
from
|
|
1
|
+
from re import Pattern
|
|
2
|
+
from typing import Final
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
FIELD_VCHAR:
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
BWS: Final = r"[ \t]{0,}?"
|
|
5
|
+
CHUNK_EXT: Final[str]
|
|
6
|
+
CHUNK_EXT_NAME: Final = r"[!#$%&'*+\-.^_`|~0-9A-Za-z]{1,}"
|
|
7
|
+
CHUNK_EXT_RE: Final[Pattern[str]]
|
|
8
|
+
CHUNK_EXT_VAL: Final[str]
|
|
9
|
+
DIGIT: Final = "[0-9]"
|
|
10
|
+
FIELD_CONTENT: Final[str]
|
|
11
|
+
FIELD_VALUE: Final[str]
|
|
12
|
+
FIELD_VCHAR: Final = r"[\x21-\x7e\x80-\xff]"
|
|
13
|
+
HEADER_FIELD_RE: Final[Pattern[str]]
|
|
14
|
+
HEXDIG: Final = r"[0-9a-fA-F]"
|
|
15
|
+
OBS_TEXT: Final = r"\x80-\xff"
|
|
16
|
+
ONLY_DIGIT_RE: Final[Pattern[str]]
|
|
17
|
+
ONLY_HEXDIG_RE: Final[Pattern[str]]
|
|
18
|
+
OWS: Final = r"[ \t]{0,}?"
|
|
19
|
+
QDTEXT: Final = r"[\t !#-[\]-~\x80-\xff]"
|
|
20
|
+
QUOTED_PAIR: Final = r"\\([\t \x21-\x7e\x80-\xff])"
|
|
21
|
+
QUOTED_PAIR_RE: Final[Pattern[str]]
|
|
22
|
+
QUOTED_STRING: Final[str]
|
|
23
|
+
QUOTED_STRING_RE: Final[Pattern[str]]
|
|
24
|
+
RWS: Final = r"[ \t]{1,}?"
|
|
25
|
+
TCHAR: Final = r"[!#$%&'*+\-.^_`|~0-9A-Za-z]"
|
|
26
|
+
TOKEN: Final = r"[!#$%&'*+\-.^_`|~0-9A-Za-z]{1,}"
|
|
27
|
+
VCHAR: Final = r"\x21-\x7e"
|
|
28
|
+
WS: Final = r"[ \t]"
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
from _typeshed import Unused
|
|
1
2
|
from collections.abc import Callable, Sequence
|
|
2
3
|
from io import TextIOWrapper
|
|
3
4
|
from re import Pattern
|
|
4
|
-
from typing import Any
|
|
5
|
+
from typing import Any, Final
|
|
5
6
|
|
|
6
|
-
HELP: str
|
|
7
|
-
RUNNER_PATTERN: Pattern[
|
|
7
|
+
HELP: Final[str]
|
|
8
|
+
RUNNER_PATTERN: Final[Pattern[str]]
|
|
8
9
|
|
|
9
10
|
def match(obj_name: str) -> tuple[str, str]: ...
|
|
10
|
-
def resolve(module_name: str, object_name: str) -> Any: ...
|
|
11
|
+
def resolve(module_name: str, object_name: str) -> Any: ... # Any module attribute
|
|
11
12
|
def show_help(stream: TextIOWrapper, name: str, error: str | None = None) -> None: ...
|
|
12
13
|
def show_exception(stream: TextIOWrapper) -> None: ...
|
|
13
|
-
def run(argv: Sequence[str] = ..., _serve: Callable[...,
|
|
14
|
+
def run(argv: Sequence[str] = ..., _serve: Callable[..., Unused] = ...) -> None: ...
|
|
@@ -1,49 +1,54 @@
|
|
|
1
1
|
import sys
|
|
2
|
-
from _typeshed import
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
2
|
+
from _typeshed import Unused
|
|
3
|
+
from _typeshed.wsgi import WSGIApplication
|
|
4
|
+
from collections.abc import Callable, Sequence
|
|
5
|
+
from socket import _RetAddress, socket
|
|
6
|
+
from typing import Literal
|
|
6
7
|
|
|
7
8
|
from waitress import wasyncore
|
|
8
|
-
from waitress.adjustments import Adjustments
|
|
9
|
+
from waitress.adjustments import Adjustments, _AdjustmentsParams
|
|
9
10
|
from waitress.channel import HTTPChannel
|
|
10
11
|
from waitress.task import Task, ThreadedTaskDispatcher
|
|
12
|
+
from waitress.wasyncore import _SocketMap
|
|
11
13
|
|
|
12
14
|
def create_server(
|
|
13
|
-
application:
|
|
14
|
-
map:
|
|
15
|
+
application: WSGIApplication,
|
|
16
|
+
map: _SocketMap | None = None,
|
|
15
17
|
_start: bool = True,
|
|
16
18
|
_sock: socket | None = None,
|
|
17
19
|
_dispatcher: ThreadedTaskDispatcher | None = None,
|
|
18
|
-
**kw:
|
|
20
|
+
**kw: _AdjustmentsParams,
|
|
19
21
|
) -> MultiSocketServer | BaseWSGIServer: ...
|
|
20
22
|
|
|
21
23
|
class MultiSocketServer:
|
|
22
|
-
asyncore
|
|
24
|
+
asyncore = wasyncore
|
|
23
25
|
adj: Adjustments
|
|
24
|
-
map:
|
|
26
|
+
map: _SocketMap | None
|
|
25
27
|
effective_listen: Sequence[tuple[str, int]]
|
|
26
28
|
task_dispatcher: ThreadedTaskDispatcher
|
|
27
29
|
def __init__(
|
|
28
30
|
self,
|
|
29
|
-
map:
|
|
31
|
+
map: _SocketMap | None = None,
|
|
30
32
|
adj: Adjustments | None = None,
|
|
31
33
|
effective_listen: Sequence[tuple[str, int]] | None = None,
|
|
32
34
|
dispatcher: ThreadedTaskDispatcher | None = None,
|
|
35
|
+
# Can be None, but print_listen will fail
|
|
36
|
+
log_info: Callable[[str], Unused] | None = None,
|
|
33
37
|
) -> None: ...
|
|
34
38
|
def print_listen(self, format_str: str) -> None: ...
|
|
35
39
|
def run(self) -> None: ...
|
|
36
40
|
def close(self) -> None: ...
|
|
37
41
|
|
|
38
42
|
class BaseWSGIServer(wasyncore.dispatcher):
|
|
39
|
-
channel_class: HTTPChannel
|
|
43
|
+
channel_class: type[HTTPChannel]
|
|
40
44
|
next_channel_cleanup: int
|
|
41
45
|
socketmod: socket
|
|
42
|
-
asyncore
|
|
43
|
-
|
|
46
|
+
asyncore = wasyncore
|
|
47
|
+
in_connection_overflow: bool
|
|
48
|
+
sockinfo: tuple[int, int, int | None, _RetAddress]
|
|
44
49
|
family: int
|
|
45
50
|
socktype: int
|
|
46
|
-
application:
|
|
51
|
+
application: WSGIApplication
|
|
47
52
|
adj: Adjustments
|
|
48
53
|
trigger: int
|
|
49
54
|
task_dispatcher: ThreadedTaskDispatcher
|
|
@@ -51,19 +56,18 @@ class BaseWSGIServer(wasyncore.dispatcher):
|
|
|
51
56
|
active_channels: HTTPChannel
|
|
52
57
|
def __init__(
|
|
53
58
|
self,
|
|
54
|
-
application:
|
|
55
|
-
map:
|
|
59
|
+
application: WSGIApplication,
|
|
60
|
+
map: _SocketMap | None = None,
|
|
56
61
|
_start: bool = True,
|
|
57
|
-
_sock:
|
|
62
|
+
_sock: socket | None = None,
|
|
58
63
|
dispatcher: ThreadedTaskDispatcher | None = None,
|
|
59
64
|
adj: Adjustments | None = None,
|
|
60
|
-
sockinfo:
|
|
65
|
+
sockinfo: tuple[int, int, int | None, _RetAddress] | None = None,
|
|
61
66
|
bind_socket: bool = True,
|
|
62
|
-
**kw:
|
|
67
|
+
**kw: _AdjustmentsParams,
|
|
63
68
|
) -> None: ...
|
|
64
69
|
def bind_server_socket(self) -> None: ...
|
|
65
|
-
def
|
|
66
|
-
def getsockname(self) -> Any: ...
|
|
70
|
+
def getsockname(self) -> tuple[str, str]: ...
|
|
67
71
|
accepting: bool
|
|
68
72
|
def accept_connections(self) -> None: ...
|
|
69
73
|
def add_task(self, task: Task) -> None: ...
|
|
@@ -74,33 +78,32 @@ class BaseWSGIServer(wasyncore.dispatcher):
|
|
|
74
78
|
def handle_accept(self) -> None: ...
|
|
75
79
|
def run(self) -> None: ...
|
|
76
80
|
def pull_trigger(self) -> None: ...
|
|
77
|
-
def set_socket_options(self, conn:
|
|
78
|
-
def fix_addr(self, addr:
|
|
81
|
+
def set_socket_options(self, conn: socket) -> None: ...
|
|
82
|
+
def fix_addr(self, addr: _RetAddress) -> _RetAddress: ...
|
|
79
83
|
def maintenance(self, now: int) -> None: ...
|
|
80
84
|
def print_listen(self, format_str: str) -> None: ...
|
|
81
85
|
def close(self) -> None: ...
|
|
82
86
|
|
|
83
87
|
class TcpWSGIServer(BaseWSGIServer):
|
|
84
88
|
def bind_server_socket(self) -> None: ...
|
|
85
|
-
def getsockname(self) -> tuple[str,
|
|
89
|
+
def getsockname(self) -> tuple[str, str]: ...
|
|
86
90
|
def set_socket_options(self, conn: socket) -> None: ...
|
|
87
91
|
|
|
88
92
|
if sys.platform != "win32":
|
|
89
93
|
class UnixWSGIServer(BaseWSGIServer):
|
|
90
94
|
def __init__(
|
|
91
95
|
self,
|
|
92
|
-
application:
|
|
93
|
-
map:
|
|
94
|
-
_start: bool =
|
|
95
|
-
_sock:
|
|
96
|
-
dispatcher:
|
|
97
|
-
adj: Adjustments | None =
|
|
98
|
-
sockinfo:
|
|
99
|
-
**kw:
|
|
96
|
+
application: WSGIApplication,
|
|
97
|
+
map: _SocketMap | None = None,
|
|
98
|
+
_start: bool = True,
|
|
99
|
+
_sock: socket | None = None,
|
|
100
|
+
dispatcher: ThreadedTaskDispatcher | None = None,
|
|
101
|
+
adj: Adjustments | None = None,
|
|
102
|
+
sockinfo: tuple[int, int, int | None, _RetAddress] | None = None,
|
|
103
|
+
**kw: _AdjustmentsParams,
|
|
100
104
|
) -> None: ...
|
|
101
105
|
def bind_server_socket(self) -> None: ...
|
|
102
|
-
def getsockname(self) -> tuple[str,
|
|
103
|
-
def fix_addr(self, addr:
|
|
104
|
-
def get_server_name(self, ip: Any) -> str: ...
|
|
106
|
+
def getsockname(self) -> tuple[str, str]: ...
|
|
107
|
+
def fix_addr(self, addr: _RetAddress) -> tuple[Literal["localhost"], None]: ...
|
|
105
108
|
|
|
106
|
-
WSGIServer
|
|
109
|
+
WSGIServer = TcpWSGIServer
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
from _typeshed import
|
|
1
|
+
from _typeshed import Unused
|
|
2
|
+
from _typeshed.wsgi import WSGIEnvironment
|
|
2
3
|
from collections import deque
|
|
3
|
-
from collections.abc import Mapping, Sequence
|
|
4
|
+
from collections.abc import Callable, Mapping, Sequence
|
|
4
5
|
from logging import Logger
|
|
5
6
|
from threading import Condition, Lock
|
|
6
|
-
from typing import Any
|
|
7
7
|
|
|
8
8
|
from .channel import HTTPChannel
|
|
9
9
|
from .utilities import Error
|
|
10
10
|
|
|
11
11
|
rename_headers: Mapping[str, str]
|
|
12
|
-
hop_by_hop: frozenset[
|
|
12
|
+
hop_by_hop: frozenset[str]
|
|
13
13
|
|
|
14
14
|
class ThreadedTaskDispatcher:
|
|
15
15
|
stop_count: int
|
|
16
16
|
active_count: int
|
|
17
17
|
logger: Logger
|
|
18
18
|
queue_logger: Logger
|
|
19
|
-
threads: set[
|
|
19
|
+
threads: set[int]
|
|
20
20
|
queue: deque[Task]
|
|
21
21
|
lock: Lock
|
|
22
22
|
queue_cv: Condition
|
|
23
23
|
thread_exit_cv: Condition
|
|
24
|
-
def start_new_thread(self, target:
|
|
24
|
+
def start_new_thread(self, target: Callable[[int], Unused], thread_no: int) -> None: ...
|
|
25
25
|
def handler_thread(self, thread_no: int) -> None: ...
|
|
26
26
|
def set_thread_count(self, count: int) -> None: ...
|
|
27
27
|
def add_task(self, task: Task) -> None: ...
|
|
@@ -47,6 +47,7 @@ class Task:
|
|
|
47
47
|
def service(self) -> None: ...
|
|
48
48
|
@property
|
|
49
49
|
def has_body(self) -> bool: ...
|
|
50
|
+
def set_close_on_finish(self) -> None: ...
|
|
50
51
|
def build_response_header(self) -> bytes: ...
|
|
51
52
|
def remove_content_length_header(self) -> None: ...
|
|
52
53
|
def start(self) -> None: ...
|
|
@@ -57,15 +58,15 @@ class ErrorTask(Task):
|
|
|
57
58
|
complete: bool
|
|
58
59
|
status: str
|
|
59
60
|
close_on_finish: bool
|
|
60
|
-
content_length: int
|
|
61
|
+
content_length: int | None
|
|
61
62
|
def execute(self) -> None: ...
|
|
62
63
|
|
|
63
64
|
class WSGITask(Task):
|
|
64
|
-
environ:
|
|
65
|
+
environ: WSGIEnvironment | None
|
|
65
66
|
response_headers: Sequence[tuple[str, str]]
|
|
66
67
|
complete: bool
|
|
67
68
|
status: str
|
|
68
|
-
content_length: int
|
|
69
|
+
content_length: int | None
|
|
69
70
|
close_on_finish: bool
|
|
70
71
|
def execute(self) -> None: ...
|
|
71
|
-
def get_environment(self) ->
|
|
72
|
+
def get_environment(self) -> WSGIEnvironment: ...
|