basedpyright 1.28.3 → 1.28.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/_hashlib.pyi +15 -2
- package/dist/typeshed-fallback/stdlib/_socket.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi +7 -4
- package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +2 -178
- package/dist/typeshed-fallback/stdlib/asyncio/base_events.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/builtins.pyi +51 -33
- package/dist/typeshed-fallback/stdlib/configparser.pyi +61 -42
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +15 -5
- package/dist/typeshed-fallback/stdlib/functools.pyi +18 -13
- package/dist/typeshed-fallback/stdlib/getopt.pyi +15 -3
- package/dist/typeshed-fallback/stdlib/hashlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/heapq.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/hmac.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/http/server.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/importlib/readers.pyi +11 -7
- package/dist/typeshed-fallback/stdlib/inspect.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/logging/config.pyi +6 -1
- package/dist/typeshed-fallback/stdlib/math.pyi +33 -3
- package/dist/typeshed-fallback/stdlib/multiprocessing/connection.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/pathlib.pyi +13 -9
- package/dist/typeshed-fallback/stdlib/pkgutil.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/shutil.pyi +9 -5
- package/dist/typeshed-fallback/stdlib/socketserver.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/statistics.pyi +14 -15
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +181 -162
- package/dist/typeshed-fallback/stdlib/types.pyi +27 -4
- package/dist/typeshed-fallback/stdlib/typing.pyi +10 -7
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +95 -48
- package/dist/typeshed-fallback/stdlib/unittest/case.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/xml/dom/NodeFilter.pyi +7 -4
- package/dist/typeshed-fallback/stdlib/xml/dom/__init__.pyi +84 -53
- package/dist/typeshed-fallback/stdlib/xml/dom/expatbuilder.pyi +66 -45
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +524 -193
- package/dist/typeshed-fallback/stdlib/xml/dom/pulldom.pyi +70 -55
- package/dist/typeshed-fallback/stdlib/xml/dom/xmlbuilder.pyi +20 -49
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementInclude.pyi +13 -10
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementPath.pyi +19 -12
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +83 -41
- package/dist/typeshed-fallback/stdlib/xml/sax/_exceptions.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/xml/sax/expatreader.pyi +53 -24
- package/dist/typeshed-fallback/stdlib/xml/sax/handler.pyi +48 -17
- package/dist/typeshed-fallback/stdlib/xml/sax/saxutils.pyi +24 -16
- package/dist/typeshed-fallback/stdlib/xml/sax/xmlreader.pyi +59 -56
- package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +0 -8
- package/dist/typeshed-fallback/stdlib/zipfile/_path/__init__.pyi +32 -52
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/classic.pyi +6 -1
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/sphinx.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Pygments/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Pygments/pygments/plugin.pyi +11 -3
- package/dist/typeshed-fallback/stubs/RPi.GPIO/RPi/GPIO/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/WTForms/wtforms/validators.pyi +13 -5
- package/dist/typeshed-fallback/stubs/WebOb/webob/__init__.pyi +15 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/_types.pyi +21 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/acceptparse.pyi +496 -285
- package/dist/typeshed-fallback/stubs/WebOb/webob/byterange.pyi +2 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/cachecontrol.pyi +75 -75
- package/dist/typeshed-fallback/stubs/WebOb/webob/client.pyi +2 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/compat.pyi +24 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/cookies.pyi +39 -34
- package/dist/typeshed-fallback/stubs/WebOb/webob/datetime_utils.pyi +16 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/dec.pyi +40 -40
- package/dist/typeshed-fallback/stubs/WebOb/webob/descriptors.pyi +23 -34
- package/dist/typeshed-fallback/stubs/WebOb/webob/etag.pyi +11 -18
- package/dist/typeshed-fallback/stubs/WebOb/webob/exc.pyi +70 -7
- package/dist/typeshed-fallback/stubs/WebOb/webob/headers.pyi +20 -2
- package/dist/typeshed-fallback/stubs/WebOb/webob/multidict.pyi +97 -31
- package/dist/typeshed-fallback/stubs/WebOb/webob/request.pyi +70 -79
- package/dist/typeshed-fallback/stubs/WebOb/webob/response.pyi +62 -62
- package/dist/typeshed-fallback/stubs/WebOb/webob/static.pyi +12 -9
- package/dist/typeshed-fallback/stubs/WebOb/webob/util.pyi +2 -5
- package/dist/typeshed-fallback/stubs/atheris/METADATA.toml +4 -0
- package/dist/typeshed-fallback/stubs/boltons/boltons/dictutils.pyi +1 -3
- package/dist/typeshed-fallback/stubs/boltons/boltons/tbutils.pyi +13 -13
- package/dist/typeshed-fallback/stubs/braintree/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/braintree_gateway.pyi +2 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/credit_card.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/error_codes.pyi +40 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_payment_resource.pyi +10 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_payment_resource_gateway.pyi +10 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/credit_card_numbers.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/nonces.pyi +1 -0
- package/dist/typeshed-fallback/stubs/cffi/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/cffi/_cffi_backend.pyi +8 -8
- package/dist/typeshed-fallback/stubs/cffi/cffi/recompiler.pyi +1 -0
- package/dist/typeshed-fallback/stubs/corus/METADATA.toml +4 -0
- package/dist/typeshed-fallback/stubs/dirhash/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/dirhash/dirhash/__init__.pyi +93 -0
- package/dist/typeshed-fallback/stubs/dirhash/dirhash/cli.pyi +5 -0
- package/dist/typeshed-fallback/stubs/fanstatic/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fanstatic/fanstatic/registry.pyi +8 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fonts.pyi +2 -8
- package/dist/typeshed-fallback/stubs/geopandas/geopandas/geodataframe.pyi +1 -1
- package/dist/typeshed-fallback/stubs/geopandas/geopandas/io/sql.pyi +0 -3
- package/dist/typeshed-fallback/stubs/gevent/gevent/hub.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libev/corecext.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libev/corecffi.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libuv/loop.pyi +1 -1
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/METADATA.toml +0 -1
- package/dist/typeshed-fallback/stubs/greenlet/greenlet/_greenlet.pyi +5 -1
- package/dist/typeshed-fallback/stubs/hdbcli/hdbcli/dbapi.pyi +1 -1
- package/dist/typeshed-fallback/stubs/hnswlib/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/hnswlib/hnswlib.pyi +8 -6
- package/dist/typeshed-fallback/stubs/humanfriendly/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/ibm-db/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/__init__.pyi +6 -6
- package/dist/typeshed-fallback/stubs/mock/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/mock/mock/backports.pyi +6 -1
- package/dist/typeshed-fallback/stubs/mock/mock/mock.pyi +1 -1
- package/dist/typeshed-fallback/stubs/mysqlclient/MySQLdb/_mysql.pyi +32 -32
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/clique.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/clustering_coefficient.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/connectivity.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/distance_measures.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/dominating_set.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/kcomponents.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/matching.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/maxcut.pyi +8 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/ramsey.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/steinertree.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/traveling_salesman.pyi +33 -23
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/treewidth.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/vertex_cover.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/connectivity.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/correlation.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/mixing.pyi +16 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/neighbor_degree.pyi +7 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/pairs.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/asteroidal.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/basic.pyi +8 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/centrality.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/cluster.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/covering.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/edgelist.pyi +13 -12
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/extendability.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/generators.pyi +22 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matching.pyi +11 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matrix.pyi +9 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/projection.pyi +9 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/redundancy.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/spectral.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/boundary.pyi +53 -58
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bridges.pyi +5 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness_subset.pyi +10 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/closeness.pyi +7 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness.pyi +9 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi +16 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_closeness.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/eigenvector.pyi +10 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/flow_matrix.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/group.pyi +16 -12
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/harmonic.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/katz.pyi +15 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/laplacian.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/load.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/percolation.pyi +6 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/reaching.pyi +9 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/second_order.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/subgraph_alg.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/trophic.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/voterank_alg.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/chordal.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/clique.pyi +9 -14
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cluster.pyi +10 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/equitable_coloring.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/greedy_coloring.pyi +2 -20
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/communicability_alg.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/asyn_fluid.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/centrality.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/community_utils.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/divisive.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kclique.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kernighan_lin.pyi +7 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/label_propagation.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/louvain.pyi +13 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/lukes.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/modularity_max.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/quality.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/biconnected.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/connected.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/semiconnected.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/strongly_connected.pyi +5 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/weakly_connected.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/connectivity.pyi +29 -23
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/cuts.pyi +21 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/disjoint_paths.pyi +17 -16
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_augmentation.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_kcomponents.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/kcomponents.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/kcutsets.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/stoerwagner.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/core.pyi +9 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/covering.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cuts.pyi +10 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cycles.pyi +9 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/d_separation.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dag.pyi +13 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_measures.pyi +8 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_regular.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dominance.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dominating.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/efficiency_measures.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/euler.pyi +8 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/boykovkolmogorov.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/capacityscaling.pyi +4 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/dinitz_alg.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/edmondskarp.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/gomory_hu.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/maxflow.pyi +34 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/mincost.pyi +7 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/networksimplex.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/preflowpush.pyi +5 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/shortestaugmentingpath.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/utils.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/graph_hashing.pyi +12 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/graphical.pyi +9 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/hierarchy.pyi +1 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/hybrid.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isolate.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/ismags.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/isomorph.pyi +11 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/isomorphvf2.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/tree_isomorphism.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/vf2pp.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/vf2userfunc.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_analysis/hits_alg.pyi +9 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_analysis/pagerank_alg.pyi +16 -14
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_prediction.pyi +9 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/lowest_common_ancestors.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/matching.pyi +7 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/minors/contraction.pyi +10 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/mis.pyi +6 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/moral.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/node_classification.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/non_randomness.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/all.pyi +7 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/binary.pyi +11 -11
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/product.pyi +14 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/unary.pyi +2 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/planarity.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/polynomials.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/reciprocity.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/regular.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/richclub.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/astar.pyi +22 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/dense.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/generic.pyi +33 -11
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/unweighted.pyi +9 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/weighted.pyi +116 -30
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/similarity.pyi +69 -55
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/simple_paths.pyi +11 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/smallworld.pyi +6 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/smetric.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/sparsifiers.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/structuralholes.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/summarization.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/swap.pyi +8 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/threshold.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/time_dependent.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tournament.pyi +8 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/beamsearch.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/breadth_first_search.pyi +16 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/depth_first_search.pyi +20 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgebfs.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgedfs.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/branchings.pyi +13 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/coding.pyi +8 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/mst.pyi +22 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/operations.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/recognition.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/triads.pyi +11 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/vitality.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/voronoi.pyi +10 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/walks.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/wiener.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/coreviews.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multigraph.pyi +3 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/reportviews.pyi +39 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/time_series.pyi +4 -0
- package/dist/typeshed-fallback/stubs/passlib/passlib/hosts.pyi +3 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +19 -19
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor.pyi +6 -0
- package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/_psycopg.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +18 -0
- package/dist/typeshed-fallback/stubs/pygit2/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/build_main.pyi +19 -7
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/splash.pyi +18 -16
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pynput/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pynput/pynput/_util.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/__init__.pyi +4 -2
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +3 -0
- package/dist/typeshed-fallback/stubs/pynput/pynput/mouse/__init__.pyi +6 -3
- package/dist/typeshed-fallback/stubs/pyserial/serial/tools/miniterm.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pytz/pytz/tzinfo.pyi +3 -3
- package/dist/typeshed-fallback/stubs/pywin32/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/pythoncom.pyi +19 -2
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32con.pyi +4895 -4764
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32timezone.pyi +81 -42
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/winerror.pyi +7258 -2574
- package/dist/typeshed-fallback/stubs/pywin32/win32/servicemanager.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32trace.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32ts.pyi +1 -0
- package/dist/typeshed-fallback/stubs/pywin32/win32com/client/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stubs/regex/regex/regex.pyi +5 -5
- package/dist/typeshed-fallback/stubs/requests/requests/__init__.pyi +12 -13
- package/dist/typeshed-fallback/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +3 -0
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +4 -3
- package/dist/typeshed-fallback/stubs/setuptools/distutils/ccompiler.pyi +11 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/base.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/errors.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/msvc.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/_msvccompiler.pyi +2 -21
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/archive_util.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +13 -178
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/bdist_rpm.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_clib.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_ext.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_py.pyi +3 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install.pyi +5 -5
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_data.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_lib.pyi +4 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_scripts.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/sdist.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compat/__init__.pyi +6 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi +196 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/errors.pyi +6 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/msvc.pyi +24 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +23 -20
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/errors.pyi +12 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/filelist.pyi +12 -11
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/spawn.pyi +6 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/util.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/bdist_wheel.pyi +0 -2
- package/dist/typeshed-fallback/stubs/simplejson/simplejson/encoder.pyi +1 -1
- package/dist/typeshed-fallback/stubs/six/six/moves/builtins.pyi +0 -1
- package/dist/typeshed-fallback/stubs/tqdm/METADATA.toml +4 -1
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/asyncio.pyi +4 -3
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/std.pyi +10 -3
- package/dist/typeshed-fallback/stubs/tree-sitter-languages/METADATA.toml +6 -0
- package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +15 -8
- package/dist/typeshed-fallback/stubs/watchpoints/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/__init__.pyi +10 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/ast_monkey.pyi +3 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/util.pyi +6 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch.pyi +68 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch_element.pyi +56 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch_print.pyi +24 -0
- package/dist/typeshed-fallback/stubs/zstd/METADATA.toml +1 -1
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/__init__.pyi +0 -543
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/__init__.pyi +0 -8
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/markers.pyi +0 -13
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/requirements.pyi +0 -14
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/specifiers.pyi +0 -66
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/version.pyi +0 -49
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
3
|
-
from
|
|
4
|
-
|
|
5
|
-
from webob.request import Request
|
|
6
|
-
from webob.response import Response
|
|
1
|
+
from _typeshed import SupportsItems
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from typing import Any, Generic, Literal, overload
|
|
4
|
+
from typing_extensions import Self, TypeVar
|
|
7
5
|
|
|
8
6
|
_T = TypeVar("_T")
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
_DefaultT = TypeVar("_DefaultT", default=None)
|
|
8
|
+
_NoneLiteral = TypeVar("_NoneLiteral", default=None)
|
|
9
|
+
_ScopeT = TypeVar("_ScopeT", Literal["request"], Literal["response"], None, default=None)
|
|
10
|
+
_ScopeT2 = TypeVar("_ScopeT2", Literal["request"], Literal["response"], None)
|
|
13
11
|
|
|
14
|
-
class UpdateDict(dict[
|
|
12
|
+
class UpdateDict(dict[str, Any]):
|
|
15
13
|
updated: Callable[..., Any] | None
|
|
16
14
|
updated_args: tuple[Any, ...] | None
|
|
17
15
|
|
|
18
|
-
class exists_property:
|
|
19
|
-
prop: str
|
|
20
|
-
type: str | None
|
|
21
|
-
def __init__(self, prop: str, type: str | None = None) -> None: ...
|
|
16
|
+
class exists_property(Generic[_ScopeT]):
|
|
17
|
+
def __init__(self, prop: str, type: _ScopeT = ...) -> None: ...
|
|
22
18
|
@overload
|
|
23
|
-
def __get__(self, obj: None, type:
|
|
19
|
+
def __get__(self, obj: None, type: type[CacheControl[Any]] | None = None) -> Self: ...
|
|
24
20
|
@overload
|
|
25
|
-
def __get__(self, obj: Any, type:
|
|
26
|
-
def __set__(self, obj: Any, value: bool | None) -> None: ...
|
|
27
|
-
def __delete__(self, obj: Any) -> None: ...
|
|
28
|
-
|
|
29
|
-
class value_property(Generic[_T, _NoneLiteral]):
|
|
30
|
-
prop: str
|
|
31
|
-
default: _T | None
|
|
32
|
-
none: _NoneLiteral
|
|
33
|
-
type: str | None
|
|
21
|
+
def __get__(self: exists_property[None], obj: CacheControl[Any], type: type[CacheControl[Any]] | None = None) -> bool: ...
|
|
34
22
|
@overload
|
|
35
|
-
def
|
|
23
|
+
def __get__(self, obj: CacheControl[_ScopeT], type: type[CacheControl[Any]] | None = None) -> bool: ...
|
|
36
24
|
@overload
|
|
37
|
-
def
|
|
25
|
+
def __set__(self: exists_property[None], obj: CacheControl[Any], value: bool | None) -> None: ...
|
|
38
26
|
@overload
|
|
39
|
-
def
|
|
27
|
+
def __set__(self, obj: CacheControl[_ScopeT], value: bool | None) -> None: ...
|
|
40
28
|
@overload
|
|
41
|
-
def
|
|
42
|
-
|
|
43
|
-
def __delete__(self, obj:
|
|
44
|
-
|
|
45
|
-
class _IntValueProperty(value_property[int, _NoneLiteral]):
|
|
46
|
-
def __set__(self, obj: Any, value: int | None) -> None: ...
|
|
29
|
+
def __delete__(self, obj: CacheControl[Any]) -> None: ...
|
|
30
|
+
@overload
|
|
31
|
+
def __delete__(self, obj: CacheControl[_ScopeT]) -> None: ...
|
|
47
32
|
|
|
48
|
-
class
|
|
49
|
-
|
|
50
|
-
properties: MutableMapping[str, Any]
|
|
51
|
-
type: Literal["request", "response"] | None
|
|
52
|
-
@classmethod
|
|
33
|
+
class value_property(Generic[_T, _DefaultT, _NoneLiteral, _ScopeT]):
|
|
34
|
+
def __init__(self, prop: str, default: _DefaultT = ..., none: _NoneLiteral = ..., type: _ScopeT = ...) -> None: ...
|
|
53
35
|
@overload
|
|
54
|
-
def
|
|
55
|
-
@classmethod
|
|
36
|
+
def __get__(self, obj: None, type: type[CacheControl[Any]] | None = None) -> Self: ...
|
|
56
37
|
@overload
|
|
57
|
-
def
|
|
58
|
-
|
|
38
|
+
def __get__(
|
|
39
|
+
self: value_property[_T, _DefaultT, _NoneLiteral, None],
|
|
40
|
+
obj: CacheControl[Any] | None,
|
|
41
|
+
type: type[CacheControl[Any]] | None = None,
|
|
42
|
+
) -> _T | _DefaultT | _NoneLiteral: ...
|
|
59
43
|
@overload
|
|
60
|
-
def
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
type: Literal["response"]
|
|
76
|
-
public: exists_property
|
|
77
|
-
private: value_property[str, Literal["*"]]
|
|
78
|
-
must_revalidate: exists_property
|
|
79
|
-
proxy_revalidate: exists_property
|
|
80
|
-
s_maxage: _IntValueProperty[None]
|
|
81
|
-
s_max_age: _IntValueProperty[None]
|
|
82
|
-
stale_while_revalidate: _IntValueProperty[None]
|
|
83
|
-
stale_if_error: _IntValueProperty[None]
|
|
84
|
-
|
|
85
|
-
class _AnyCacheControl(_RequestCacheControl, _ResponseCacheControl):
|
|
86
|
-
type: None # type: ignore[assignment]
|
|
44
|
+
def __get__(
|
|
45
|
+
self, obj: CacheControl[_ScopeT] | None, type: type[CacheControl[Any]] | None = None
|
|
46
|
+
) -> _T | _DefaultT | _NoneLiteral: ...
|
|
47
|
+
@overload
|
|
48
|
+
def __set__(
|
|
49
|
+
self: value_property[_T, _DefaultT, _NoneLiteral, None],
|
|
50
|
+
obj: CacheControl[Any],
|
|
51
|
+
value: _T | _DefaultT | Literal[True] | None,
|
|
52
|
+
) -> None: ...
|
|
53
|
+
@overload
|
|
54
|
+
def __set__(self, obj: CacheControl[_ScopeT], value: _T | _DefaultT | Literal[True] | None) -> None: ...
|
|
55
|
+
@overload
|
|
56
|
+
def __delete__(self, obj: CacheControl[Any]) -> None: ...
|
|
57
|
+
@overload
|
|
58
|
+
def __delete__(self, obj: CacheControl[_ScopeT]) -> None: ...
|
|
87
59
|
|
|
88
|
-
class CacheControl(
|
|
60
|
+
class CacheControl(Generic[_ScopeT]):
|
|
61
|
+
header_value: str
|
|
62
|
+
update_dict: type[UpdateDict]
|
|
63
|
+
properties: dict[str, Any]
|
|
64
|
+
type: _ScopeT
|
|
65
|
+
def __init__(self, properties: dict[str, Any], type: _ScopeT) -> None: ...
|
|
89
66
|
@overload
|
|
90
|
-
|
|
67
|
+
@classmethod
|
|
68
|
+
def parse(
|
|
69
|
+
cls, header: str, updates_to: Callable[[dict[str, Any]], Any] | None = None, type: None = None
|
|
70
|
+
) -> CacheControl[None]: ...
|
|
91
71
|
@overload
|
|
92
|
-
|
|
72
|
+
@classmethod
|
|
73
|
+
def parse(cls, header: str, updates_to: Callable[[dict[str, Any]], Any] | None, type: _ScopeT2) -> CacheControl[_ScopeT2]: ...
|
|
93
74
|
@overload
|
|
94
|
-
|
|
75
|
+
@classmethod
|
|
76
|
+
def parse(
|
|
77
|
+
cls, header: str, updates_to: Callable[[dict[str, Any]], Any] | None = None, *, type: _ScopeT2
|
|
78
|
+
) -> CacheControl[_ScopeT2]: ...
|
|
79
|
+
max_stale: value_property[int, None, Literal["*"], Literal["request"]]
|
|
80
|
+
min_fresh: value_property[int, None, None, Literal["request"]]
|
|
81
|
+
only_if_cached: exists_property[Literal["request"]]
|
|
82
|
+
public: exists_property[Literal["response"]]
|
|
83
|
+
private: value_property[str, None, Literal["*"], Literal["response"]]
|
|
84
|
+
no_cache: value_property[str, None, Literal["*"], None]
|
|
85
|
+
no_store: exists_property[None]
|
|
86
|
+
no_transform: exists_property[None]
|
|
87
|
+
must_revalidate: exists_property[Literal["response"]]
|
|
88
|
+
proxy_revalidate: exists_property[Literal["response"]]
|
|
89
|
+
max_age: value_property[int, None, Literal[-1], None]
|
|
90
|
+
s_maxage: value_property[int, None, None, Literal["response"]]
|
|
91
|
+
s_max_age = s_maxage
|
|
92
|
+
stale_while_revalidate: value_property[int, None, None, Literal["response"]]
|
|
93
|
+
stale_if_error: value_property[int, None, None, Literal["response"]]
|
|
94
|
+
def copy(self) -> Self: ...
|
|
95
95
|
|
|
96
|
-
def serialize_cache_control(properties:
|
|
96
|
+
def serialize_cache_control(properties: SupportsItems[str, Any] | CacheControl[Any]) -> str: ...
|
|
@@ -3,6 +3,8 @@ from collections.abc import Iterable
|
|
|
3
3
|
from http.client import HTTPConnection, HTTPMessage, HTTPSConnection
|
|
4
4
|
from typing import ClassVar
|
|
5
5
|
|
|
6
|
+
__all__ = ["send_request_app", "SendRequest"]
|
|
7
|
+
|
|
6
8
|
class SendRequest:
|
|
7
9
|
def __init__(self, HTTPConnection: type[HTTPConnection] = ..., HTTPSConnection: type[HTTPSConnection] = ...) -> None: ...
|
|
8
10
|
def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
from html import escape as escape
|
|
3
|
+
from io import FileIO, TextIOWrapper
|
|
4
|
+
from queue import Empty as Empty, Queue as Queue
|
|
5
|
+
from typing import IO
|
|
6
|
+
|
|
7
|
+
if sys.version_info >= (3, 13):
|
|
8
|
+
# NOTE: These are the only attributes we realistically care about
|
|
9
|
+
class cgi_FieldStorage:
|
|
10
|
+
filename: str
|
|
11
|
+
file: IO[bytes]
|
|
12
|
+
def make_file(self) -> TextIOWrapper | FileIO: ...
|
|
13
|
+
|
|
14
|
+
def parse_header(line: str) -> tuple[str, dict[str, str]]: ...
|
|
15
|
+
|
|
16
|
+
else:
|
|
17
|
+
from cgi import FieldStorage as _cgi_FieldStorage, parse_header as parse_header
|
|
18
|
+
|
|
19
|
+
class cgi_FieldStorage(_cgi_FieldStorage):
|
|
20
|
+
# NOTE: The only kinds of objects of this type the user is exposed to
|
|
21
|
+
# will contain a file with a filename. We're technically lying
|
|
22
|
+
# if people create their own instances, but that shouldn't happen
|
|
23
|
+
filename: str
|
|
24
|
+
file: IO[bytes]
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
from _typeshed import sentinel
|
|
2
2
|
from _typeshed.wsgi import WSGIEnvironment
|
|
3
|
-
from collections.abc import
|
|
3
|
+
from collections.abc import Collection, ItemsView, Iterator, KeysView, MutableMapping, ValuesView
|
|
4
4
|
from datetime import date, datetime, timedelta
|
|
5
|
-
from
|
|
5
|
+
from time import _TimeTuple, struct_time
|
|
6
6
|
from typing import Any, Literal, Protocol, TypeVar, overload
|
|
7
7
|
from typing_extensions import TypeAlias
|
|
8
8
|
|
|
9
|
-
from webob.
|
|
10
|
-
from webob.request import
|
|
9
|
+
from webob._types import AsymmetricProperty
|
|
10
|
+
from webob.request import BaseRequest
|
|
11
11
|
from webob.response import Response
|
|
12
12
|
|
|
13
|
+
__all__ = [
|
|
14
|
+
"Cookie",
|
|
15
|
+
"CookieProfile",
|
|
16
|
+
"SignedCookieProfile",
|
|
17
|
+
"SignedSerializer",
|
|
18
|
+
"JSONSerializer",
|
|
19
|
+
"Base64Serializer",
|
|
20
|
+
"make_cookie",
|
|
21
|
+
]
|
|
22
|
+
|
|
13
23
|
_T = TypeVar("_T")
|
|
14
24
|
# we accept both the official spelling and the one used in the WebOb docs
|
|
15
25
|
# the implementation compares after lower() so technically there are more
|
|
@@ -27,7 +37,7 @@ class RequestCookies(MutableMapping[str, str]):
|
|
|
27
37
|
@overload
|
|
28
38
|
def get(self, name: str, default: None = None) -> str | None: ...
|
|
29
39
|
@overload
|
|
30
|
-
def get(self, name: str, default:
|
|
40
|
+
def get(self, name: str, default: _T) -> str | _T: ...
|
|
31
41
|
def __delitem__(self, name: str) -> None: ...
|
|
32
42
|
def keys(self) -> KeysView[str]: ...
|
|
33
43
|
def values(self) -> ValuesView[str]: ...
|
|
@@ -37,11 +47,11 @@ class RequestCookies(MutableMapping[str, str]):
|
|
|
37
47
|
def __len__(self) -> int: ...
|
|
38
48
|
def clear(self) -> None: ...
|
|
39
49
|
|
|
40
|
-
class Cookie(dict[
|
|
50
|
+
class Cookie(dict[bytes, Morsel]):
|
|
41
51
|
def __init__(self, input: str | None = None) -> None: ...
|
|
42
52
|
def load(self, data: str) -> None: ...
|
|
43
|
-
def add(self, key: str | bytes, val: str | bytes) -> Morsel: ...
|
|
44
|
-
def __setitem__(self, key: str | bytes, val: str | bytes) -> Morsel: ... # type: ignore[override]
|
|
53
|
+
def add(self, key: str | bytes, val: str | bytes) -> Morsel | dict[bytes, bytes]: ...
|
|
54
|
+
def __setitem__(self, key: str | bytes, val: str | bytes) -> Morsel | dict[bytes, bytes]: ... # type: ignore[override]
|
|
45
55
|
def serialize(self, full: bool = True) -> str: ...
|
|
46
56
|
def values(self) -> list[Morsel]: ... # type: ignore[override]
|
|
47
57
|
def __str__(self, full: bool = True) -> str: ...
|
|
@@ -62,17 +72,12 @@ class Morsel(dict[bytes, bytes | bool | None]):
|
|
|
62
72
|
def comment(self) -> bytes | None: ...
|
|
63
73
|
@comment.setter
|
|
64
74
|
def comment(self, v: bytes | None) -> None: ...
|
|
65
|
-
expires:
|
|
66
|
-
max_age:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
def
|
|
71
|
-
@property
|
|
72
|
-
def secure(self) -> bool | None: ...
|
|
73
|
-
@secure.setter
|
|
74
|
-
def secure(self, v: bool) -> None: ...
|
|
75
|
-
samesite: _AsymmetricProperty[bytes | None, _SameSitePolicy | None]
|
|
75
|
+
expires: AsymmetricProperty[bytes | None, datetime | date | timedelta | _TimeTuple | struct_time | int | str | bytes | None]
|
|
76
|
+
max_age: AsymmetricProperty[bytes | None, timedelta | int | str | bytes | None]
|
|
77
|
+
httponly: AsymmetricProperty[bool, bool | None]
|
|
78
|
+
secure: AsymmetricProperty[bool, bool | None]
|
|
79
|
+
samesite: AsymmetricProperty[bytes, _SameSitePolicy | bytes]
|
|
80
|
+
def __setitem__(self, k: str | bytes, v: bytes | bool | None) -> None: ...
|
|
76
81
|
def serialize(self, full: bool = True) -> str: ...
|
|
77
82
|
def __str__(self, full: bool = True) -> str: ...
|
|
78
83
|
|
|
@@ -82,8 +87,8 @@ def make_cookie(
|
|
|
82
87
|
max_age: int | timedelta | None = None,
|
|
83
88
|
path: str = "/",
|
|
84
89
|
domain: str | None = None,
|
|
85
|
-
secure: bool = False,
|
|
86
|
-
httponly: bool = False,
|
|
90
|
+
secure: bool | None = False,
|
|
91
|
+
httponly: bool | None = False,
|
|
87
92
|
comment: str | None = None,
|
|
88
93
|
samesite: _SameSitePolicy | None = None,
|
|
89
94
|
) -> str: ...
|
|
@@ -99,14 +104,15 @@ class Base64Serializer:
|
|
|
99
104
|
def loads(self, bstruct: bytes) -> Any: ...
|
|
100
105
|
|
|
101
106
|
class SignedSerializer:
|
|
102
|
-
salt: str
|
|
103
|
-
secret: str
|
|
107
|
+
salt: str | bytes
|
|
108
|
+
secret: str | bytes
|
|
104
109
|
hashalg: str
|
|
105
110
|
salted_secret: bytes
|
|
106
|
-
digestmod: Callable[[bytes], _Hash]
|
|
107
111
|
digest_size: int
|
|
108
112
|
serializer: _Serializer
|
|
109
|
-
def __init__(
|
|
113
|
+
def __init__(
|
|
114
|
+
self, secret: str | bytes, salt: str | bytes, hashalg: str = "sha512", serializer: _Serializer | None = None
|
|
115
|
+
) -> None: ...
|
|
110
116
|
def dumps(self, appstruct: Any) -> bytes: ...
|
|
111
117
|
def loads(self, bstruct: bytes) -> Any: ...
|
|
112
118
|
|
|
@@ -119,7 +125,7 @@ class CookieProfile:
|
|
|
119
125
|
path: str
|
|
120
126
|
domains: Collection[str] | None
|
|
121
127
|
serializer: _Serializer
|
|
122
|
-
request:
|
|
128
|
+
request: BaseRequest | None
|
|
123
129
|
def __init__(
|
|
124
130
|
self,
|
|
125
131
|
cookie_name: str,
|
|
@@ -133,8 +139,8 @@ class CookieProfile:
|
|
|
133
139
|
domains: Collection[str] | None = None,
|
|
134
140
|
serializer: _Serializer | None = None,
|
|
135
141
|
) -> None: ...
|
|
136
|
-
def __call__(self, request:
|
|
137
|
-
def bind(self, request:
|
|
142
|
+
def __call__(self, request: BaseRequest) -> CookieProfile: ...
|
|
143
|
+
def bind(self, request: BaseRequest) -> CookieProfile: ...
|
|
138
144
|
def get_value(self) -> Any | None: ...
|
|
139
145
|
def set_cookies(
|
|
140
146
|
self,
|
|
@@ -159,10 +165,9 @@ class CookieProfile:
|
|
|
159
165
|
) -> list[tuple[str, str]]: ...
|
|
160
166
|
|
|
161
167
|
class SignedCookieProfile(CookieProfile):
|
|
162
|
-
secret: str
|
|
163
|
-
salt: str
|
|
168
|
+
secret: str | bytes
|
|
169
|
+
salt: str | bytes
|
|
164
170
|
hashalg: str
|
|
165
|
-
serializer: SignedSerializer
|
|
166
171
|
original_serializer: _Serializer
|
|
167
172
|
def __init__(
|
|
168
173
|
self,
|
|
@@ -171,12 +176,12 @@ class SignedCookieProfile(CookieProfile):
|
|
|
171
176
|
cookie_name: str,
|
|
172
177
|
secure: bool = False,
|
|
173
178
|
max_age: int | timedelta | None = None,
|
|
174
|
-
httponly: bool = False,
|
|
179
|
+
httponly: bool | None = False,
|
|
175
180
|
samesite: _SameSitePolicy | None = None,
|
|
176
181
|
path: str = "/",
|
|
177
182
|
domains: Collection[str] | None = None,
|
|
178
183
|
hashalg: str = "sha512",
|
|
179
184
|
serializer: _Serializer | None = None,
|
|
180
185
|
) -> None: ...
|
|
181
|
-
def __call__(self, request:
|
|
182
|
-
def bind(self, request:
|
|
186
|
+
def __call__(self, request: BaseRequest) -> SignedCookieProfile: ...
|
|
187
|
+
def bind(self, request: BaseRequest) -> SignedCookieProfile: ...
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
from datetime import date, datetime, timedelta, tzinfo
|
|
2
2
|
from time import _TimeTuple, struct_time
|
|
3
3
|
|
|
4
|
+
__all__ = [
|
|
5
|
+
"UTC",
|
|
6
|
+
"timedelta_to_seconds",
|
|
7
|
+
"year",
|
|
8
|
+
"month",
|
|
9
|
+
"week",
|
|
10
|
+
"day",
|
|
11
|
+
"hour",
|
|
12
|
+
"minute",
|
|
13
|
+
"second",
|
|
14
|
+
"parse_date",
|
|
15
|
+
"serialize_date",
|
|
16
|
+
"parse_date_delta",
|
|
17
|
+
"serialize_date_delta",
|
|
18
|
+
]
|
|
19
|
+
|
|
4
20
|
class _UTC(tzinfo):
|
|
5
21
|
def dst(self, dt: datetime | None) -> timedelta: ...
|
|
6
22
|
def utcoffset(self, dt: datetime | None) -> timedelta: ...
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
from _typeshed.wsgi import StartResponse, WSGIApplication, WSGIEnvironment
|
|
2
2
|
from collections.abc import Callable, Iterable, Mapping
|
|
3
|
-
from typing import Any, Generic,
|
|
4
|
-
from typing_extensions import Concatenate, Never, ParamSpec, Self, TypeAlias
|
|
3
|
+
from typing import Any, Generic, overload
|
|
4
|
+
from typing_extensions import Concatenate, Never, ParamSpec, Self, TypeAlias, TypeVar
|
|
5
5
|
|
|
6
|
-
from webob.request import Request
|
|
6
|
+
from webob.request import BaseRequest, Request
|
|
7
7
|
from webob.response import Response
|
|
8
8
|
|
|
9
|
+
__all__ = ["wsgify"]
|
|
10
|
+
|
|
9
11
|
_AnyResponse: TypeAlias = Response | WSGIApplication | str | None
|
|
10
12
|
_S = TypeVar("_S")
|
|
11
13
|
_AppT = TypeVar("_AppT", bound=WSGIApplication)
|
|
12
14
|
_AppT_contra = TypeVar("_AppT_contra", bound=WSGIApplication, contravariant=True)
|
|
13
|
-
_RequestT = TypeVar("_RequestT", bound=
|
|
14
|
-
_RequestT_contra = TypeVar("_RequestT_contra", bound=Request, contravariant=True)
|
|
15
|
+
_RequestT = TypeVar("_RequestT", bound=BaseRequest)
|
|
16
|
+
_RequestT_contra = TypeVar("_RequestT_contra", bound=BaseRequest, default=Request, contravariant=True)
|
|
15
17
|
_P = ParamSpec("_P")
|
|
16
18
|
_P2 = ParamSpec("_P2")
|
|
17
19
|
|
|
18
|
-
_RequestHandlerCallable: TypeAlias = Callable[Concatenate[
|
|
19
|
-
_RequestHandlerMethod: TypeAlias = Callable[Concatenate[Any,
|
|
20
|
-
_MiddlewareCallable: TypeAlias = Callable[Concatenate[
|
|
21
|
-
_MiddlewareMethod: TypeAlias = Callable[Concatenate[Any,
|
|
22
|
-
_RequestHandler: TypeAlias = _RequestHandlerCallable[
|
|
23
|
-
_Middleware: TypeAlias =
|
|
24
|
-
_MiddlewareCallable[_RequestT_contra, _AppT_contra, _P] | _MiddlewareMethod[_RequestT_contra, _AppT_contra, _P]
|
|
25
|
-
)
|
|
20
|
+
_RequestHandlerCallable: TypeAlias = Callable[Concatenate[_RequestT, _P], _AnyResponse]
|
|
21
|
+
_RequestHandlerMethod: TypeAlias = Callable[Concatenate[Any, _RequestT, _P], _AnyResponse]
|
|
22
|
+
_MiddlewareCallable: TypeAlias = Callable[Concatenate[_RequestT, _AppT, _P], _AnyResponse]
|
|
23
|
+
_MiddlewareMethod: TypeAlias = Callable[Concatenate[Any, _RequestT, _AppT, _P], _AnyResponse]
|
|
24
|
+
_RequestHandler: TypeAlias = _RequestHandlerCallable[_RequestT, _P] | _RequestHandlerMethod[_RequestT, _P]
|
|
25
|
+
_Middleware: TypeAlias = _MiddlewareCallable[_RequestT, _AppT, _P] | _MiddlewareMethod[_RequestT, _AppT, _P]
|
|
26
26
|
|
|
27
|
-
class wsgify(Generic[
|
|
28
|
-
RequestClass: type[
|
|
27
|
+
class wsgify(Generic[_P, _RequestT_contra]):
|
|
28
|
+
RequestClass: type[_RequestT_contra]
|
|
29
29
|
func: _RequestHandler[_RequestT_contra, _P] | None
|
|
30
30
|
args: tuple[Any, ...]
|
|
31
31
|
kwargs: dict[str, Any]
|
|
32
32
|
middleware_wraps: WSGIApplication | None
|
|
33
33
|
# NOTE: We disallow passing args/kwargs using this direct API, because
|
|
34
34
|
# we can't really make it work as a decorator this way, these
|
|
35
|
-
# arguments should only really be used
|
|
35
|
+
# arguments should only really be used indirectly through the
|
|
36
36
|
# middleware decorator, where we can be more type safe
|
|
37
37
|
@overload
|
|
38
38
|
def __init__(
|
|
39
|
-
self: wsgify[
|
|
39
|
+
self: wsgify[[], Request],
|
|
40
40
|
func: _RequestHandler[Request, []] | None = None,
|
|
41
41
|
RequestClass: None = None,
|
|
42
42
|
args: tuple[()] = (),
|
|
@@ -45,7 +45,7 @@ class wsgify(Generic[_RequestT_contra, _P]):
|
|
|
45
45
|
) -> None: ...
|
|
46
46
|
@overload
|
|
47
47
|
def __init__(
|
|
48
|
-
self: wsgify[
|
|
48
|
+
self: wsgify[[], _RequestT_contra], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
|
49
49
|
func: _RequestHandler[_RequestT_contra, []] | None,
|
|
50
50
|
RequestClass: type[_RequestT_contra],
|
|
51
51
|
args: tuple[()] = (),
|
|
@@ -54,7 +54,7 @@ class wsgify(Generic[_RequestT_contra, _P]):
|
|
|
54
54
|
) -> None: ...
|
|
55
55
|
@overload
|
|
56
56
|
def __init__(
|
|
57
|
-
self: wsgify[
|
|
57
|
+
self: wsgify[[], _RequestT_contra], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
|
58
58
|
func: _RequestHandler[_RequestT_contra, []] | None = None,
|
|
59
59
|
*,
|
|
60
60
|
RequestClass: type[_RequestT_contra],
|
|
@@ -64,7 +64,7 @@ class wsgify(Generic[_RequestT_contra, _P]):
|
|
|
64
64
|
) -> None: ...
|
|
65
65
|
@overload
|
|
66
66
|
def __init__(
|
|
67
|
-
self: wsgify[
|
|
67
|
+
self: wsgify[[_AppT_contra], Request],
|
|
68
68
|
func: _Middleware[Request, _AppT_contra, []] | None = None,
|
|
69
69
|
RequestClass: None = None,
|
|
70
70
|
args: tuple[()] = (),
|
|
@@ -74,7 +74,7 @@ class wsgify(Generic[_RequestT_contra, _P]):
|
|
|
74
74
|
) -> None: ...
|
|
75
75
|
@overload
|
|
76
76
|
def __init__(
|
|
77
|
-
self: wsgify[
|
|
77
|
+
self: wsgify[[_AppT_contra], _RequestT_contra], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
|
78
78
|
func: _Middleware[_RequestT_contra, _AppT_contra, []] | None,
|
|
79
79
|
RequestClass: type[_RequestT_contra],
|
|
80
80
|
args: tuple[()] = (),
|
|
@@ -84,7 +84,7 @@ class wsgify(Generic[_RequestT_contra, _P]):
|
|
|
84
84
|
) -> None: ...
|
|
85
85
|
@overload
|
|
86
86
|
def __init__(
|
|
87
|
-
self: wsgify[
|
|
87
|
+
self: wsgify[[_AppT_contra], _RequestT_contra], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
|
88
88
|
func: _Middleware[_RequestT_contra, _AppT_contra, []] | None = None,
|
|
89
89
|
*,
|
|
90
90
|
RequestClass: type[_RequestT_contra],
|
|
@@ -93,7 +93,7 @@ class wsgify(Generic[_RequestT_contra, _P]):
|
|
|
93
93
|
middleware_wraps: _AppT_contra,
|
|
94
94
|
) -> None: ...
|
|
95
95
|
@overload
|
|
96
|
-
def __get__(self, obj: None, type: type[_S]) -> _unbound_wsgify[
|
|
96
|
+
def __get__(self, obj: None, type: type[_S]) -> _unbound_wsgify[_P, _S, _RequestT_contra]: ...
|
|
97
97
|
@overload
|
|
98
98
|
def __get__(self, obj: object, type: type | None = None) -> Self: ...
|
|
99
99
|
@overload
|
|
@@ -118,34 +118,34 @@ class wsgify(Generic[_RequestT_contra, _P]):
|
|
|
118
118
|
@classmethod
|
|
119
119
|
def middleware(
|
|
120
120
|
cls, middle_func: None = None, app: None | _AppT = None, *_: _P.args, **kw: _P.kwargs
|
|
121
|
-
) -> _UnboundMiddleware[
|
|
121
|
+
) -> _UnboundMiddleware[_P, _AppT, Any]: ...
|
|
122
122
|
@overload
|
|
123
123
|
@classmethod
|
|
124
124
|
def middleware(
|
|
125
125
|
cls, middle_func: _MiddlewareCallable[_RequestT, _AppT, _P2], app: None = None
|
|
126
|
-
) -> _MiddlewareFactory[
|
|
126
|
+
) -> _MiddlewareFactory[_P2, _AppT, _RequestT]: ...
|
|
127
127
|
@overload
|
|
128
128
|
@classmethod
|
|
129
129
|
def middleware(
|
|
130
130
|
cls, middle_func: _MiddlewareMethod[_RequestT, _AppT, _P2], app: None = None
|
|
131
|
-
) -> _MiddlewareFactory[
|
|
131
|
+
) -> _MiddlewareFactory[_P2, _AppT, _RequestT]: ...
|
|
132
132
|
@overload
|
|
133
133
|
@classmethod
|
|
134
134
|
def middleware(
|
|
135
135
|
cls, middle_func: _MiddlewareMethod[_RequestT, _AppT, _P2], app: None = None, *_: _P2.args, **kw: _P2.kwargs
|
|
136
|
-
) -> _MiddlewareFactory[
|
|
136
|
+
) -> _MiddlewareFactory[_P2, _AppT, _RequestT]: ...
|
|
137
137
|
@overload
|
|
138
138
|
@classmethod
|
|
139
139
|
def middleware(
|
|
140
140
|
cls, middle_func: _MiddlewareMethod[_RequestT, _AppT, _P2], app: _AppT
|
|
141
|
-
) -> type[wsgify[
|
|
141
|
+
) -> type[wsgify[Concatenate[_AppT, _P2], _RequestT]]: ...
|
|
142
142
|
@overload
|
|
143
143
|
@classmethod
|
|
144
144
|
def middleware(
|
|
145
145
|
cls, middle_func: _MiddlewareMethod[_RequestT, _AppT, _P2], app: _AppT, *_: _P2.args, **kw: _P2.kwargs
|
|
146
|
-
) -> type[wsgify[
|
|
146
|
+
) -> type[wsgify[Concatenate[_AppT, _P2], _RequestT]]: ...
|
|
147
147
|
|
|
148
|
-
class _unbound_wsgify(wsgify[
|
|
148
|
+
class _unbound_wsgify(wsgify[_P, _RequestT_contra], Generic[_P, _S, _RequestT_contra]):
|
|
149
149
|
@overload # type: ignore[override]
|
|
150
150
|
def __call__(self, __self: _S, env: WSGIEnvironment, /, start_response: StartResponse) -> Iterable[bytes]: ...
|
|
151
151
|
@overload
|
|
@@ -155,13 +155,13 @@ class _unbound_wsgify(wsgify[_RequestT_contra, _P], Generic[_RequestT_contra, _P
|
|
|
155
155
|
@overload
|
|
156
156
|
def __call__(self, __self: _S, /, req: _RequestT_contra, *args: _P.args, **kw: _P.kwargs) -> _AnyResponse: ...
|
|
157
157
|
|
|
158
|
-
class _UnboundMiddleware(Generic[
|
|
159
|
-
wrapper_class: type[wsgify[
|
|
158
|
+
class _UnboundMiddleware(Generic[_P, _AppT_contra, _RequestT_contra]):
|
|
159
|
+
wrapper_class: type[wsgify[Concatenate[_AppT_contra, _P], _RequestT_contra]]
|
|
160
160
|
app: _AppT_contra | None
|
|
161
161
|
kw: dict[str, Any]
|
|
162
162
|
def __init__(
|
|
163
163
|
self,
|
|
164
|
-
wrapper_class: type[wsgify[
|
|
164
|
+
wrapper_class: type[wsgify[Concatenate[_AppT_contra, _P], _RequestT_contra]],
|
|
165
165
|
app: _AppT_contra | None,
|
|
166
166
|
kw: dict[str, Any],
|
|
167
167
|
) -> None: ...
|
|
@@ -170,19 +170,19 @@ class _UnboundMiddleware(Generic[_RequestT_contra, _AppT_contra, _P]):
|
|
|
170
170
|
@overload
|
|
171
171
|
def __call__(
|
|
172
172
|
self, func: _Middleware[_RequestT_contra, _AppT_contra, _P], app: None = None
|
|
173
|
-
) -> wsgify[
|
|
173
|
+
) -> wsgify[Concatenate[_AppT_contra, _P], _RequestT_contra]: ...
|
|
174
174
|
@overload
|
|
175
175
|
def __call__(
|
|
176
176
|
self, func: _Middleware[_RequestT_contra, _AppT_contra, _P], app: _AppT_contra
|
|
177
|
-
) -> wsgify[
|
|
177
|
+
) -> wsgify[Concatenate[_AppT_contra, _P], _RequestT_contra]: ...
|
|
178
178
|
|
|
179
|
-
class _MiddlewareFactory(Generic[
|
|
180
|
-
wrapper_class: type[wsgify[
|
|
179
|
+
class _MiddlewareFactory(Generic[_P, _AppT_contra, _RequestT_contra]):
|
|
180
|
+
wrapper_class: type[wsgify[Concatenate[_AppT_contra, _P], _RequestT_contra]]
|
|
181
181
|
middleware: _Middleware[_RequestT_contra, _AppT_contra, _P]
|
|
182
182
|
kw: dict[str, Any]
|
|
183
183
|
def __init__(
|
|
184
184
|
self,
|
|
185
|
-
wrapper_class: type[wsgify[
|
|
185
|
+
wrapper_class: type[wsgify[Concatenate[_AppT_contra, _P], _RequestT_contra]],
|
|
186
186
|
middleware: _Middleware[_RequestT_contra, _AppT_contra, _P],
|
|
187
187
|
kw: dict[str, Any],
|
|
188
188
|
) -> None: ...
|
|
@@ -191,6 +191,6 @@ class _MiddlewareFactory(Generic[_RequestT_contra, _AppT_contra, _P]):
|
|
|
191
191
|
@overload
|
|
192
192
|
def __call__(
|
|
193
193
|
self, app: None = None, *_: _P.args, **config: _P.kwargs
|
|
194
|
-
) -> _MiddlewareFactory[
|
|
194
|
+
) -> _MiddlewareFactory[[], _AppT_contra, _RequestT_contra]: ...
|
|
195
195
|
@overload
|
|
196
|
-
def __call__(self, app: _AppT_contra, *_: _P.args, **config: _P.kwargs) -> wsgify[
|
|
196
|
+
def __call__(self, app: _AppT_contra, *_: _P.args, **config: _P.kwargs) -> wsgify[[_AppT_contra], _RequestT_contra]: ...
|