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
|
@@ -4,8 +4,9 @@ defined by the C standard.
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
import sys
|
|
7
|
+
from _typeshed import SupportsMul, SupportsRMul
|
|
7
8
|
from collections.abc import Iterable
|
|
8
|
-
from typing import Final, Protocol, SupportsFloat, SupportsIndex, TypeVar, overload
|
|
9
|
+
from typing import Any, Final, Literal, Protocol, SupportsFloat, SupportsIndex, TypeVar, overload
|
|
9
10
|
from typing_extensions import TypeAlias
|
|
10
11
|
|
|
11
12
|
_T = TypeVar("_T")
|
|
@@ -344,8 +345,37 @@ def perm(n: SupportsIndex, k: SupportsIndex | None = None, /) -> int:
|
|
|
344
345
|
def pow(x: _SupportsFloatOrIndex, y: _SupportsFloatOrIndex, /) -> float:
|
|
345
346
|
"""Return x**y (x to the power of y)."""
|
|
346
347
|
...
|
|
348
|
+
|
|
349
|
+
_PositiveInteger: TypeAlias = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
|
|
350
|
+
_NegativeInteger: TypeAlias = Literal[-1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -20]
|
|
351
|
+
_LiteralInteger = _PositiveInteger | _NegativeInteger | Literal[0] # noqa: Y026 # TODO: Use TypeAlias once mypy bugs are fixed
|
|
352
|
+
|
|
353
|
+
_MultiplicableT1 = TypeVar("_MultiplicableT1", bound=SupportsMul[Any, Any])
|
|
354
|
+
_MultiplicableT2 = TypeVar("_MultiplicableT2", bound=SupportsMul[Any, Any])
|
|
355
|
+
|
|
356
|
+
class _SupportsProdWithNoDefaultGiven(SupportsMul[Any, Any], SupportsRMul[int, Any], Protocol): ...
|
|
357
|
+
|
|
358
|
+
_SupportsProdNoDefaultT = TypeVar("_SupportsProdNoDefaultT", bound=_SupportsProdWithNoDefaultGiven)
|
|
359
|
+
|
|
360
|
+
# This stub is based on the type stub for `builtins.sum`.
|
|
361
|
+
# Like `builtins.sum`, it cannot be precisely represented in a type stub
|
|
362
|
+
# without introducing many false positives.
|
|
363
|
+
# For more details on its limitations and false positives, see #13572.
|
|
364
|
+
# Instead, just like `builtins.sum`, we explicitly handle several useful cases.
|
|
365
|
+
@overload
|
|
366
|
+
def prod(iterable: Iterable[bool | _LiteralInteger], /, *, start: int = 1) -> int:
|
|
367
|
+
"""
|
|
368
|
+
Calculate the product of all the elements in the input iterable.
|
|
369
|
+
|
|
370
|
+
The default start value for the product is 1.
|
|
371
|
+
|
|
372
|
+
When the iterable is empty, return the start value. This function is
|
|
373
|
+
intended specifically for use with numeric values and may reject
|
|
374
|
+
non-numeric types.
|
|
375
|
+
"""
|
|
376
|
+
...
|
|
347
377
|
@overload
|
|
348
|
-
def prod(iterable: Iterable[
|
|
378
|
+
def prod(iterable: Iterable[_SupportsProdNoDefaultT], /) -> _SupportsProdNoDefaultT | Literal[1]:
|
|
349
379
|
"""
|
|
350
380
|
Calculate the product of all the elements in the input iterable.
|
|
351
381
|
|
|
@@ -357,7 +387,7 @@ def prod(iterable: Iterable[SupportsIndex], /, *, start: SupportsIndex = 1) -> i
|
|
|
357
387
|
"""
|
|
358
388
|
...
|
|
359
389
|
@overload
|
|
360
|
-
def prod(iterable: Iterable[
|
|
390
|
+
def prod(iterable: Iterable[_MultiplicableT1], /, *, start: _MultiplicableT2) -> _MultiplicableT1 | _MultiplicableT2:
|
|
361
391
|
"""
|
|
362
392
|
Calculate the product of all the elements in the input iterable.
|
|
363
393
|
|
|
@@ -12,10 +12,10 @@ __all__ = ["Client", "Listener", "Pipe", "wait"]
|
|
|
12
12
|
_Address: TypeAlias = str | tuple[str, int]
|
|
13
13
|
|
|
14
14
|
# Defaulting to Any to avoid forcing generics on a lot of pre-existing code
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
_SendT_contra = TypeVar("_SendT_contra", contravariant=True, default=Any)
|
|
16
|
+
_RecvT_co = TypeVar("_RecvT_co", covariant=True, default=Any)
|
|
17
17
|
|
|
18
|
-
class _ConnectionBase(Generic[
|
|
18
|
+
class _ConnectionBase(Generic[_SendT_contra, _RecvT_co]):
|
|
19
19
|
def __init__(self, handle: SupportsIndex, readable: bool = True, writable: bool = True) -> None: ...
|
|
20
20
|
@property
|
|
21
21
|
def closed(self) -> bool:
|
|
@@ -32,10 +32,10 @@ class _ConnectionBase(Generic[_SendT, _RecvT]):
|
|
|
32
32
|
def fileno(self) -> int: ...
|
|
33
33
|
def close(self) -> None: ...
|
|
34
34
|
def send_bytes(self, buf: ReadableBuffer, offset: int = 0, size: int | None = None) -> None: ...
|
|
35
|
-
def send(self, obj:
|
|
35
|
+
def send(self, obj: _SendT_contra) -> None: ...
|
|
36
36
|
def recv_bytes(self, maxlength: int | None = None) -> bytes: ...
|
|
37
37
|
def recv_bytes_into(self, buf: Any, offset: int = 0) -> int: ...
|
|
38
|
-
def recv(self) ->
|
|
38
|
+
def recv(self) -> _RecvT_co: ...
|
|
39
39
|
def poll(self, timeout: float | None = 0.0) -> bool: ...
|
|
40
40
|
def __enter__(self) -> Self: ...
|
|
41
41
|
def __exit__(
|
|
@@ -43,10 +43,10 @@ class _ConnectionBase(Generic[_SendT, _RecvT]):
|
|
|
43
43
|
) -> None: ...
|
|
44
44
|
def __del__(self) -> None: ...
|
|
45
45
|
|
|
46
|
-
class Connection(_ConnectionBase[
|
|
46
|
+
class Connection(_ConnectionBase[_SendT_contra, _RecvT_co]): ...
|
|
47
47
|
|
|
48
48
|
if sys.platform == "win32":
|
|
49
|
-
class PipeConnection(_ConnectionBase[
|
|
49
|
+
class PipeConnection(_ConnectionBase[_SendT_contra, _RecvT_co]): ...
|
|
50
50
|
|
|
51
51
|
class Listener:
|
|
52
52
|
def __init__(
|
|
@@ -72,8 +72,8 @@ else:
|
|
|
72
72
|
|
|
73
73
|
def answer_challenge(connection: Connection[Any, Any], authkey: bytes) -> None: ...
|
|
74
74
|
def wait(
|
|
75
|
-
object_list: Iterable[Connection[
|
|
76
|
-
) -> list[Connection[
|
|
75
|
+
object_list: Iterable[Connection[_SendT_contra, _RecvT_co] | socket.socket | int], timeout: float | None = None
|
|
76
|
+
) -> list[Connection[_SendT_contra, _RecvT_co] | socket.socket | int]: ...
|
|
77
77
|
def Client(address: _Address, family: str | None = None, authkey: bytes | None = None) -> Connection[Any, Any]: ...
|
|
78
78
|
|
|
79
79
|
# N.B. Keep this in sync with multiprocessing.context.BaseContext.Pipe.
|
|
@@ -16,7 +16,7 @@ from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWra
|
|
|
16
16
|
from os import PathLike, stat_result
|
|
17
17
|
from types import TracebackType
|
|
18
18
|
from typing import IO, Any, BinaryIO, ClassVar, Literal, overload
|
|
19
|
-
from typing_extensions import Self, deprecated
|
|
19
|
+
from typing_extensions import Never, Self, deprecated
|
|
20
20
|
|
|
21
21
|
if sys.version_info >= (3, 9):
|
|
22
22
|
from types import GenericAlias
|
|
@@ -160,12 +160,10 @@ class Path(PurePath):
|
|
|
160
160
|
def read_text(self, encoding: str | None = None, errors: str | None = None) -> str: ...
|
|
161
161
|
|
|
162
162
|
if sys.version_info >= (3, 13):
|
|
163
|
-
def glob(
|
|
164
|
-
self, pattern: str, *, case_sensitive: bool | None = None, recurse_symlinks: bool = False
|
|
165
|
-
) -> Generator[Self, None, None]: ...
|
|
163
|
+
def glob(self, pattern: str, *, case_sensitive: bool | None = None, recurse_symlinks: bool = False) -> Iterator[Self]: ...
|
|
166
164
|
def rglob(
|
|
167
165
|
self, pattern: str, *, case_sensitive: bool | None = None, recurse_symlinks: bool = False
|
|
168
|
-
) ->
|
|
166
|
+
) -> Iterator[Self]: ...
|
|
169
167
|
elif sys.version_info >= (3, 12):
|
|
170
168
|
def glob(self, pattern: str, *, case_sensitive: bool | None = None) -> Generator[Self, None, None]: ...
|
|
171
169
|
def rglob(self, pattern: str, *, case_sensitive: bool | None = None) -> Generator[Self, None, None]: ...
|
|
@@ -259,9 +257,13 @@ class Path(PurePath):
|
|
|
259
257
|
def open(
|
|
260
258
|
self, mode: str, buffering: int = -1, encoding: str | None = None, errors: str | None = None, newline: str | None = None
|
|
261
259
|
) -> IO[Any]: ...
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
260
|
+
|
|
261
|
+
# These methods do "exist" on Windows on <3.13, but they always raise NotImplementedError.
|
|
262
|
+
if sys.platform == "win32":
|
|
263
|
+
if sys.version_info < (3, 13):
|
|
264
|
+
def owner(self: Never) -> str: ... # type: ignore[misc]
|
|
265
|
+
def group(self: Never) -> str: ... # type: ignore[misc]
|
|
266
|
+
else:
|
|
265
267
|
if sys.version_info >= (3, 13):
|
|
266
268
|
def owner(self, *, follow_symlinks: bool = True) -> str: ...
|
|
267
269
|
def group(self, *, follow_symlinks: bool = True) -> str: ...
|
|
@@ -271,7 +273,9 @@ class Path(PurePath):
|
|
|
271
273
|
|
|
272
274
|
# This method does "exist" on Windows on <3.12, but always raises NotImplementedError
|
|
273
275
|
# On py312+, it works properly on Windows, as with all other platforms
|
|
274
|
-
if sys.platform
|
|
276
|
+
if sys.platform == "win32" and sys.version_info < (3, 12):
|
|
277
|
+
def is_mount(self: Never) -> bool: ... # type: ignore[misc]
|
|
278
|
+
else:
|
|
275
279
|
def is_mount(self) -> bool: ...
|
|
276
280
|
|
|
277
281
|
if sys.version_info >= (3, 9):
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import sys
|
|
2
|
-
from _typeshed import SupportsRead
|
|
2
|
+
from _typeshed import StrOrBytesPath, SupportsRead
|
|
3
3
|
from _typeshed.importlib import LoaderProtocol, MetaPathFinderProtocol, PathEntryFinderProtocol
|
|
4
4
|
from collections.abc import Callable, Iterable, Iterator
|
|
5
5
|
from typing import IO, Any, NamedTuple, TypeVar
|
|
@@ -31,21 +31,21 @@ def extend_path(path: _PathT, name: str) -> _PathT: ...
|
|
|
31
31
|
|
|
32
32
|
if sys.version_info < (3, 12):
|
|
33
33
|
class ImpImporter:
|
|
34
|
-
def __init__(self, path:
|
|
34
|
+
def __init__(self, path: StrOrBytesPath | None = None) -> None: ...
|
|
35
35
|
|
|
36
36
|
class ImpLoader:
|
|
37
|
-
def __init__(self, fullname: str, file: IO[str], filename:
|
|
37
|
+
def __init__(self, fullname: str, file: IO[str], filename: StrOrBytesPath, etc: tuple[str, str, int]) -> None: ...
|
|
38
38
|
|
|
39
39
|
@deprecated("Use importlib.util.find_spec() instead. Will be removed in Python 3.14.")
|
|
40
40
|
def find_loader(fullname: str) -> LoaderProtocol | None: ...
|
|
41
|
-
def get_importer(path_item:
|
|
41
|
+
def get_importer(path_item: StrOrBytesPath) -> PathEntryFinderProtocol | None: ...
|
|
42
42
|
@deprecated("Use importlib.util.find_spec() instead. Will be removed in Python 3.14.")
|
|
43
43
|
def get_loader(module_or_name: str) -> LoaderProtocol | None: ...
|
|
44
44
|
def iter_importers(fullname: str = "") -> Iterator[MetaPathFinderProtocol | PathEntryFinderProtocol]: ...
|
|
45
|
-
def iter_modules(path: Iterable[
|
|
45
|
+
def iter_modules(path: Iterable[StrOrBytesPath] | None = None, prefix: str = "") -> Iterator[ModuleInfo]: ...
|
|
46
46
|
def read_code(stream: SupportsRead[bytes]) -> Any: ... # undocumented
|
|
47
47
|
def walk_packages(
|
|
48
|
-
path: Iterable[
|
|
48
|
+
path: Iterable[StrOrBytesPath] | None = None, prefix: str = "", onerror: Callable[[str], object] | None = None
|
|
49
49
|
) -> Iterator[ModuleInfo]: ...
|
|
50
50
|
def get_data(package: str, resource: str) -> bytes | None: ...
|
|
51
51
|
|
|
@@ -3,7 +3,7 @@ import sys
|
|
|
3
3
|
from _typeshed import BytesPath, ExcInfo, FileDescriptorOrPath, StrOrBytesPath, StrPath, SupportsRead, SupportsWrite
|
|
4
4
|
from collections.abc import Callable, Iterable, Sequence
|
|
5
5
|
from tarfile import _TarfileFilter
|
|
6
|
-
from typing import Any, AnyStr, NamedTuple, Protocol, TypeVar, overload
|
|
6
|
+
from typing import Any, AnyStr, NamedTuple, NoReturn, Protocol, TypeVar, overload
|
|
7
7
|
from typing_extensions import TypeAlias, deprecated
|
|
8
8
|
|
|
9
9
|
__all__ = [
|
|
@@ -36,7 +36,6 @@ __all__ = [
|
|
|
36
36
|
]
|
|
37
37
|
|
|
38
38
|
_StrOrBytesPathT = TypeVar("_StrOrBytesPathT", bound=StrOrBytesPath)
|
|
39
|
-
_StrPathT = TypeVar("_StrPathT", bound=StrPath)
|
|
40
39
|
# Return value of some functions that may either return a path-like object that was passed in or
|
|
41
40
|
# a string
|
|
42
41
|
_PathReturn: TypeAlias = Any
|
|
@@ -83,7 +82,7 @@ class _RmtreeType(Protocol):
|
|
|
83
82
|
self,
|
|
84
83
|
path: StrOrBytesPath,
|
|
85
84
|
ignore_errors: bool,
|
|
86
|
-
onerror: _OnErrorCallback,
|
|
85
|
+
onerror: _OnErrorCallback | None,
|
|
87
86
|
*,
|
|
88
87
|
onexc: None = None,
|
|
89
88
|
dir_fd: int | None = None,
|
|
@@ -95,7 +94,7 @@ class _RmtreeType(Protocol):
|
|
|
95
94
|
path: StrOrBytesPath,
|
|
96
95
|
ignore_errors: bool = False,
|
|
97
96
|
*,
|
|
98
|
-
onerror: _OnErrorCallback,
|
|
97
|
+
onerror: _OnErrorCallback | None,
|
|
99
98
|
onexc: None = None,
|
|
100
99
|
dir_fd: int | None = None,
|
|
101
100
|
) -> None: ...
|
|
@@ -185,8 +184,13 @@ else:
|
|
|
185
184
|
@overload
|
|
186
185
|
def chown(path: FileDescriptorOrPath, user: str | int, group: str | int) -> None: ...
|
|
187
186
|
|
|
187
|
+
if sys.platform == "win32" and sys.version_info < (3, 12):
|
|
188
|
+
@overload
|
|
189
|
+
@deprecated("On Windows before Python 3.12, using a PathLike as `cmd` would always fail or return `None`.")
|
|
190
|
+
def which(cmd: os.PathLike[str], mode: int = 1, path: StrPath | None = None) -> NoReturn: ...
|
|
191
|
+
|
|
188
192
|
@overload
|
|
189
|
-
def which(cmd:
|
|
193
|
+
def which(cmd: StrPath, mode: int = 1, path: StrPath | None = None) -> str | None: ...
|
|
190
194
|
@overload
|
|
191
195
|
def which(cmd: bytes, mode: int = 1, path: StrPath | None = None) -> bytes | None: ...
|
|
192
196
|
def make_archive(
|
|
@@ -38,29 +38,22 @@ _AfInetAddress: TypeAlias = tuple[str | bytes | bytearray, int] # address accep
|
|
|
38
38
|
|
|
39
39
|
# This can possibly be generic at some point:
|
|
40
40
|
class BaseServer:
|
|
41
|
-
address_family: int
|
|
42
41
|
server_address: _Address
|
|
43
|
-
socket: _socket
|
|
44
|
-
allow_reuse_address: bool
|
|
45
|
-
request_queue_size: int
|
|
46
|
-
socket_type: int
|
|
47
42
|
timeout: float | None
|
|
48
43
|
RequestHandlerClass: Callable[[Any, _RetAddress, Self], BaseRequestHandler]
|
|
49
44
|
def __init__(
|
|
50
45
|
self, server_address: _Address, RequestHandlerClass: Callable[[Any, _RetAddress, Self], BaseRequestHandler]
|
|
51
46
|
) -> None: ...
|
|
52
|
-
def fileno(self) -> int: ...
|
|
53
47
|
def handle_request(self) -> None: ...
|
|
54
48
|
def serve_forever(self, poll_interval: float = 0.5) -> None: ...
|
|
55
49
|
def shutdown(self) -> None: ...
|
|
56
50
|
def server_close(self) -> None: ...
|
|
57
51
|
def finish_request(self, request: _RequestType, client_address: _RetAddress) -> None: ...
|
|
58
|
-
def get_request(self) -> tuple[Any, Any]: ...
|
|
52
|
+
def get_request(self) -> tuple[Any, Any]: ... # Not implemented here, but expected to exist on subclasses
|
|
59
53
|
def handle_error(self, request: _RequestType, client_address: _RetAddress) -> None: ...
|
|
60
54
|
def handle_timeout(self) -> None: ...
|
|
61
55
|
def process_request(self, request: _RequestType, client_address: _RetAddress) -> None: ...
|
|
62
56
|
def server_activate(self) -> None: ...
|
|
63
|
-
def server_bind(self) -> None: ...
|
|
64
57
|
def verify_request(self, request: _RequestType, client_address: _RetAddress) -> bool: ...
|
|
65
58
|
def __enter__(self) -> Self: ...
|
|
66
59
|
def __exit__(
|
|
@@ -71,6 +64,11 @@ class BaseServer:
|
|
|
71
64
|
def close_request(self, request: _RequestType) -> None: ... # undocumented
|
|
72
65
|
|
|
73
66
|
class TCPServer(BaseServer):
|
|
67
|
+
address_family: int
|
|
68
|
+
socket: _socket
|
|
69
|
+
allow_reuse_address: bool
|
|
70
|
+
request_queue_size: int
|
|
71
|
+
socket_type: int
|
|
74
72
|
if sys.version_info >= (3, 11):
|
|
75
73
|
allow_reuse_port: bool
|
|
76
74
|
server_address: _AfInetAddress
|
|
@@ -80,7 +78,9 @@ class TCPServer(BaseServer):
|
|
|
80
78
|
RequestHandlerClass: Callable[[Any, _RetAddress, Self], BaseRequestHandler],
|
|
81
79
|
bind_and_activate: bool = True,
|
|
82
80
|
) -> None: ...
|
|
81
|
+
def fileno(self) -> int: ...
|
|
83
82
|
def get_request(self) -> tuple[_socket, _RetAddress]: ...
|
|
83
|
+
def server_bind(self) -> None: ...
|
|
84
84
|
|
|
85
85
|
class UDPServer(TCPServer):
|
|
86
86
|
max_packet_size: ClassVar[int]
|
|
@@ -3,7 +3,7 @@ from _typeshed import SupportsRichComparisonT
|
|
|
3
3
|
from collections.abc import Callable, Hashable, Iterable, Sequence
|
|
4
4
|
from decimal import Decimal
|
|
5
5
|
from fractions import Fraction
|
|
6
|
-
from typing import
|
|
6
|
+
from typing import Literal, NamedTuple, SupportsFloat, SupportsIndex, TypeVar
|
|
7
7
|
from typing_extensions import Self, TypeAlias
|
|
8
8
|
|
|
9
9
|
__all__ = [
|
|
@@ -38,6 +38,9 @@ _NumberT = TypeVar("_NumberT", float, Decimal, Fraction)
|
|
|
38
38
|
# Used in mode, multimode
|
|
39
39
|
_HashableT = TypeVar("_HashableT", bound=Hashable)
|
|
40
40
|
|
|
41
|
+
# Used in NormalDist.samples and kde_random
|
|
42
|
+
_Seed: TypeAlias = int | float | str | bytes | bytearray # noqa: Y041
|
|
43
|
+
|
|
41
44
|
class StatisticsError(ValueError): ...
|
|
42
45
|
|
|
43
46
|
if sys.version_info >= (3, 11):
|
|
@@ -104,7 +107,7 @@ class NormalDist:
|
|
|
104
107
|
...
|
|
105
108
|
@classmethod
|
|
106
109
|
def from_samples(cls, data: Iterable[SupportsFloat]) -> Self: ...
|
|
107
|
-
def samples(self, n:
|
|
110
|
+
def samples(self, n: SupportsIndex, *, seed: _Seed | None = None) -> list[float]: ...
|
|
108
111
|
def pdf(self, x: float) -> float: ...
|
|
109
112
|
def cdf(self, x: float) -> float: ...
|
|
110
113
|
def inv_cdf(self, p: float) -> float: ...
|
|
@@ -113,15 +116,15 @@ class NormalDist:
|
|
|
113
116
|
if sys.version_info >= (3, 9):
|
|
114
117
|
def zscore(self, x: float) -> float: ...
|
|
115
118
|
|
|
116
|
-
def __eq__(
|
|
117
|
-
def __add__(
|
|
118
|
-
def __sub__(
|
|
119
|
-
def __mul__(
|
|
120
|
-
def __truediv__(
|
|
121
|
-
def __pos__(
|
|
122
|
-
def __neg__(
|
|
119
|
+
def __eq__(x1, x2: object) -> bool: ...
|
|
120
|
+
def __add__(x1, x2: float | NormalDist) -> NormalDist: ...
|
|
121
|
+
def __sub__(x1, x2: float | NormalDist) -> NormalDist: ...
|
|
122
|
+
def __mul__(x1, x2: float) -> NormalDist: ...
|
|
123
|
+
def __truediv__(x1, x2: float) -> NormalDist: ...
|
|
124
|
+
def __pos__(x1) -> NormalDist: ...
|
|
125
|
+
def __neg__(x1) -> NormalDist: ...
|
|
123
126
|
__radd__ = __add__
|
|
124
|
-
def __rsub__(
|
|
127
|
+
def __rsub__(x1, x2: float | NormalDist) -> NormalDist: ...
|
|
125
128
|
__rmul__ = __mul__
|
|
126
129
|
def __hash__(self) -> int: ...
|
|
127
130
|
|
|
@@ -168,9 +171,5 @@ if sys.version_info >= (3, 13):
|
|
|
168
171
|
data: Sequence[float], h: float, kernel: _Kernel = "normal", *, cumulative: bool = False
|
|
169
172
|
) -> Callable[[float], float]: ...
|
|
170
173
|
def kde_random(
|
|
171
|
-
data: Sequence[float],
|
|
172
|
-
h: float,
|
|
173
|
-
kernel: _Kernel = "normal",
|
|
174
|
-
*,
|
|
175
|
-
seed: int | float | str | bytes | bytearray | None = None, # noqa: Y041
|
|
174
|
+
data: Sequence[float], h: float, kernel: _Kernel = "normal", *, seed: _Seed | None = None
|
|
176
175
|
) -> Callable[[], float]: ...
|