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
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/breadth_first_search.pyi
CHANGED
|
@@ -1,25 +1,34 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Generator
|
|
2
|
+
from collections.abc import Callable, Generator
|
|
3
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
4
5
|
from networkx.utils.backends import _dispatchable
|
|
5
6
|
|
|
6
7
|
@_dispatchable
|
|
7
8
|
def bfs_edges(
|
|
8
|
-
G
|
|
9
|
+
G: Graph[_Node],
|
|
10
|
+
source: _Node,
|
|
11
|
+
reverse: bool | None = False,
|
|
12
|
+
depth_limit=None,
|
|
13
|
+
sort_neighbors: Callable[..., Incomplete] | None = None,
|
|
9
14
|
) -> Generator[Incomplete, Incomplete, None]: ...
|
|
10
15
|
@_dispatchable
|
|
11
16
|
def bfs_tree(
|
|
12
|
-
G
|
|
17
|
+
G: Graph[_Node],
|
|
18
|
+
source: _Node,
|
|
19
|
+
reverse: bool | None = False,
|
|
20
|
+
depth_limit=None,
|
|
21
|
+
sort_neighbors: Callable[..., Incomplete] | None = None,
|
|
13
22
|
): ...
|
|
14
23
|
@_dispatchable
|
|
15
24
|
def bfs_predecessors(
|
|
16
|
-
G, source, depth_limit
|
|
25
|
+
G: Graph[_Node], source: _Node, depth_limit=None, sort_neighbors: Callable[..., Incomplete] | None = None
|
|
17
26
|
) -> Generator[Incomplete, None, None]: ...
|
|
18
27
|
@_dispatchable
|
|
19
28
|
def bfs_successors(
|
|
20
|
-
G, source, depth_limit
|
|
29
|
+
G: Graph[_Node], source: _Node, depth_limit=None, sort_neighbors: Callable[..., Incomplete] | None = None
|
|
21
30
|
) -> Generator[Incomplete, None, None]: ...
|
|
22
31
|
@_dispatchable
|
|
23
|
-
def bfs_layers(G, sources) -> Generator[Incomplete, None, None]: ...
|
|
32
|
+
def bfs_layers(G: Graph[_Node], sources) -> Generator[Incomplete, None, None]: ...
|
|
24
33
|
@_dispatchable
|
|
25
|
-
def descendants_at_distance(G, source, distance): ...
|
|
34
|
+
def descendants_at_distance(G: Graph[_Node], source, distance): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/depth_first_search.pyi
CHANGED
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Generator
|
|
2
|
+
from collections.abc import Callable, Generator
|
|
3
3
|
|
|
4
4
|
from networkx.classes.graph import Graph, _Node
|
|
5
5
|
from networkx.utils.backends import _dispatchable
|
|
6
6
|
|
|
7
7
|
@_dispatchable
|
|
8
8
|
def dfs_edges(
|
|
9
|
-
G: Graph[_Node], source: _Node | None = None, depth_limit:
|
|
9
|
+
G: Graph[_Node], source: _Node | None = None, depth_limit=None, *, sort_neighbors: Callable[..., Incomplete] | None = None
|
|
10
10
|
) -> Generator[tuple[_Node, _Node], None, None]: ...
|
|
11
11
|
@_dispatchable
|
|
12
|
-
def dfs_tree(
|
|
12
|
+
def dfs_tree(
|
|
13
|
+
G: Graph[_Node], source: _Node | None = None, depth_limit=None, *, sort_neighbors: Callable[..., Incomplete] | None = None
|
|
14
|
+
): ...
|
|
13
15
|
@_dispatchable
|
|
14
|
-
def dfs_predecessors(
|
|
16
|
+
def dfs_predecessors(
|
|
17
|
+
G: Graph[_Node], source: _Node | None = None, depth_limit=None, *, sort_neighbors: Callable[..., Incomplete] | None = None
|
|
18
|
+
): ...
|
|
15
19
|
@_dispatchable
|
|
16
|
-
def dfs_successors(
|
|
20
|
+
def dfs_successors(
|
|
21
|
+
G: Graph[_Node], source: _Node | None = None, depth_limit=None, *, sort_neighbors: Callable[..., Incomplete] | None = None
|
|
22
|
+
): ...
|
|
17
23
|
@_dispatchable
|
|
18
|
-
def dfs_postorder_nodes(
|
|
24
|
+
def dfs_postorder_nodes(
|
|
25
|
+
G: Graph[_Node], source: _Node | None = None, depth_limit=None, *, sort_neighbors: Callable[..., Incomplete] | None = None
|
|
26
|
+
): ...
|
|
19
27
|
@_dispatchable
|
|
20
|
-
def dfs_preorder_nodes(
|
|
28
|
+
def dfs_preorder_nodes(
|
|
29
|
+
G: Graph[_Node], source: _Node | None = None, depth_limit=None, *, sort_neighbors: Callable[..., Incomplete] | None = None
|
|
30
|
+
): ...
|
|
21
31
|
@_dispatchable
|
|
22
|
-
def dfs_labeled_edges(
|
|
32
|
+
def dfs_labeled_edges(
|
|
33
|
+
G: Graph[_Node], source: _Node | None = None, depth_limit=None, *, sort_neighbors: Callable[..., Incomplete] | None = None
|
|
34
|
+
) -> None: ...
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
from collections.abc import Generator
|
|
3
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
4
5
|
from networkx.utils.backends import _dispatchable
|
|
5
6
|
|
|
6
7
|
@_dispatchable
|
|
7
|
-
def edge_bfs(
|
|
8
|
-
G, source: Incomplete | None = None, orientation: Incomplete | None = None
|
|
9
|
-
) -> Generator[Incomplete, None, Incomplete]: ...
|
|
8
|
+
def edge_bfs(G: Graph[_Node], source=None, orientation=None) -> Generator[Incomplete, None, Incomplete]: ...
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
from collections.abc import Generator
|
|
3
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
4
5
|
from networkx.utils.backends import _dispatchable
|
|
5
6
|
|
|
6
7
|
@_dispatchable
|
|
7
|
-
def edge_dfs(
|
|
8
|
-
G, source: Incomplete | None = None, orientation: Incomplete | None = None
|
|
9
|
-
) -> Generator[Incomplete, None, Incomplete]: ...
|
|
8
|
+
def edge_dfs(G: Graph[_Node], source=None, orientation=None) -> Generator[Incomplete, None, Incomplete]: ...
|
|
@@ -2,7 +2,10 @@ from _typeshed import Incomplete
|
|
|
2
2
|
from collections.abc import Iterator
|
|
3
3
|
from dataclasses import dataclass
|
|
4
4
|
|
|
5
|
+
from networkx.classes.digraph import DiGraph
|
|
6
|
+
from networkx.classes.graph import _Node
|
|
5
7
|
from networkx.utils.backends import _dispatchable
|
|
8
|
+
from numpy.random import RandomState
|
|
6
9
|
|
|
7
10
|
__all__ = [
|
|
8
11
|
"branching_weight",
|
|
@@ -15,24 +18,26 @@ __all__ = [
|
|
|
15
18
|
]
|
|
16
19
|
|
|
17
20
|
@_dispatchable
|
|
18
|
-
def branching_weight(G, attr: str = "weight", default: float = 1): ...
|
|
21
|
+
def branching_weight(G: DiGraph[_Node], attr: str = "weight", default: float = 1): ...
|
|
19
22
|
@_dispatchable
|
|
20
|
-
def greedy_branching(
|
|
23
|
+
def greedy_branching(
|
|
24
|
+
G: DiGraph[_Node], attr: str = "weight", default: float = 1, kind: str = "max", seed: int | RandomState | None = None
|
|
25
|
+
): ...
|
|
21
26
|
@_dispatchable
|
|
22
27
|
def maximum_branching(
|
|
23
|
-
G, attr: str = "weight", default: float = 1, preserve_attrs: bool = False, partition:
|
|
28
|
+
G: DiGraph[_Node], attr: str = "weight", default: float = 1, preserve_attrs: bool = False, partition: str | None = None
|
|
24
29
|
): ...
|
|
25
30
|
@_dispatchable
|
|
26
31
|
def minimum_branching(
|
|
27
|
-
G, attr: str = "weight", default: float = 1, preserve_attrs: bool = False, partition:
|
|
32
|
+
G: DiGraph[_Node], attr: str = "weight", default: float = 1, preserve_attrs: bool = False, partition: str | None = None
|
|
28
33
|
): ...
|
|
29
34
|
@_dispatchable
|
|
30
35
|
def maximum_spanning_arborescence(
|
|
31
|
-
G, attr: str = "weight", default: float = 1, preserve_attrs: bool = False, partition:
|
|
36
|
+
G: DiGraph[_Node], attr: str = "weight", default: float = 1, preserve_attrs: bool = False, partition: str | None = None
|
|
32
37
|
): ...
|
|
33
38
|
@_dispatchable
|
|
34
39
|
def minimum_spanning_arborescence(
|
|
35
|
-
G, attr: str = "weight", default: float = 1, preserve_attrs: bool = False, partition:
|
|
40
|
+
G: DiGraph[_Node], attr: str = "weight", default: float = 1, preserve_attrs: bool = False, partition: str | None = None
|
|
36
41
|
): ...
|
|
37
42
|
|
|
38
43
|
class ArborescenceIterator:
|
|
@@ -47,7 +52,9 @@ class ArborescenceIterator:
|
|
|
47
52
|
method: Incomplete
|
|
48
53
|
partition_key: str
|
|
49
54
|
init_partition: Incomplete
|
|
55
|
+
|
|
50
56
|
def __init__(self, G, weight: str = "weight", minimum: bool = True, init_partition: Incomplete | None = None) -> None: ...
|
|
51
57
|
partition_queue: Incomplete
|
|
58
|
+
|
|
52
59
|
def __iter__(self) -> Iterator[Incomplete]: ...
|
|
53
60
|
def __next__(self): ...
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
3
|
+
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
1
5
|
from networkx.exception import NetworkXException
|
|
2
6
|
from networkx.utils.backends import _dispatchable
|
|
3
7
|
|
|
4
8
|
class NotATree(NetworkXException): ...
|
|
5
9
|
|
|
6
10
|
@_dispatchable
|
|
7
|
-
def to_nested_tuple(T, root, canonical_form: bool = False): ...
|
|
11
|
+
def to_nested_tuple(T: Graph[_Node], root: _Node, canonical_form: bool = False): ...
|
|
8
12
|
@_dispatchable
|
|
9
|
-
def from_nested_tuple(sequence, sensible_relabeling: bool = False): ...
|
|
13
|
+
def from_nested_tuple(sequence: tuple[Incomplete], sensible_relabeling: bool = False): ...
|
|
10
14
|
@_dispatchable
|
|
11
|
-
def to_prufer_sequence(T): ...
|
|
15
|
+
def to_prufer_sequence(T: Graph[_Node]): ...
|
|
12
16
|
@_dispatchable
|
|
13
|
-
def from_prufer_sequence(sequence): ...
|
|
17
|
+
def from_prufer_sequence(sequence: Iterable[Incomplete]): ...
|
|
@@ -3,7 +3,9 @@ from collections.abc import Iterator
|
|
|
3
3
|
from dataclasses import dataclass
|
|
4
4
|
from enum import Enum
|
|
5
5
|
|
|
6
|
+
from networkx.classes.graph import Graph, _Node
|
|
6
7
|
from networkx.utils.backends import _dispatchable
|
|
8
|
+
from numpy.random import RandomState
|
|
7
9
|
|
|
8
10
|
class EdgePartition(Enum):
|
|
9
11
|
OPEN = 0
|
|
@@ -12,22 +14,34 @@ class EdgePartition(Enum):
|
|
|
12
14
|
|
|
13
15
|
@_dispatchable
|
|
14
16
|
def minimum_spanning_edges(
|
|
15
|
-
G
|
|
17
|
+
G: Graph[_Node],
|
|
18
|
+
algorithm: str = "kruskal",
|
|
19
|
+
weight: str = "weight",
|
|
20
|
+
keys: bool = True,
|
|
21
|
+
data: bool | None = True,
|
|
22
|
+
ignore_nan: bool = False,
|
|
16
23
|
): ...
|
|
17
24
|
@_dispatchable
|
|
18
25
|
def maximum_spanning_edges(
|
|
19
|
-
G
|
|
26
|
+
G: Graph[_Node],
|
|
27
|
+
algorithm: str = "kruskal",
|
|
28
|
+
weight: str = "weight",
|
|
29
|
+
keys: bool = True,
|
|
30
|
+
data: bool | None = True,
|
|
31
|
+
ignore_nan: bool = False,
|
|
20
32
|
): ...
|
|
21
33
|
@_dispatchable
|
|
22
|
-
def minimum_spanning_tree(G, weight: str = "weight", algorithm: str = "kruskal", ignore_nan: bool = False): ...
|
|
34
|
+
def minimum_spanning_tree(G: Graph[_Node], weight: str = "weight", algorithm: str = "kruskal", ignore_nan: bool = False): ...
|
|
23
35
|
@_dispatchable
|
|
24
36
|
def partition_spanning_tree(
|
|
25
|
-
G, minimum: bool = True, weight: str = "weight", partition: str = "partition", ignore_nan: bool = False
|
|
37
|
+
G: Graph[_Node], minimum: bool = True, weight: str = "weight", partition: str = "partition", ignore_nan: bool = False
|
|
26
38
|
): ...
|
|
27
39
|
@_dispatchable
|
|
28
|
-
def maximum_spanning_tree(G, weight: str = "weight", algorithm: str = "kruskal", ignore_nan: bool = False): ...
|
|
40
|
+
def maximum_spanning_tree(G: Graph[_Node], weight: str = "weight", algorithm: str = "kruskal", ignore_nan: bool = False): ...
|
|
29
41
|
@_dispatchable
|
|
30
|
-
def random_spanning_tree(
|
|
42
|
+
def random_spanning_tree(
|
|
43
|
+
G: Graph[_Node], weight: str | None = None, *, multiplicative=True, seed: int | RandomState | None = None
|
|
44
|
+
): ...
|
|
31
45
|
|
|
32
46
|
class SpanningTreeIterator:
|
|
33
47
|
@dataclass
|
|
@@ -40,7 +54,9 @@ class SpanningTreeIterator:
|
|
|
40
54
|
minimum: Incomplete
|
|
41
55
|
ignore_nan: Incomplete
|
|
42
56
|
partition_key: str
|
|
57
|
+
|
|
43
58
|
def __init__(self, G, weight: str = "weight", minimum: bool = True, ignore_nan: bool = False) -> None: ...
|
|
44
59
|
partition_queue: Incomplete
|
|
60
|
+
|
|
45
61
|
def __iter__(self) -> Iterator[Incomplete]: ...
|
|
46
62
|
def __next__(self): ...
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
3
4
|
from networkx.utils.backends import _dispatchable
|
|
4
5
|
|
|
5
6
|
@_dispatchable
|
|
6
|
-
def join_trees(rooted_trees, label_attribute:
|
|
7
|
+
def join_trees(rooted_trees: Iterable[Incomplete], *, label_attribute: str | None = None, first_label: int | None = 0): ...
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
from networkx.classes.digraph import DiGraph
|
|
2
|
+
from networkx.classes.graph import Graph, _Node
|
|
1
3
|
from networkx.utils.backends import _dispatchable
|
|
2
4
|
|
|
3
5
|
@_dispatchable
|
|
4
|
-
def is_arborescence(G): ...
|
|
6
|
+
def is_arborescence(G: Graph[_Node]): ...
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def is_branching(G): ...
|
|
8
|
+
def is_branching(G: DiGraph[_Node]): ...
|
|
7
9
|
@_dispatchable
|
|
8
|
-
def is_forest(G): ...
|
|
10
|
+
def is_forest(G: Graph[_Node]): ...
|
|
9
11
|
@_dispatchable
|
|
10
|
-
def is_tree(G): ...
|
|
12
|
+
def is_tree(G: Graph[_Node]): ...
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Generator
|
|
2
|
+
from collections.abc import Generator, Iterable
|
|
3
3
|
|
|
4
|
+
from networkx.classes.digraph import DiGraph
|
|
5
|
+
from networkx.classes.graph import Graph, _Node
|
|
4
6
|
from networkx.utils.backends import _dispatchable
|
|
7
|
+
from numpy.random import RandomState
|
|
5
8
|
|
|
6
9
|
@_dispatchable
|
|
7
|
-
def triadic_census(G, nodelist: Incomplete | None = None): ...
|
|
10
|
+
def triadic_census(G: DiGraph[_Node], nodelist: Iterable[Incomplete] | None = None): ...
|
|
8
11
|
@_dispatchable
|
|
9
|
-
def is_triad(G): ...
|
|
12
|
+
def is_triad(G: Graph[_Node]): ...
|
|
10
13
|
@_dispatchable
|
|
11
|
-
def all_triplets(G): ...
|
|
14
|
+
def all_triplets(G: DiGraph[_Node]): ...
|
|
12
15
|
@_dispatchable
|
|
13
|
-
def all_triads(G) -> Generator[Incomplete, None, None]: ...
|
|
16
|
+
def all_triads(G: DiGraph[_Node]) -> Generator[Incomplete, None, None]: ...
|
|
14
17
|
@_dispatchable
|
|
15
|
-
def triads_by_type(G): ...
|
|
18
|
+
def triads_by_type(G: DiGraph[_Node]): ...
|
|
16
19
|
@_dispatchable
|
|
17
|
-
def triad_type(G): ...
|
|
20
|
+
def triad_type(G: DiGraph[_Node]): ...
|
|
18
21
|
@_dispatchable
|
|
19
|
-
def random_triad(G, seed:
|
|
22
|
+
def random_triad(G: DiGraph[_Node], seed: int | RandomState | None = None): ...
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
|
|
3
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
4
|
from networkx.utils.backends import _dispatchable
|
|
4
5
|
|
|
5
6
|
@_dispatchable
|
|
6
7
|
def closeness_vitality(
|
|
7
|
-
G, node: Incomplete | None = None, weight:
|
|
8
|
+
G: Graph[_Node], node: Incomplete | None = None, weight: str | None = None, wiener_index: float | None = None
|
|
8
9
|
): ...
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
from _typeshed import Incomplete, SupportsGetItem
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from networkx.classes.graph import Graph, _Node
|
|
1
6
|
from networkx.utils.backends import _dispatchable
|
|
2
7
|
|
|
3
8
|
@_dispatchable
|
|
4
|
-
def voronoi_cells(
|
|
9
|
+
def voronoi_cells(
|
|
10
|
+
G: Graph[_Node],
|
|
11
|
+
center_nodes: set[Incomplete],
|
|
12
|
+
weight: str | Callable[[Any, Any, SupportsGetItem[str, Any]], float | None] | None = "weight",
|
|
13
|
+
): ...
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
1
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
2
|
from networkx.utils.backends import _dispatchable
|
|
4
3
|
|
|
5
4
|
@_dispatchable
|
|
6
|
-
def wiener_index(G, weight:
|
|
5
|
+
def wiener_index(G: Graph[_Node], weight: str | None = None): ...
|
|
@@ -7,11 +7,13 @@ _U = TypeVar("_U")
|
|
|
7
7
|
_V = TypeVar("_V")
|
|
8
8
|
|
|
9
9
|
class AtlasView(Mapping[_T, dict[_U, _V]]):
|
|
10
|
+
def __getstate__(self) -> dict[str, Mapping[_T, dict[_U, _V]]]: ...
|
|
11
|
+
def __setstate__(self, state: dict[str, Mapping[_T, dict[_U, _V]]]) -> None: ...
|
|
10
12
|
def __init__(self, d: Mapping[_T, dict[_U, _V]]) -> None: ...
|
|
11
13
|
def __len__(self) -> int: ...
|
|
12
14
|
def __iter__(self) -> Iterator[_T]: ...
|
|
13
15
|
def __getitem__(self, key: _T) -> dict[_U, _V]: ...
|
|
14
|
-
def copy(self) ->
|
|
16
|
+
def copy(self) -> dict[_T, dict[_U, _V]]: ...
|
|
15
17
|
|
|
16
18
|
class AdjacencyView(AtlasView[_T, _U, _V]): ...
|
|
17
19
|
class MultiAdjacencyView(AdjacencyView[_T, _U, _V]): ...
|
|
@@ -45,11 +45,11 @@ class Graph(Collection[_Node]):
|
|
|
45
45
|
def name(self) -> str: ...
|
|
46
46
|
@name.setter
|
|
47
47
|
def name(self, s: str) -> None: ...
|
|
48
|
-
def __getitem__(self, n: _Node) -> AtlasView[_Node,
|
|
48
|
+
def __getitem__(self, n: _Node) -> AtlasView[_Node, str, Any]: ...
|
|
49
49
|
def __iter__(self) -> Iterator[_Node]: ...
|
|
50
50
|
def __contains__(self, n: object) -> bool: ...
|
|
51
51
|
def __len__(self) -> int: ...
|
|
52
|
-
def add_node(self, node_for_adding: _Node, **attr) -> None: ...
|
|
52
|
+
def add_node(self, node_for_adding: _Node, **attr: Any) -> None: ... # attr: Set or change node attributes using key=value
|
|
53
53
|
def add_nodes_from(self, nodes_for_adding: Iterable[_NodePlus[_Node]], **attr) -> None: ...
|
|
54
54
|
def remove_node(self, n: _Node) -> None: ...
|
|
55
55
|
def remove_nodes_from(self, nodes: Iterable[_Node]) -> None: ...
|
|
@@ -58,7 +58,8 @@ class Graph(Collection[_Node]):
|
|
|
58
58
|
def number_of_nodes(self) -> int: ...
|
|
59
59
|
def order(self) -> int: ...
|
|
60
60
|
def has_node(self, n: _Node) -> bool: ...
|
|
61
|
-
|
|
61
|
+
# attr: Edge data (or labels or objects) can be assigned using keyword arguments
|
|
62
|
+
def add_edge(self, u_of_edge: _Node, v_of_edge: _Node, **attr: Any) -> None: ...
|
|
62
63
|
def add_edges_from(self, ebunch_to_add: Iterable[_EdgePlus[_Node]], **attr) -> None: ...
|
|
63
64
|
def add_weighted_edges_from(
|
|
64
65
|
self, ebunch_to_add: Iterable[tuple[_Node, _Node, Incomplete]], weight: str = "weight", **attr
|
|
@@ -13,6 +13,8 @@ class MultiDiGraph(MultiGraph[_Node], DiGraph[_Node]):
|
|
|
13
13
|
@cached_property
|
|
14
14
|
def pred(self) -> MultiAdjacencyView[_Node, _Node, dict[str, Incomplete]]: ...
|
|
15
15
|
@cached_property
|
|
16
|
+
def edges(self) -> OutMultiEdgeView[_Node]: ...
|
|
17
|
+
@cached_property
|
|
16
18
|
def out_edges(self) -> OutMultiEdgeView[_Node]: ...
|
|
17
19
|
@cached_property
|
|
18
20
|
def in_edges(self) -> OutMultiEdgeView[_Node]: ...
|
|
@@ -5,6 +5,7 @@ from typing_extensions import TypeAlias
|
|
|
5
5
|
from networkx.classes.coreviews import MultiAdjacencyView
|
|
6
6
|
from networkx.classes.graph import Graph, _Node
|
|
7
7
|
from networkx.classes.multidigraph import MultiDiGraph
|
|
8
|
+
from networkx.classes.reportviews import OutMultiEdgeView
|
|
8
9
|
|
|
9
10
|
_MultiEdge: TypeAlias = tuple[_Node, _Node, int] # noqa: Y047
|
|
10
11
|
|
|
@@ -23,3 +24,5 @@ class MultiGraph(Graph[_Node]):
|
|
|
23
24
|
def to_directed(self, as_view: bool = False) -> MultiDiGraph[_Node]: ...
|
|
24
25
|
def to_undirected(self, as_view: bool = False) -> MultiGraph[_Node]: ...
|
|
25
26
|
def number_of_edges(self, u: _Node | None = None, v: _Node | None = None) -> int: ...
|
|
27
|
+
@cached_property
|
|
28
|
+
def edges(self) -> OutMultiEdgeView[_Node]: ...
|
|
@@ -110,36 +110,66 @@ class EdgeView(OutEdgeView[_Node]): ...
|
|
|
110
110
|
class InEdgeView(OutEdgeView[_Node]): ...
|
|
111
111
|
|
|
112
112
|
class OutMultiEdgeView(OutEdgeView[_Node]):
|
|
113
|
+
def __iter__(self) -> Iterator[tuple[_Node, _Node, Incomplete]]: ... # type: ignore[override]
|
|
114
|
+
def __getitem__(self, e: tuple[_Node, _Node, Incomplete]) -> dict[str, Any]: ... # type: ignore[override]
|
|
113
115
|
@overload # type: ignore[override] # Has an additional `keys` keyword argument
|
|
114
|
-
def __call__(
|
|
116
|
+
def __call__( # type: ignore[overload-overlap]
|
|
115
117
|
self, nbunch: None = None, data: Literal[False] = False, *, default: Unused = None, keys: Literal[True]
|
|
116
118
|
) -> Self: ...
|
|
117
119
|
@overload
|
|
118
120
|
def __call__(
|
|
119
|
-
self, nbunch: _NBunch[_Node], data: Literal[
|
|
120
|
-
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node
|
|
121
|
+
self, nbunch: _NBunch[_Node] = None, data: Literal[False] = False, *, default: None = None, keys: Literal[False] = False
|
|
122
|
+
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node]]: ...
|
|
123
|
+
@overload
|
|
124
|
+
def __call__(
|
|
125
|
+
self, nbunch: _Node | Iterable[_Node], data: Literal[False] = False, *, default: None = None, keys: Literal[True]
|
|
126
|
+
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node, Incomplete]]: ...
|
|
127
|
+
@overload
|
|
128
|
+
def __call__(
|
|
129
|
+
self, nbunch: _NBunch[_Node] = None, *, data: Literal[True], default: None = None, keys: Literal[True]
|
|
130
|
+
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node, Incomplete, dict[str, Incomplete]]]: ...
|
|
131
|
+
@overload
|
|
132
|
+
def __call__(
|
|
133
|
+
self, nbunch: _NBunch[_Node], data: Literal[True], *, default: None = None, keys: Literal[True]
|
|
134
|
+
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node, Incomplete, dict[str, Incomplete]]]: ...
|
|
121
135
|
@overload
|
|
122
136
|
def __call__(
|
|
123
|
-
self, nbunch: _NBunch[_Node] = None, *, data: Literal[True], default: None = None, keys:
|
|
137
|
+
self, nbunch: _NBunch[_Node] = None, *, data: Literal[True], default: None = None, keys: Literal[False] = False
|
|
124
138
|
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node, dict[str, Incomplete]]]: ...
|
|
125
139
|
@overload
|
|
126
140
|
def __call__(
|
|
127
|
-
self, nbunch: _NBunch[_Node], data: str, *, default: _U | None = None, keys:
|
|
141
|
+
self, nbunch: _NBunch[_Node], data: str, *, default: _U | None = None, keys: Literal[False] = False
|
|
128
142
|
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node, _U]]: ...
|
|
129
143
|
@overload
|
|
130
144
|
def __call__(
|
|
131
|
-
self, nbunch: _NBunch[_Node] = None, *, data: str, default: _U | None = None, keys:
|
|
145
|
+
self, nbunch: _NBunch[_Node] = None, *, data: str, default: _U | None = None, keys: Literal[True]
|
|
146
|
+
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node, Incomplete, _U]]: ...
|
|
147
|
+
@overload
|
|
148
|
+
def __call__(
|
|
149
|
+
self, nbunch: _NBunch[_Node] = None, *, data: str, default: _U | None = None, keys: Literal[False] = False
|
|
132
150
|
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node, _U]]: ...
|
|
151
|
+
@overload # type: ignore[override]
|
|
152
|
+
def data(self, data: Literal[False], default: Unused = None, nbunch: None = None, *, keys: Literal[True]) -> Self: ...
|
|
133
153
|
@overload
|
|
134
|
-
def data(
|
|
154
|
+
def data(
|
|
155
|
+
self, data: Literal[False], default: None = None, nbunch: _NBunch[_Node] = None, keys: Literal[False] = False
|
|
156
|
+
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node]]: ...
|
|
135
157
|
@overload
|
|
136
158
|
def data(
|
|
137
|
-
self, data: Literal[True] = True, default: None = None, nbunch: _NBunch[_Node] = None, keys:
|
|
159
|
+
self, data: Literal[True] = True, default: None = None, nbunch: _NBunch[_Node] = None, keys: Literal[False] = False
|
|
138
160
|
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node, dict[str, Incomplete]]]: ...
|
|
139
161
|
@overload
|
|
140
162
|
def data(
|
|
141
|
-
self, data:
|
|
163
|
+
self, data: Literal[True] = True, default: None = None, nbunch: _NBunch[_Node] = None, *, keys: Literal[True]
|
|
164
|
+
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node, Incomplete, dict[str, Incomplete]]]: ...
|
|
165
|
+
@overload
|
|
166
|
+
def data(
|
|
167
|
+
self, data: str, default: _U | None = None, nbunch: _NBunch[_Node] = None, keys: Literal[False] = False
|
|
142
168
|
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node, _U]]: ...
|
|
169
|
+
@overload
|
|
170
|
+
def data(
|
|
171
|
+
self, data: str, default: _U | None = None, nbunch: _NBunch[_Node] = None, *, keys: Literal[True]
|
|
172
|
+
) -> OutMultiEdgeDataView[_Node, tuple[_Node, _Node, Incomplete, _U]]: ...
|
|
143
173
|
|
|
144
174
|
class MultiEdgeView(OutMultiEdgeView[_Node]): ...
|
|
145
175
|
class InMultiEdgeView(OutMultiEdgeView[_Node]): ...
|
|
@@ -8,6 +8,7 @@ from networkx.generators.duplication import *
|
|
|
8
8
|
from networkx.generators.ego import *
|
|
9
9
|
from networkx.generators.expanders import *
|
|
10
10
|
from networkx.generators.geometric import *
|
|
11
|
+
from networkx.generators.harary_graph import *
|
|
11
12
|
from networkx.generators.internet_as_graphs import *
|
|
12
13
|
from networkx.generators.intersection import *
|
|
13
14
|
from networkx.generators.interval_graph import *
|
|
@@ -23,5 +24,6 @@ from networkx.generators.social import *
|
|
|
23
24
|
from networkx.generators.spectral_graph_forge import *
|
|
24
25
|
from networkx.generators.stochastic import *
|
|
25
26
|
from networkx.generators.sudoku import *
|
|
27
|
+
from networkx.generators.time_series import *
|
|
26
28
|
from networkx.generators.trees import *
|
|
27
29
|
from networkx.generators.triads import *
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import sys
|
|
1
2
|
from typing import Any
|
|
2
3
|
|
|
3
4
|
from passlib.context import CryptContext
|
|
@@ -8,4 +9,5 @@ freebsd_context: Any
|
|
|
8
9
|
openbsd_context: Any
|
|
9
10
|
netbsd_context: Any
|
|
10
11
|
# Only exists if crypt is present
|
|
11
|
-
|
|
12
|
+
if sys.version_info < (3, 13):
|
|
13
|
+
host_context: CryptContext
|
|
@@ -190,11 +190,11 @@ class Table(_HashableSource, BaseTable): # type: ignore[misc]
|
|
|
190
190
|
schema: str | None = None,
|
|
191
191
|
alias: Incomplete | None = ...,
|
|
192
192
|
_model: Incomplete | None = ...,
|
|
193
|
-
_database: Incomplete | None =
|
|
193
|
+
_database: Incomplete | None = None,
|
|
194
194
|
) -> None: ...
|
|
195
195
|
def clone(self): ...
|
|
196
|
-
def bind(self, database: Incomplete | None =
|
|
197
|
-
def bind_ctx(self, database: Incomplete | None =
|
|
196
|
+
def bind(self, database: Incomplete | None = None): ...
|
|
197
|
+
def bind_ctx(self, database: Incomplete | None = None): ...
|
|
198
198
|
def select(self, *columns): ...
|
|
199
199
|
def insert(self, insert: Incomplete | None = ..., columns: Incomplete | None = ..., **kwargs): ...
|
|
200
200
|
def replace(self, insert: Incomplete | None = ..., columns: Incomplete | None = ..., **kwargs): ...
|
|
@@ -517,8 +517,8 @@ class OnConflict(Node):
|
|
|
517
517
|
|
|
518
518
|
class BaseQuery(Node):
|
|
519
519
|
default_row_type: Incomplete
|
|
520
|
-
def __init__(self, _database: Incomplete | None =
|
|
521
|
-
def bind(self, database: Incomplete | None =
|
|
520
|
+
def __init__(self, _database: Incomplete | None = None, **kwargs) -> None: ...
|
|
521
|
+
def bind(self, database: Incomplete | None = None): ...
|
|
522
522
|
def clone(self): ...
|
|
523
523
|
def dicts(self, as_dict: bool = ...) -> Self: ...
|
|
524
524
|
def tuples(self, as_tuple: bool = ...) -> Self: ...
|
|
@@ -526,8 +526,8 @@ class BaseQuery(Node):
|
|
|
526
526
|
def objects(self, constructor: Incomplete | None = ...) -> Self: ...
|
|
527
527
|
def __sql__(self, ctx) -> None: ...
|
|
528
528
|
def sql(self): ...
|
|
529
|
-
def execute(self, database): ...
|
|
530
|
-
def iterator(self, database: Incomplete | None =
|
|
529
|
+
def execute(self, database: Incomplete | None = None): ...
|
|
530
|
+
def iterator(self, database: Incomplete | None = None): ...
|
|
531
531
|
def __iter__(self): ...
|
|
532
532
|
def __getitem__(self, value): ...
|
|
533
533
|
def __len__(self) -> int: ...
|
|
@@ -571,20 +571,20 @@ class SelectQuery(Query):
|
|
|
571
571
|
def select_from(self, *columns): ...
|
|
572
572
|
|
|
573
573
|
class SelectBase(_HashableSource, Source, SelectQuery): # type: ignore[misc]
|
|
574
|
-
def peek(self, database, n: int = ...): ...
|
|
575
|
-
def first(self, database, n: int = ...): ...
|
|
576
|
-
def scalar(self, database, as_tuple: bool = ..., as_dict: bool = ...): ...
|
|
577
|
-
def scalars(self, database) -> Generator[Incomplete, None, None]: ...
|
|
578
|
-
def count(self, database, clear_limit: bool = ...): ...
|
|
579
|
-
def exists(self, database): ...
|
|
580
|
-
def get(self, database): ...
|
|
574
|
+
def peek(self, database: Incomplete | None = None, n: int = ...): ...
|
|
575
|
+
def first(self, database: Incomplete | None = None, n: int = ...): ...
|
|
576
|
+
def scalar(self, database: Incomplete | None = None, as_tuple: bool = ..., as_dict: bool = ...): ...
|
|
577
|
+
def scalars(self, database: Incomplete | None = None) -> Generator[Incomplete, None, None]: ...
|
|
578
|
+
def count(self, database: Incomplete | None = None, clear_limit: bool = ...): ...
|
|
579
|
+
def exists(self, database: Incomplete | None = None): ...
|
|
580
|
+
def get(self, database: Incomplete | None = None): ...
|
|
581
581
|
|
|
582
582
|
class CompoundSelectQuery(SelectBase):
|
|
583
583
|
lhs: Incomplete
|
|
584
584
|
op: Incomplete
|
|
585
585
|
rhs: Incomplete
|
|
586
586
|
def __init__(self, lhs, op, rhs) -> None: ...
|
|
587
|
-
def exists(self, database): ...
|
|
587
|
+
def exists(self, database: Incomplete | None = None): ...
|
|
588
588
|
def __sql__(self, ctx): ...
|
|
589
589
|
|
|
590
590
|
class Select(SelectBase):
|
|
@@ -1495,7 +1495,7 @@ class _SortedFieldList:
|
|
|
1495
1495
|
class SchemaManager:
|
|
1496
1496
|
model: Incomplete
|
|
1497
1497
|
context_options: Incomplete
|
|
1498
|
-
def __init__(self, model, database: Incomplete | None =
|
|
1498
|
+
def __init__(self, model, database: Incomplete | None = None, **context_options) -> None: ...
|
|
1499
1499
|
@property
|
|
1500
1500
|
def database(self): ...
|
|
1501
1501
|
@database.setter
|
|
@@ -1546,7 +1546,7 @@ class Metadata:
|
|
|
1546
1546
|
def __init__(
|
|
1547
1547
|
self,
|
|
1548
1548
|
model,
|
|
1549
|
-
database: Incomplete | None =
|
|
1549
|
+
database: Incomplete | None = None,
|
|
1550
1550
|
table_name: Incomplete | None = ...,
|
|
1551
1551
|
indexes: Incomplete | None = ...,
|
|
1552
1552
|
primary_key: Incomplete | None = ...,
|
|
@@ -1744,8 +1744,8 @@ class BaseModelSelect(_ModelQueryHelper):
|
|
|
1744
1744
|
__sub__: Incomplete
|
|
1745
1745
|
def __iter__(self): ...
|
|
1746
1746
|
def prefetch(self, *subqueries): ...
|
|
1747
|
-
def get(self, database: Incomplete | None =
|
|
1748
|
-
def get_or_none(self, database: Incomplete | None =
|
|
1747
|
+
def get(self, database: Incomplete | None = None): ...
|
|
1748
|
+
def get_or_none(self, database: Incomplete | None = None): ...
|
|
1749
1749
|
def group_by(self, *columns) -> Self: ...
|
|
1750
1750
|
|
|
1751
1751
|
class ModelCompoundSelectQuery(BaseModelSelect, CompoundSelectQuery): # type: ignore[misc]
|
|
@@ -156,6 +156,12 @@ class FieldDescriptor(DescriptorBase):
|
|
|
156
156
|
cpp_type: Any
|
|
157
157
|
@property
|
|
158
158
|
def label(self): ...
|
|
159
|
+
@property
|
|
160
|
+
def camelcase_name(self) -> str: ...
|
|
161
|
+
@property
|
|
162
|
+
def has_presence(self) -> bool: ...
|
|
163
|
+
@property
|
|
164
|
+
def is_packed(self) -> bool: ...
|
|
159
165
|
has_default_value: Any
|
|
160
166
|
default_value: Any
|
|
161
167
|
containing_type: Any
|