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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b943f311acf359e3196d1f31ff0239ee00e6479e
|
|
@@ -4,13 +4,26 @@ import sys
|
|
|
4
4
|
from _typeshed import ReadableBuffer
|
|
5
5
|
from collections.abc import Callable
|
|
6
6
|
from types import ModuleType
|
|
7
|
-
from typing import AnyStr, final, overload
|
|
7
|
+
from typing import AnyStr, Protocol, final, overload, type_check_only
|
|
8
8
|
from typing_extensions import Self, TypeAlias
|
|
9
9
|
|
|
10
|
-
_DigestMod: TypeAlias = str | Callable[[],
|
|
10
|
+
_DigestMod: TypeAlias = str | Callable[[], _HashObject] | ModuleType | None
|
|
11
11
|
|
|
12
12
|
openssl_md_meth_names: frozenset[str]
|
|
13
13
|
|
|
14
|
+
@type_check_only
|
|
15
|
+
class _HashObject(Protocol):
|
|
16
|
+
@property
|
|
17
|
+
def digest_size(self) -> int: ...
|
|
18
|
+
@property
|
|
19
|
+
def block_size(self) -> int: ...
|
|
20
|
+
@property
|
|
21
|
+
def name(self) -> str: ...
|
|
22
|
+
def copy(self) -> Self: ...
|
|
23
|
+
def digest(self) -> bytes: ...
|
|
24
|
+
def hexdigest(self) -> str: ...
|
|
25
|
+
def update(self, obj: ReadableBuffer, /) -> None: ...
|
|
26
|
+
|
|
14
27
|
class HASH:
|
|
15
28
|
"""
|
|
16
29
|
A hash is an object used to calculate a checksum of a string of information.
|
|
@@ -1172,7 +1172,7 @@ def getaddrinfo(
|
|
|
1172
1172
|
type: int = ...,
|
|
1173
1173
|
proto: int = ...,
|
|
1174
1174
|
flags: int = ...,
|
|
1175
|
-
) -> list[tuple[int, int, int, str, tuple[str, int] | tuple[str, int, int, int]]]:
|
|
1175
|
+
) -> list[tuple[int, int, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]:
|
|
1176
1176
|
"""
|
|
1177
1177
|
getaddrinfo(host, port [, family, type, proto, flags])
|
|
1178
1178
|
-> list of (family, type, proto, canonname, sockaddr)
|
|
@@ -1210,7 +1210,7 @@ def gethostbyaddr(ip_address: str, /) -> tuple[str, list[str], list[str]]:
|
|
|
1210
1210
|
for a host. The host argument is a string giving a host name or IP number.
|
|
1211
1211
|
"""
|
|
1212
1212
|
...
|
|
1213
|
-
def getnameinfo(sockaddr: tuple[str, int] | tuple[str, int, int, int], flags: int, /) -> tuple[str, str]:
|
|
1213
|
+
def getnameinfo(sockaddr: tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes], flags: int, /) -> tuple[str, str]:
|
|
1214
1214
|
"""
|
|
1215
1215
|
getnameinfo(sockaddr, flags) --> (host, port)
|
|
1216
1216
|
|
|
@@ -117,6 +117,12 @@ class SupportsSub(Protocol[_T_contra, _T_co]):
|
|
|
117
117
|
class SupportsRSub(Protocol[_T_contra, _T_co]):
|
|
118
118
|
def __rsub__(self, x: _T_contra, /) -> _T_co: ...
|
|
119
119
|
|
|
120
|
+
class SupportsMul(Protocol[_T_contra, _T_co]):
|
|
121
|
+
def __mul__(self, x: _T_contra, /) -> _T_co: ...
|
|
122
|
+
|
|
123
|
+
class SupportsRMul(Protocol[_T_contra, _T_co]):
|
|
124
|
+
def __rmul__(self, x: _T_contra, /) -> _T_co: ...
|
|
125
|
+
|
|
120
126
|
class SupportsDivMod(Protocol[_T_contra, _T_co]):
|
|
121
127
|
def __divmod__(self, other: _T_contra, /) -> _T_co: ...
|
|
122
128
|
|
|
@@ -151,11 +157,8 @@ class SupportsKeysAndGetItem(Protocol[_KT, _VT_co]):
|
|
|
151
157
|
def keys(self) -> Iterable[_KT]: ...
|
|
152
158
|
def __getitem__(self, key: _KT, /) -> _VT_co: ...
|
|
153
159
|
|
|
154
|
-
#
|
|
155
|
-
# instead, if you require the __contains__ method.
|
|
156
|
-
# See https://github.com/python/typeshed/issues/11822.
|
|
160
|
+
# stable
|
|
157
161
|
class SupportsGetItem(Protocol[_KT_contra, _VT_co]):
|
|
158
|
-
def __contains__(self, x: Any, /) -> bool: ...
|
|
159
162
|
def __getitem__(self, key: _KT_contra, /) -> _VT_co: ...
|
|
160
163
|
|
|
161
164
|
# stable
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# ruff: noqa: PLR5501 # This condition is so big, it's clearer to keep to platform condition in two blocks
|
|
2
|
+
# Can't NOQA on a specific line: https://github.com/plinss/flake8-noqa/issues/22
|
|
1
3
|
import sys
|
|
2
4
|
from collections.abc import Awaitable, Coroutine, Generator
|
|
3
5
|
from typing import Any, TypeVar
|
|
@@ -410,93 +412,6 @@ if sys.platform == "win32":
|
|
|
410
412
|
"WindowsSelectorEventLoopPolicy", # from windows_events
|
|
411
413
|
"WindowsProactorEventLoopPolicy", # from windows_events
|
|
412
414
|
)
|
|
413
|
-
elif sys.version_info >= (3, 10):
|
|
414
|
-
__all__ = (
|
|
415
|
-
"BaseEventLoop", # from base_events
|
|
416
|
-
"Server", # from base_events
|
|
417
|
-
"coroutine", # from coroutines
|
|
418
|
-
"iscoroutinefunction", # from coroutines
|
|
419
|
-
"iscoroutine", # from coroutines
|
|
420
|
-
"AbstractEventLoopPolicy", # from events
|
|
421
|
-
"AbstractEventLoop", # from events
|
|
422
|
-
"AbstractServer", # from events
|
|
423
|
-
"Handle", # from events
|
|
424
|
-
"TimerHandle", # from events
|
|
425
|
-
"get_event_loop_policy", # from events
|
|
426
|
-
"set_event_loop_policy", # from events
|
|
427
|
-
"get_event_loop", # from events
|
|
428
|
-
"set_event_loop", # from events
|
|
429
|
-
"new_event_loop", # from events
|
|
430
|
-
"get_child_watcher", # from events
|
|
431
|
-
"set_child_watcher", # from events
|
|
432
|
-
"_set_running_loop", # from events
|
|
433
|
-
"get_running_loop", # from events
|
|
434
|
-
"_get_running_loop", # from events
|
|
435
|
-
"CancelledError", # from exceptions
|
|
436
|
-
"InvalidStateError", # from exceptions
|
|
437
|
-
"TimeoutError", # from exceptions
|
|
438
|
-
"IncompleteReadError", # from exceptions
|
|
439
|
-
"LimitOverrunError", # from exceptions
|
|
440
|
-
"SendfileNotAvailableError", # from exceptions
|
|
441
|
-
"Future", # from futures
|
|
442
|
-
"wrap_future", # from futures
|
|
443
|
-
"isfuture", # from futures
|
|
444
|
-
"Lock", # from locks
|
|
445
|
-
"Event", # from locks
|
|
446
|
-
"Condition", # from locks
|
|
447
|
-
"Semaphore", # from locks
|
|
448
|
-
"BoundedSemaphore", # from locks
|
|
449
|
-
"BaseProtocol", # from protocols
|
|
450
|
-
"Protocol", # from protocols
|
|
451
|
-
"DatagramProtocol", # from protocols
|
|
452
|
-
"SubprocessProtocol", # from protocols
|
|
453
|
-
"BufferedProtocol", # from protocols
|
|
454
|
-
"run", # from runners
|
|
455
|
-
"Queue", # from queues
|
|
456
|
-
"PriorityQueue", # from queues
|
|
457
|
-
"LifoQueue", # from queues
|
|
458
|
-
"QueueFull", # from queues
|
|
459
|
-
"QueueEmpty", # from queues
|
|
460
|
-
"StreamReader", # from streams
|
|
461
|
-
"StreamWriter", # from streams
|
|
462
|
-
"StreamReaderProtocol", # from streams
|
|
463
|
-
"open_connection", # from streams
|
|
464
|
-
"start_server", # from streams
|
|
465
|
-
"create_subprocess_exec", # from subprocess
|
|
466
|
-
"create_subprocess_shell", # from subprocess
|
|
467
|
-
"Task", # from tasks
|
|
468
|
-
"create_task", # from tasks
|
|
469
|
-
"FIRST_COMPLETED", # from tasks
|
|
470
|
-
"FIRST_EXCEPTION", # from tasks
|
|
471
|
-
"ALL_COMPLETED", # from tasks
|
|
472
|
-
"wait", # from tasks
|
|
473
|
-
"wait_for", # from tasks
|
|
474
|
-
"as_completed", # from tasks
|
|
475
|
-
"sleep", # from tasks
|
|
476
|
-
"gather", # from tasks
|
|
477
|
-
"shield", # from tasks
|
|
478
|
-
"ensure_future", # from tasks
|
|
479
|
-
"run_coroutine_threadsafe", # from tasks
|
|
480
|
-
"current_task", # from tasks
|
|
481
|
-
"all_tasks", # from tasks
|
|
482
|
-
"_register_task", # from tasks
|
|
483
|
-
"_unregister_task", # from tasks
|
|
484
|
-
"_enter_task", # from tasks
|
|
485
|
-
"_leave_task", # from tasks
|
|
486
|
-
"to_thread", # from threads
|
|
487
|
-
"BaseTransport", # from transports
|
|
488
|
-
"ReadTransport", # from transports
|
|
489
|
-
"WriteTransport", # from transports
|
|
490
|
-
"Transport", # from transports
|
|
491
|
-
"DatagramTransport", # from transports
|
|
492
|
-
"SubprocessTransport", # from transports
|
|
493
|
-
"SelectorEventLoop", # from windows_events
|
|
494
|
-
"ProactorEventLoop", # from windows_events
|
|
495
|
-
"IocpProactor", # from windows_events
|
|
496
|
-
"DefaultEventLoopPolicy", # from windows_events
|
|
497
|
-
"WindowsSelectorEventLoopPolicy", # from windows_events
|
|
498
|
-
"WindowsProactorEventLoopPolicy", # from windows_events
|
|
499
|
-
)
|
|
500
415
|
elif sys.version_info >= (3, 9):
|
|
501
416
|
__all__ = (
|
|
502
417
|
"BaseEventLoop", # from base_events
|
|
@@ -1059,97 +974,6 @@ else:
|
|
|
1059
974
|
"ThreadedChildWatcher", # from unix_events
|
|
1060
975
|
"DefaultEventLoopPolicy", # from unix_events
|
|
1061
976
|
)
|
|
1062
|
-
elif sys.version_info >= (3, 10):
|
|
1063
|
-
__all__ = (
|
|
1064
|
-
"BaseEventLoop", # from base_events
|
|
1065
|
-
"Server", # from base_events
|
|
1066
|
-
"coroutine", # from coroutines
|
|
1067
|
-
"iscoroutinefunction", # from coroutines
|
|
1068
|
-
"iscoroutine", # from coroutines
|
|
1069
|
-
"AbstractEventLoopPolicy", # from events
|
|
1070
|
-
"AbstractEventLoop", # from events
|
|
1071
|
-
"AbstractServer", # from events
|
|
1072
|
-
"Handle", # from events
|
|
1073
|
-
"TimerHandle", # from events
|
|
1074
|
-
"get_event_loop_policy", # from events
|
|
1075
|
-
"set_event_loop_policy", # from events
|
|
1076
|
-
"get_event_loop", # from events
|
|
1077
|
-
"set_event_loop", # from events
|
|
1078
|
-
"new_event_loop", # from events
|
|
1079
|
-
"get_child_watcher", # from events
|
|
1080
|
-
"set_child_watcher", # from events
|
|
1081
|
-
"_set_running_loop", # from events
|
|
1082
|
-
"get_running_loop", # from events
|
|
1083
|
-
"_get_running_loop", # from events
|
|
1084
|
-
"CancelledError", # from exceptions
|
|
1085
|
-
"InvalidStateError", # from exceptions
|
|
1086
|
-
"TimeoutError", # from exceptions
|
|
1087
|
-
"IncompleteReadError", # from exceptions
|
|
1088
|
-
"LimitOverrunError", # from exceptions
|
|
1089
|
-
"SendfileNotAvailableError", # from exceptions
|
|
1090
|
-
"Future", # from futures
|
|
1091
|
-
"wrap_future", # from futures
|
|
1092
|
-
"isfuture", # from futures
|
|
1093
|
-
"Lock", # from locks
|
|
1094
|
-
"Event", # from locks
|
|
1095
|
-
"Condition", # from locks
|
|
1096
|
-
"Semaphore", # from locks
|
|
1097
|
-
"BoundedSemaphore", # from locks
|
|
1098
|
-
"BaseProtocol", # from protocols
|
|
1099
|
-
"Protocol", # from protocols
|
|
1100
|
-
"DatagramProtocol", # from protocols
|
|
1101
|
-
"SubprocessProtocol", # from protocols
|
|
1102
|
-
"BufferedProtocol", # from protocols
|
|
1103
|
-
"run", # from runners
|
|
1104
|
-
"Queue", # from queues
|
|
1105
|
-
"PriorityQueue", # from queues
|
|
1106
|
-
"LifoQueue", # from queues
|
|
1107
|
-
"QueueFull", # from queues
|
|
1108
|
-
"QueueEmpty", # from queues
|
|
1109
|
-
"StreamReader", # from streams
|
|
1110
|
-
"StreamWriter", # from streams
|
|
1111
|
-
"StreamReaderProtocol", # from streams
|
|
1112
|
-
"open_connection", # from streams
|
|
1113
|
-
"start_server", # from streams
|
|
1114
|
-
"open_unix_connection", # from streams
|
|
1115
|
-
"start_unix_server", # from streams
|
|
1116
|
-
"create_subprocess_exec", # from subprocess
|
|
1117
|
-
"create_subprocess_shell", # from subprocess
|
|
1118
|
-
"Task", # from tasks
|
|
1119
|
-
"create_task", # from tasks
|
|
1120
|
-
"FIRST_COMPLETED", # from tasks
|
|
1121
|
-
"FIRST_EXCEPTION", # from tasks
|
|
1122
|
-
"ALL_COMPLETED", # from tasks
|
|
1123
|
-
"wait", # from tasks
|
|
1124
|
-
"wait_for", # from tasks
|
|
1125
|
-
"as_completed", # from tasks
|
|
1126
|
-
"sleep", # from tasks
|
|
1127
|
-
"gather", # from tasks
|
|
1128
|
-
"shield", # from tasks
|
|
1129
|
-
"ensure_future", # from tasks
|
|
1130
|
-
"run_coroutine_threadsafe", # from tasks
|
|
1131
|
-
"current_task", # from tasks
|
|
1132
|
-
"all_tasks", # from tasks
|
|
1133
|
-
"_register_task", # from tasks
|
|
1134
|
-
"_unregister_task", # from tasks
|
|
1135
|
-
"_enter_task", # from tasks
|
|
1136
|
-
"_leave_task", # from tasks
|
|
1137
|
-
"to_thread", # from threads
|
|
1138
|
-
"BaseTransport", # from transports
|
|
1139
|
-
"ReadTransport", # from transports
|
|
1140
|
-
"WriteTransport", # from transports
|
|
1141
|
-
"Transport", # from transports
|
|
1142
|
-
"DatagramTransport", # from transports
|
|
1143
|
-
"SubprocessTransport", # from transports
|
|
1144
|
-
"SelectorEventLoop", # from unix_events
|
|
1145
|
-
"AbstractChildWatcher", # from unix_events
|
|
1146
|
-
"SafeChildWatcher", # from unix_events
|
|
1147
|
-
"FastChildWatcher", # from unix_events
|
|
1148
|
-
"PidfdChildWatcher", # from unix_events
|
|
1149
|
-
"MultiLoopChildWatcher", # from unix_events
|
|
1150
|
-
"ThreadedChildWatcher", # from unix_events
|
|
1151
|
-
"DefaultEventLoopPolicy", # from unix_events
|
|
1152
|
-
)
|
|
1153
977
|
elif sys.version_info >= (3, 9):
|
|
1154
978
|
__all__ = (
|
|
1155
979
|
"BaseEventLoop", # from base_events
|
|
@@ -8,6 +8,7 @@ from asyncio.protocols import BaseProtocol
|
|
|
8
8
|
from asyncio.tasks import Task
|
|
9
9
|
from asyncio.transports import BaseTransport, DatagramTransport, ReadTransport, SubprocessTransport, Transport, WriteTransport
|
|
10
10
|
from collections.abc import Callable, Iterable, Sequence
|
|
11
|
+
from concurrent.futures import Executor, ThreadPoolExecutor
|
|
11
12
|
from contextvars import Context
|
|
12
13
|
from socket import AddressFamily, SocketKind, _Address, _RetAddress, socket
|
|
13
14
|
from typing import IO, Any, Literal, TypeVar, overload
|
|
@@ -96,8 +97,8 @@ class BaseEventLoop(AbstractEventLoop):
|
|
|
96
97
|
def call_soon_threadsafe(
|
|
97
98
|
self, callback: Callable[[Unpack[_Ts]], object], *args: Unpack[_Ts], context: Context | None = None
|
|
98
99
|
) -> Handle: ...
|
|
99
|
-
def run_in_executor(self, executor:
|
|
100
|
-
def set_default_executor(self, executor:
|
|
100
|
+
def run_in_executor(self, executor: Executor | None, func: Callable[[Unpack[_Ts]], _T], *args: Unpack[_Ts]) -> Future[_T]: ...
|
|
101
|
+
def set_default_executor(self, executor: ThreadPoolExecutor) -> None: ... # type: ignore[override]
|
|
101
102
|
# Network I/O methods returning Futures.
|
|
102
103
|
async def getaddrinfo(
|
|
103
104
|
self,
|
|
@@ -9,6 +9,7 @@ from _asyncio import (
|
|
|
9
9
|
from _typeshed import FileDescriptorLike, ReadableBuffer, StrPath, Unused, WriteableBuffer
|
|
10
10
|
from abc import ABCMeta, abstractmethod
|
|
11
11
|
from collections.abc import Callable, Sequence
|
|
12
|
+
from concurrent.futures import Executor
|
|
12
13
|
from contextvars import Context
|
|
13
14
|
from socket import AddressFamily, SocketKind, _Address, _RetAddress, socket
|
|
14
15
|
from typing import IO, Any, Literal, Protocol, TypeVar, overload
|
|
@@ -188,9 +189,9 @@ class AbstractEventLoop:
|
|
|
188
189
|
def call_soon_threadsafe(self, callback: Callable[[Unpack[_Ts]], object], *args: Unpack[_Ts]) -> Handle: ...
|
|
189
190
|
|
|
190
191
|
@abstractmethod
|
|
191
|
-
def run_in_executor(self, executor:
|
|
192
|
+
def run_in_executor(self, executor: Executor | None, func: Callable[[Unpack[_Ts]], _T], *args: Unpack[_Ts]) -> Future[_T]: ...
|
|
192
193
|
@abstractmethod
|
|
193
|
-
def set_default_executor(self, executor:
|
|
194
|
+
def set_default_executor(self, executor: Executor) -> None: ...
|
|
194
195
|
# Network I/O methods returning Futures.
|
|
195
196
|
@abstractmethod
|
|
196
197
|
async def getaddrinfo(
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
# ruff: noqa: PYI036 # This is the module declaring BaseException
|
|
2
|
-
|
|
3
1
|
"""
|
|
4
2
|
Built-in functions, types, exceptions, and other objects.
|
|
5
3
|
|
|
@@ -24,7 +22,6 @@ from _typeshed import (
|
|
|
24
22
|
ConvertibleToFloat,
|
|
25
23
|
ConvertibleToInt,
|
|
26
24
|
FileDescriptorOrPath,
|
|
27
|
-
MaybeNone,
|
|
28
25
|
OpenBinaryMode,
|
|
29
26
|
OpenBinaryModeReading,
|
|
30
27
|
OpenBinaryModeUpdating,
|
|
@@ -104,14 +101,19 @@ _T2 = TypeVar("_T2")
|
|
|
104
101
|
_T3 = TypeVar("_T3")
|
|
105
102
|
_T4 = TypeVar("_T4")
|
|
106
103
|
_T5 = TypeVar("_T5")
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
_SupportsNextT_co = TypeVar("_SupportsNextT_co", bound=SupportsNext[Any], covariant=True)
|
|
105
|
+
_SupportsAnextT_co = TypeVar("_SupportsAnextT_co", bound=SupportsAnext[Any], covariant=True)
|
|
109
106
|
_AwaitableT = TypeVar("_AwaitableT", bound=Awaitable[Any])
|
|
110
107
|
_AwaitableT_co = TypeVar("_AwaitableT_co", bound=Awaitable[Any], covariant=True)
|
|
111
108
|
_P = ParamSpec("_P")
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
|
|
110
|
+
# Type variables for slice
|
|
111
|
+
_StartT_co = TypeVar("_StartT_co", covariant=True, default=Any) # slice -> slice[Any, Any, Any]
|
|
112
|
+
_StopT_co = TypeVar("_StopT_co", covariant=True, default=_StartT_co) # slice[A] -> slice[A, A, A]
|
|
113
|
+
# NOTE: step could differ from start and stop, (e.g. datetime/timedelta)l
|
|
114
|
+
# the default (start|stop) is chosen to cater to the most common case of int/index slices.
|
|
115
|
+
# FIXME: https://github.com/python/typing/issues/213 (replace step=start|stop with step=start&stop)
|
|
116
|
+
_StepT_co = TypeVar("_StepT_co", covariant=True, default=_StartT_co | _StopT_co) # slice[A,B] -> slice[A, B, A|B]
|
|
115
117
|
|
|
116
118
|
class object:
|
|
117
119
|
"""
|
|
@@ -2935,7 +2937,11 @@ class memoryview(Sequence[_I]):
|
|
|
2935
2937
|
def __new__(cls, obj: ReadableBuffer) -> Self: ...
|
|
2936
2938
|
def __enter__(self) -> Self: ...
|
|
2937
2939
|
def __exit__(
|
|
2938
|
-
self,
|
|
2940
|
+
self,
|
|
2941
|
+
exc_type: type[BaseException] | None, # noqa: PYI036 # This is the module declaring BaseException
|
|
2942
|
+
exc_val: BaseException | None,
|
|
2943
|
+
exc_tb: TracebackType | None,
|
|
2944
|
+
/,
|
|
2939
2945
|
) -> None:
|
|
2940
2946
|
"""Release the underlying buffer exposed by the memoryview object."""
|
|
2941
2947
|
...
|
|
@@ -3107,7 +3113,7 @@ class bool(int):
|
|
|
3107
3113
|
...
|
|
3108
3114
|
|
|
3109
3115
|
@final
|
|
3110
|
-
class slice(Generic[
|
|
3116
|
+
class slice(Generic[_StartT_co, _StopT_co, _StepT_co]):
|
|
3111
3117
|
"""
|
|
3112
3118
|
slice(stop)
|
|
3113
3119
|
slice(start, stop[, step])
|
|
@@ -3115,21 +3121,33 @@ class slice(Generic[_StartT, _StopT, _StepT]):
|
|
|
3115
3121
|
Create a slice object. This is used for extended slicing (e.g. a[0:10:2]).
|
|
3116
3122
|
"""
|
|
3117
3123
|
@property
|
|
3118
|
-
def start(self) ->
|
|
3124
|
+
def start(self) -> _StartT_co: ...
|
|
3119
3125
|
@property
|
|
3120
|
-
def step(self) ->
|
|
3126
|
+
def step(self) -> _StepT_co: ...
|
|
3121
3127
|
@property
|
|
3122
|
-
def stop(self) ->
|
|
3123
|
-
|
|
3124
|
-
|
|
3128
|
+
def stop(self) -> _StopT_co: ...
|
|
3129
|
+
# Note: __new__ overloads map `None` to `Any`, since users expect slice(x, None)
|
|
3130
|
+
# to be compatible with slice(None, x).
|
|
3131
|
+
# generic slice --------------------------------------------------------------------
|
|
3125
3132
|
@overload
|
|
3126
|
-
def __new__(
|
|
3127
|
-
|
|
3128
|
-
) -> slice[int | MaybeNone, int | MaybeNone, int | MaybeNone]: ...
|
|
3133
|
+
def __new__(cls, start: None, stop: None = None, step: None = None, /) -> slice[Any, Any, Any]: ...
|
|
3134
|
+
# unary overloads ------------------------------------------------------------------
|
|
3129
3135
|
@overload
|
|
3130
3136
|
def __new__(cls, stop: _T2, /) -> slice[Any, _T2, Any]: ...
|
|
3137
|
+
# binary overloads -----------------------------------------------------------------
|
|
3138
|
+
@overload
|
|
3139
|
+
def __new__(cls, start: _T1, stop: None, step: None = None, /) -> slice[_T1, Any, Any]: ...
|
|
3140
|
+
@overload
|
|
3141
|
+
def __new__(cls, start: None, stop: _T2, step: None = None, /) -> slice[Any, _T2, Any]: ...
|
|
3142
|
+
@overload
|
|
3143
|
+
def __new__(cls, start: _T1, stop: _T2, step: None = None, /) -> slice[_T1, _T2, Any]: ...
|
|
3144
|
+
# ternary overloads ----------------------------------------------------------------
|
|
3145
|
+
@overload
|
|
3146
|
+
def __new__(cls, start: None, stop: None, step: _T3, /) -> slice[Any, Any, _T3]: ...
|
|
3147
|
+
@overload
|
|
3148
|
+
def __new__(cls, start: _T1, stop: None, step: _T3, /) -> slice[_T1, Any, _T3]: ...
|
|
3131
3149
|
@overload
|
|
3132
|
-
def __new__(cls, start:
|
|
3150
|
+
def __new__(cls, start: None, stop: _T2, step: _T3, /) -> slice[Any, _T2, _T3]: ...
|
|
3133
3151
|
@overload
|
|
3134
3152
|
def __new__(cls, start: _T1, stop: _T2, step: _T3, /) -> slice[_T1, _T2, _T3]: ...
|
|
3135
3153
|
def __eq__(self, value: object, /) -> bool:
|
|
@@ -3481,7 +3499,7 @@ class dict(MutableMapping[_KT, _VT]):
|
|
|
3481
3499
|
...
|
|
3482
3500
|
# Positional-only in dict, but not in MutableMapping
|
|
3483
3501
|
@overload # type: ignore[override]
|
|
3484
|
-
def get(self, key: _KT, /) -> _VT | None:
|
|
3502
|
+
def get(self, key: _KT, default: None = None, /) -> _VT | None:
|
|
3485
3503
|
"""Return the value for key if key is in the dictionary, else default."""
|
|
3486
3504
|
...
|
|
3487
3505
|
@overload
|
|
@@ -3981,7 +3999,7 @@ class _PathLike(Protocol[AnyStr_co]):
|
|
|
3981
3999
|
def __fspath__(self) -> AnyStr_co: ...
|
|
3982
4000
|
|
|
3983
4001
|
if sys.version_info >= (3, 10):
|
|
3984
|
-
def aiter(async_iterable: SupportsAiter[
|
|
4002
|
+
def aiter(async_iterable: SupportsAiter[_SupportsAnextT_co], /) -> _SupportsAnextT_co:
|
|
3985
4003
|
"""Return an AsyncIterator for an AsyncIterable object."""
|
|
3986
4004
|
...
|
|
3987
4005
|
|
|
@@ -4377,7 +4395,7 @@ class _GetItemIterable(Protocol[_T_co]):
|
|
|
4377
4395
|
def __getitem__(self, i: int, /) -> _T_co: ...
|
|
4378
4396
|
|
|
4379
4397
|
@overload
|
|
4380
|
-
def iter(object: SupportsIter[
|
|
4398
|
+
def iter(object: SupportsIter[_SupportsNextT_co], /) -> _SupportsNextT_co:
|
|
4381
4399
|
"""
|
|
4382
4400
|
iter(iterable) -> iterator
|
|
4383
4401
|
iter(callable, sentinel) -> iterator
|
|
@@ -5635,17 +5653,17 @@ def print(
|
|
|
5635
5653
|
"""
|
|
5636
5654
|
...
|
|
5637
5655
|
|
|
5638
|
-
|
|
5639
|
-
|
|
5656
|
+
_E_contra = TypeVar("_E_contra", contravariant=True)
|
|
5657
|
+
_M_contra = TypeVar("_M_contra", contravariant=True)
|
|
5640
5658
|
|
|
5641
|
-
class _SupportsPow2(Protocol[
|
|
5642
|
-
def __pow__(self, other:
|
|
5659
|
+
class _SupportsPow2(Protocol[_E_contra, _T_co]):
|
|
5660
|
+
def __pow__(self, other: _E_contra, /) -> _T_co: ...
|
|
5643
5661
|
|
|
5644
|
-
class _SupportsPow3NoneOnly(Protocol[
|
|
5645
|
-
def __pow__(self, other:
|
|
5662
|
+
class _SupportsPow3NoneOnly(Protocol[_E_contra, _T_co]):
|
|
5663
|
+
def __pow__(self, other: _E_contra, modulo: None = None, /) -> _T_co: ...
|
|
5646
5664
|
|
|
5647
|
-
class _SupportsPow3(Protocol[
|
|
5648
|
-
def __pow__(self, other:
|
|
5665
|
+
class _SupportsPow3(Protocol[_E_contra, _M_contra, _T_co]):
|
|
5666
|
+
def __pow__(self, other: _E_contra, modulo: _M_contra, /) -> _T_co: ...
|
|
5649
5667
|
|
|
5650
5668
|
_SupportsSomeKindOfPow = ( # noqa: Y026 # TODO: Use TypeAlias once mypy bugs are fixed
|
|
5651
5669
|
_SupportsPow2[Any, Any] | _SupportsPow3NoneOnly[Any, Any] | _SupportsPow3[Any, Any, Any]
|
|
@@ -5751,7 +5769,7 @@ def pow(base: complex, exp: complex | _SupportsSomeKindOfPow, mod: None = None)
|
|
|
5751
5769
|
"""
|
|
5752
5770
|
...
|
|
5753
5771
|
@overload
|
|
5754
|
-
def pow(base: _SupportsPow2[
|
|
5772
|
+
def pow(base: _SupportsPow2[_E_contra, _T_co], exp: _E_contra, mod: None = None) -> _T_co:
|
|
5755
5773
|
"""
|
|
5756
5774
|
Equivalent to base**exp with 2 arguments or base**exp % mod with 3 arguments
|
|
5757
5775
|
|
|
@@ -5760,7 +5778,7 @@ def pow(base: _SupportsPow2[_E, _T_co], exp: _E, mod: None = None) -> _T_co:
|
|
|
5760
5778
|
"""
|
|
5761
5779
|
...
|
|
5762
5780
|
@overload
|
|
5763
|
-
def pow(base: _SupportsPow3NoneOnly[
|
|
5781
|
+
def pow(base: _SupportsPow3NoneOnly[_E_contra, _T_co], exp: _E_contra, mod: None = None) -> _T_co:
|
|
5764
5782
|
"""
|
|
5765
5783
|
Equivalent to base**exp with 2 arguments or base**exp % mod with 3 arguments
|
|
5766
5784
|
|
|
@@ -5769,7 +5787,7 @@ def pow(base: _SupportsPow3NoneOnly[_E, _T_co], exp: _E, mod: None = None) -> _T
|
|
|
5769
5787
|
"""
|
|
5770
5788
|
...
|
|
5771
5789
|
@overload
|
|
5772
|
-
def pow(base: _SupportsPow3[
|
|
5790
|
+
def pow(base: _SupportsPow3[_E_contra, _M_contra, _T_co], exp: _E_contra, mod: _M_contra) -> _T_co:
|
|
5773
5791
|
"""
|
|
5774
5792
|
Equivalent to base**exp with 2 arguments or base**exp % mod with 3 arguments
|
|
5775
5793
|
|