basedpyright 1.28.3 → 1.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/_hashlib.pyi +15 -2
- package/dist/typeshed-fallback/stdlib/_socket.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi +7 -4
- package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +2 -178
- package/dist/typeshed-fallback/stdlib/asyncio/base_events.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/builtins.pyi +51 -33
- package/dist/typeshed-fallback/stdlib/configparser.pyi +61 -42
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +15 -5
- package/dist/typeshed-fallback/stdlib/functools.pyi +18 -13
- package/dist/typeshed-fallback/stdlib/getopt.pyi +15 -3
- package/dist/typeshed-fallback/stdlib/hashlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/heapq.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/hmac.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/http/server.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/importlib/readers.pyi +11 -7
- package/dist/typeshed-fallback/stdlib/inspect.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/logging/config.pyi +6 -1
- package/dist/typeshed-fallback/stdlib/math.pyi +33 -3
- package/dist/typeshed-fallback/stdlib/multiprocessing/connection.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/pathlib.pyi +13 -9
- package/dist/typeshed-fallback/stdlib/pkgutil.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/shutil.pyi +9 -5
- package/dist/typeshed-fallback/stdlib/socketserver.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/statistics.pyi +14 -15
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +181 -162
- package/dist/typeshed-fallback/stdlib/types.pyi +27 -4
- package/dist/typeshed-fallback/stdlib/typing.pyi +10 -7
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +95 -48
- package/dist/typeshed-fallback/stdlib/unittest/case.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/xml/dom/NodeFilter.pyi +7 -4
- package/dist/typeshed-fallback/stdlib/xml/dom/__init__.pyi +84 -53
- package/dist/typeshed-fallback/stdlib/xml/dom/expatbuilder.pyi +66 -45
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +524 -193
- package/dist/typeshed-fallback/stdlib/xml/dom/pulldom.pyi +70 -55
- package/dist/typeshed-fallback/stdlib/xml/dom/xmlbuilder.pyi +20 -49
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementInclude.pyi +13 -10
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementPath.pyi +19 -12
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +83 -41
- package/dist/typeshed-fallback/stdlib/xml/sax/_exceptions.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/xml/sax/expatreader.pyi +53 -24
- package/dist/typeshed-fallback/stdlib/xml/sax/handler.pyi +48 -17
- package/dist/typeshed-fallback/stdlib/xml/sax/saxutils.pyi +24 -16
- package/dist/typeshed-fallback/stdlib/xml/sax/xmlreader.pyi +59 -56
- package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +0 -8
- package/dist/typeshed-fallback/stdlib/zipfile/_path/__init__.pyi +32 -52
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/classic.pyi +6 -1
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/sphinx.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Pygments/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Pygments/pygments/plugin.pyi +11 -3
- package/dist/typeshed-fallback/stubs/RPi.GPIO/RPi/GPIO/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/WTForms/wtforms/validators.pyi +13 -5
- package/dist/typeshed-fallback/stubs/WebOb/webob/__init__.pyi +15 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/_types.pyi +21 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/acceptparse.pyi +496 -285
- package/dist/typeshed-fallback/stubs/WebOb/webob/byterange.pyi +2 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/cachecontrol.pyi +75 -75
- package/dist/typeshed-fallback/stubs/WebOb/webob/client.pyi +2 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/compat.pyi +24 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/cookies.pyi +39 -34
- package/dist/typeshed-fallback/stubs/WebOb/webob/datetime_utils.pyi +16 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/dec.pyi +40 -40
- package/dist/typeshed-fallback/stubs/WebOb/webob/descriptors.pyi +23 -34
- package/dist/typeshed-fallback/stubs/WebOb/webob/etag.pyi +11 -18
- package/dist/typeshed-fallback/stubs/WebOb/webob/exc.pyi +70 -7
- package/dist/typeshed-fallback/stubs/WebOb/webob/headers.pyi +20 -2
- package/dist/typeshed-fallback/stubs/WebOb/webob/multidict.pyi +97 -31
- package/dist/typeshed-fallback/stubs/WebOb/webob/request.pyi +70 -79
- package/dist/typeshed-fallback/stubs/WebOb/webob/response.pyi +62 -62
- package/dist/typeshed-fallback/stubs/WebOb/webob/static.pyi +12 -9
- package/dist/typeshed-fallback/stubs/WebOb/webob/util.pyi +2 -5
- package/dist/typeshed-fallback/stubs/atheris/METADATA.toml +4 -0
- package/dist/typeshed-fallback/stubs/boltons/boltons/dictutils.pyi +1 -3
- package/dist/typeshed-fallback/stubs/boltons/boltons/tbutils.pyi +13 -13
- package/dist/typeshed-fallback/stubs/braintree/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/braintree_gateway.pyi +2 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/credit_card.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/error_codes.pyi +40 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_payment_resource.pyi +10 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_payment_resource_gateway.pyi +10 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/credit_card_numbers.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/nonces.pyi +1 -0
- package/dist/typeshed-fallback/stubs/cffi/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/cffi/_cffi_backend.pyi +8 -8
- package/dist/typeshed-fallback/stubs/cffi/cffi/recompiler.pyi +1 -0
- package/dist/typeshed-fallback/stubs/corus/METADATA.toml +4 -0
- package/dist/typeshed-fallback/stubs/dirhash/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/dirhash/dirhash/__init__.pyi +93 -0
- package/dist/typeshed-fallback/stubs/dirhash/dirhash/cli.pyi +5 -0
- package/dist/typeshed-fallback/stubs/fanstatic/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fanstatic/fanstatic/registry.pyi +8 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fonts.pyi +2 -8
- package/dist/typeshed-fallback/stubs/geopandas/geopandas/geodataframe.pyi +1 -1
- package/dist/typeshed-fallback/stubs/geopandas/geopandas/io/sql.pyi +0 -3
- package/dist/typeshed-fallback/stubs/gevent/gevent/hub.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libev/corecext.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libev/corecffi.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libuv/loop.pyi +1 -1
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/METADATA.toml +0 -1
- package/dist/typeshed-fallback/stubs/greenlet/greenlet/_greenlet.pyi +5 -1
- package/dist/typeshed-fallback/stubs/hdbcli/hdbcli/dbapi.pyi +1 -1
- package/dist/typeshed-fallback/stubs/hnswlib/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/hnswlib/hnswlib.pyi +8 -6
- package/dist/typeshed-fallback/stubs/humanfriendly/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/ibm-db/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/__init__.pyi +6 -6
- package/dist/typeshed-fallback/stubs/mock/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/mock/mock/backports.pyi +6 -1
- package/dist/typeshed-fallback/stubs/mock/mock/mock.pyi +1 -1
- package/dist/typeshed-fallback/stubs/mysqlclient/MySQLdb/_mysql.pyi +32 -32
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/clique.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/clustering_coefficient.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/connectivity.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/distance_measures.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/dominating_set.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/kcomponents.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/matching.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/maxcut.pyi +8 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/ramsey.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/steinertree.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/traveling_salesman.pyi +33 -23
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/treewidth.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/vertex_cover.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/connectivity.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/correlation.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/mixing.pyi +16 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/neighbor_degree.pyi +7 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/pairs.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/asteroidal.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/basic.pyi +8 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/centrality.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/cluster.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/covering.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/edgelist.pyi +13 -12
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/extendability.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/generators.pyi +22 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matching.pyi +11 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matrix.pyi +9 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/projection.pyi +9 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/redundancy.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/spectral.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/boundary.pyi +53 -58
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bridges.pyi +5 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness_subset.pyi +10 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/closeness.pyi +7 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness.pyi +9 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi +16 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_closeness.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/eigenvector.pyi +10 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/flow_matrix.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/group.pyi +16 -12
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/harmonic.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/katz.pyi +15 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/laplacian.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/load.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/percolation.pyi +6 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/reaching.pyi +9 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/second_order.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/subgraph_alg.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/trophic.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/voterank_alg.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/chordal.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/clique.pyi +9 -14
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cluster.pyi +10 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/equitable_coloring.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/greedy_coloring.pyi +2 -20
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/communicability_alg.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/asyn_fluid.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/centrality.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/community_utils.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/divisive.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kclique.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kernighan_lin.pyi +7 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/label_propagation.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/louvain.pyi +13 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/lukes.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/modularity_max.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/quality.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/biconnected.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/connected.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/semiconnected.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/strongly_connected.pyi +5 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/weakly_connected.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/connectivity.pyi +29 -23
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/cuts.pyi +21 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/disjoint_paths.pyi +17 -16
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_augmentation.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_kcomponents.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/kcomponents.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/kcutsets.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/stoerwagner.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/core.pyi +9 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/covering.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cuts.pyi +10 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cycles.pyi +9 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/d_separation.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dag.pyi +13 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_measures.pyi +8 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_regular.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dominance.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dominating.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/efficiency_measures.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/euler.pyi +8 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/boykovkolmogorov.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/capacityscaling.pyi +4 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/dinitz_alg.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/edmondskarp.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/gomory_hu.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/maxflow.pyi +34 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/mincost.pyi +7 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/networksimplex.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/preflowpush.pyi +5 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/shortestaugmentingpath.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/utils.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/graph_hashing.pyi +12 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/graphical.pyi +9 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/hierarchy.pyi +1 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/hybrid.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isolate.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/ismags.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/isomorph.pyi +11 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/isomorphvf2.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/tree_isomorphism.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/vf2pp.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/vf2userfunc.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_analysis/hits_alg.pyi +9 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_analysis/pagerank_alg.pyi +16 -14
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_prediction.pyi +9 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/lowest_common_ancestors.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/matching.pyi +7 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/minors/contraction.pyi +10 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/mis.pyi +6 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/moral.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/node_classification.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/non_randomness.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/all.pyi +7 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/binary.pyi +11 -11
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/product.pyi +14 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/unary.pyi +2 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/planarity.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/polynomials.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/reciprocity.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/regular.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/richclub.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/astar.pyi +22 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/dense.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/generic.pyi +33 -11
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/unweighted.pyi +9 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/weighted.pyi +116 -30
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/similarity.pyi +69 -55
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/simple_paths.pyi +11 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/smallworld.pyi +6 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/smetric.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/sparsifiers.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/structuralholes.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/summarization.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/swap.pyi +8 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/threshold.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/time_dependent.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tournament.pyi +8 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/beamsearch.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/breadth_first_search.pyi +16 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/depth_first_search.pyi +20 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgebfs.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgedfs.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/branchings.pyi +13 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/coding.pyi +8 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/mst.pyi +22 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/operations.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/recognition.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/triads.pyi +11 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/vitality.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/voronoi.pyi +10 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/walks.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/wiener.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/coreviews.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multigraph.pyi +3 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/reportviews.pyi +39 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/time_series.pyi +4 -0
- package/dist/typeshed-fallback/stubs/passlib/passlib/hosts.pyi +3 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +19 -19
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor.pyi +6 -0
- package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/_psycopg.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +18 -0
- package/dist/typeshed-fallback/stubs/pygit2/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/build_main.pyi +19 -7
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/splash.pyi +18 -16
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pynput/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pynput/pynput/_util.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/__init__.pyi +4 -2
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +3 -0
- package/dist/typeshed-fallback/stubs/pynput/pynput/mouse/__init__.pyi +6 -3
- package/dist/typeshed-fallback/stubs/pyserial/serial/tools/miniterm.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pytz/pytz/tzinfo.pyi +3 -3
- package/dist/typeshed-fallback/stubs/pywin32/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/pythoncom.pyi +19 -2
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32con.pyi +4895 -4764
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32timezone.pyi +81 -42
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/winerror.pyi +7258 -2574
- package/dist/typeshed-fallback/stubs/pywin32/win32/servicemanager.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32trace.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32ts.pyi +1 -0
- package/dist/typeshed-fallback/stubs/pywin32/win32com/client/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stubs/regex/regex/regex.pyi +5 -5
- package/dist/typeshed-fallback/stubs/requests/requests/__init__.pyi +12 -13
- package/dist/typeshed-fallback/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +3 -0
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +4 -3
- package/dist/typeshed-fallback/stubs/setuptools/distutils/ccompiler.pyi +11 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/base.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/errors.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/msvc.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/_msvccompiler.pyi +2 -21
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/archive_util.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +13 -178
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/bdist_rpm.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_clib.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_ext.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_py.pyi +3 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install.pyi +5 -5
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_data.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_lib.pyi +4 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_scripts.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/sdist.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compat/__init__.pyi +6 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi +196 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/errors.pyi +6 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/msvc.pyi +24 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +23 -20
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/errors.pyi +12 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/filelist.pyi +12 -11
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/spawn.pyi +6 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/util.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/bdist_wheel.pyi +0 -2
- package/dist/typeshed-fallback/stubs/simplejson/simplejson/encoder.pyi +1 -1
- package/dist/typeshed-fallback/stubs/six/six/moves/builtins.pyi +0 -1
- package/dist/typeshed-fallback/stubs/tqdm/METADATA.toml +4 -1
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/asyncio.pyi +4 -3
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/std.pyi +10 -3
- package/dist/typeshed-fallback/stubs/tree-sitter-languages/METADATA.toml +6 -0
- package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +15 -8
- package/dist/typeshed-fallback/stubs/watchpoints/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/__init__.pyi +10 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/ast_monkey.pyi +3 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/util.pyi +6 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch.pyi +68 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch_element.pyi +56 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch_print.pyi +24 -0
- package/dist/typeshed-fallback/stubs/zstd/METADATA.toml +1 -1
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/__init__.pyi +0 -543
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/__init__.pyi +0 -8
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/markers.pyi +0 -13
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/requirements.pyi +0 -14
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/specifiers.pyi +0 -66
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/version.pyi +0 -49
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
from networkx.classes.graph import Graph, _Node
|
|
1
2
|
from networkx.utils.backends import _dispatchable
|
|
2
3
|
|
|
3
4
|
@_dispatchable
|
|
4
|
-
def maximum_independent_set(G): ...
|
|
5
|
+
def maximum_independent_set(G: Graph[_Node]): ...
|
|
5
6
|
@_dispatchable
|
|
6
|
-
def max_clique(G): ...
|
|
7
|
+
def max_clique(G: Graph[_Node]): ...
|
|
7
8
|
@_dispatchable
|
|
8
|
-
def clique_removal(G): ...
|
|
9
|
+
def clique_removal(G: Graph[_Node]): ...
|
|
9
10
|
@_dispatchable
|
|
10
|
-
def large_clique_size(G): ...
|
|
11
|
+
def large_clique_size(G: Graph[_Node]): ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
1
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
2
|
from networkx.utils.backends import _dispatchable
|
|
3
|
+
from numpy.random import RandomState
|
|
4
4
|
|
|
5
5
|
@_dispatchable
|
|
6
|
-
def average_clustering(G, trials: int = 1000, seed:
|
|
6
|
+
def average_clustering(G: Graph[_Node], trials: int = 1000, seed: int | RandomState | None = None): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/connectivity.pyi
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def local_node_connectivity(G, source, target, cutoff:
|
|
8
|
+
def local_node_connectivity(G: Graph[_Node], source: _Node, target: _Node, cutoff: int | None = None): ...
|
|
7
9
|
@_dispatchable
|
|
8
|
-
def node_connectivity(G, s:
|
|
10
|
+
def node_connectivity(G: Graph[_Node], s: _Node | None = None, t: _Node | None = None): ...
|
|
9
11
|
@_dispatchable
|
|
10
|
-
def all_pairs_node_connectivity(G, nbunch: Incomplete | None = None, cutoff:
|
|
12
|
+
def all_pairs_node_connectivity(G: Graph[_Node], nbunch: Iterable[Incomplete] | None = None, cutoff: int | None = None): ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
1
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
2
|
from networkx.utils.backends import _dispatchable
|
|
3
|
+
from numpy.random import RandomState
|
|
4
4
|
|
|
5
5
|
@_dispatchable
|
|
6
|
-
def diameter(G, seed:
|
|
6
|
+
def diameter(G: Graph[_Node], seed: int | RandomState | None = None): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/dominating_set.pyi
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
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 min_weighted_dominating_set(G, weight:
|
|
5
|
+
def min_weighted_dominating_set(G: Graph[_Node], weight: str | None = None): ...
|
|
7
6
|
@_dispatchable
|
|
8
|
-
def min_edge_dominating_set(G): ...
|
|
7
|
+
def min_edge_dominating_set(G: Graph[_Node]): ...
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
|
|
3
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
4
|
from networkx.utils.backends import _dispatchable
|
|
5
|
+
from numpy.random import RandomState
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def randomized_partitioning(
|
|
8
|
+
def randomized_partitioning(
|
|
9
|
+
G: Graph[_Node], seed: int | RandomState | None = None, p: float = 0.5, weight: str | None = None
|
|
10
|
+
): ...
|
|
7
11
|
@_dispatchable
|
|
8
|
-
def one_exchange(
|
|
12
|
+
def one_exchange(
|
|
13
|
+
G: Graph[_Node], initial_cut: set[Incomplete] | None = None, seed: int | RandomState | None = None, weight: str | None = None
|
|
14
|
+
): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/steinertree.pyi
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def metric_closure(G, weight
|
|
8
|
+
def metric_closure(G: Graph[_Node], weight="weight"): ...
|
|
7
9
|
@_dispatchable
|
|
8
|
-
def steiner_tree(G, terminal_nodes, weight: str = "weight", method:
|
|
10
|
+
def steiner_tree(G: Graph[_Node], terminal_nodes: Iterable[Incomplete], weight: str = "weight", method: str | None = None): ...
|
|
@@ -1,41 +1,51 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Callable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.digraph import DiGraph
|
|
5
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
6
|
from networkx.utils.backends import _dispatchable
|
|
7
|
+
from numpy.random import RandomState
|
|
4
8
|
|
|
5
9
|
@_dispatchable
|
|
6
|
-
def christofides(G, weight: str = "weight", tree:
|
|
10
|
+
def christofides(G: Graph[_Node], weight: str | None = "weight", tree: Graph[_Node] | None = None): ...
|
|
7
11
|
@_dispatchable
|
|
8
12
|
def traveling_salesman_problem(
|
|
9
|
-
G
|
|
13
|
+
G: Graph[_Node],
|
|
14
|
+
weight: str = "weight",
|
|
15
|
+
nodes=None,
|
|
16
|
+
cycle: bool = True,
|
|
17
|
+
method: Callable[..., Incomplete] | None = None,
|
|
18
|
+
**kwargs,
|
|
10
19
|
): ...
|
|
11
20
|
@_dispatchable
|
|
12
|
-
def asadpour_atsp(
|
|
21
|
+
def asadpour_atsp(
|
|
22
|
+
G: DiGraph[_Node], weight: str | None = "weight", seed: int | RandomState | None = None, source: str | None = None
|
|
23
|
+
): ...
|
|
13
24
|
@_dispatchable
|
|
14
|
-
def greedy_tsp(G, weight: str = "weight", source
|
|
25
|
+
def greedy_tsp(G: Graph[_Node], weight: str | None = "weight", source=None): ...
|
|
15
26
|
@_dispatchable
|
|
16
27
|
def simulated_annealing_tsp(
|
|
17
|
-
G,
|
|
28
|
+
G: Graph[_Node],
|
|
18
29
|
init_cycle,
|
|
19
|
-
weight: str = "weight",
|
|
20
|
-
source
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
seed: Incomplete | None = None,
|
|
30
|
+
weight: str | None = "weight",
|
|
31
|
+
source=None,
|
|
32
|
+
temp: int | None = 100,
|
|
33
|
+
move="1-1",
|
|
34
|
+
max_iterations: int | None = 10,
|
|
35
|
+
N_inner: int | None = 100,
|
|
36
|
+
alpha=0.01,
|
|
37
|
+
seed: int | RandomState | None = None,
|
|
28
38
|
): ...
|
|
29
39
|
@_dispatchable
|
|
30
40
|
def threshold_accepting_tsp(
|
|
31
|
-
G,
|
|
41
|
+
G: Graph[_Node],
|
|
32
42
|
init_cycle,
|
|
33
|
-
weight: str = "weight",
|
|
34
|
-
source
|
|
35
|
-
threshold:
|
|
36
|
-
move
|
|
37
|
-
max_iterations: int = 10,
|
|
38
|
-
N_inner: int = 100,
|
|
39
|
-
alpha
|
|
40
|
-
seed:
|
|
43
|
+
weight: str | None = "weight",
|
|
44
|
+
source=None,
|
|
45
|
+
threshold: int | None = 1,
|
|
46
|
+
move="1-1",
|
|
47
|
+
max_iterations: int | None = 10,
|
|
48
|
+
N_inner: int | None = 100,
|
|
49
|
+
alpha=0.1,
|
|
50
|
+
seed: int | RandomState | None = None,
|
|
41
51
|
): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/treewidth.pyi
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
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
|
__all__ = ["treewidth_min_degree", "treewidth_min_fill_in"]
|
|
6
7
|
|
|
7
8
|
@_dispatchable
|
|
8
|
-
def treewidth_min_degree(G): ...
|
|
9
|
+
def treewidth_min_degree(G: Graph[_Node]): ...
|
|
9
10
|
@_dispatchable
|
|
10
|
-
def treewidth_min_fill_in(G): ...
|
|
11
|
+
def treewidth_min_fill_in(G: Graph[_Node]): ...
|
|
11
12
|
|
|
12
13
|
class MinDegreeHeuristic:
|
|
13
14
|
count: Incomplete
|
|
15
|
+
|
|
14
16
|
def __init__(self, graph) -> None: ...
|
|
15
17
|
def best_node(self, graph): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/vertex_cover.pyi
CHANGED
|
@@ -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 min_weighted_vertex_cover(G, weight:
|
|
5
|
+
def min_weighted_vertex_cover(G: Graph[_Node], weight: str | None = None): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/connectivity.pyi
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
8
|
def average_degree_connectivity(
|
|
7
|
-
G, source
|
|
9
|
+
G: Graph[_Node], source="in+out", target="in+out", nodes: Iterable[Incomplete] | None = None, weight: str | None = None
|
|
8
10
|
): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/correlation.pyi
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
8
|
def degree_assortativity_coefficient(
|
|
7
|
-
G, x: str = "out", y: str = "in", weight:
|
|
9
|
+
G: Graph[_Node], x: str = "out", y: str = "in", weight: str | None = None, nodes: Iterable[Incomplete] | None = None
|
|
8
10
|
): ...
|
|
9
11
|
@_dispatchable
|
|
10
12
|
def degree_pearson_correlation_coefficient(
|
|
11
|
-
G, x: str = "out", y: str = "in", weight:
|
|
13
|
+
G: Graph[_Node], x: str = "out", y: str = "in", weight: str | None = None, nodes: Iterable[Incomplete] | None = None
|
|
12
14
|
): ...
|
|
13
15
|
@_dispatchable
|
|
14
|
-
def attribute_assortativity_coefficient(G, attribute, nodes: Incomplete | None = None): ...
|
|
16
|
+
def attribute_assortativity_coefficient(G: Graph[_Node], attribute: str, nodes: Iterable[Incomplete] | None = None): ...
|
|
15
17
|
@_dispatchable
|
|
16
|
-
def numeric_assortativity_coefficient(G, attribute, nodes: Incomplete | None = None): ...
|
|
18
|
+
def numeric_assortativity_coefficient(G: Graph[_Node], attribute: str, nodes: Iterable[Incomplete] | None = None): ...
|
|
@@ -1,26 +1,34 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
1
|
+
from _typeshed import Incomplete, SupportsGetItem
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def attribute_mixing_dict(
|
|
8
|
+
def attribute_mixing_dict(
|
|
9
|
+
G: Graph[_Node], attribute: str, nodes: Iterable[Incomplete] | None = None, normalized: bool = False
|
|
10
|
+
): ...
|
|
7
11
|
@_dispatchable
|
|
8
12
|
def attribute_mixing_matrix(
|
|
9
|
-
G
|
|
13
|
+
G: Graph[_Node],
|
|
14
|
+
attribute: str,
|
|
15
|
+
nodes: Iterable[Incomplete] | None = None,
|
|
16
|
+
mapping: SupportsGetItem[Incomplete, Incomplete] | None = None,
|
|
17
|
+
normalized: bool = True,
|
|
10
18
|
): ...
|
|
11
19
|
@_dispatchable
|
|
12
20
|
def degree_mixing_dict(
|
|
13
|
-
G, x: str = "out", y: str = "in", weight:
|
|
21
|
+
G: Graph[_Node], x: str = "out", y: str = "in", weight: str | None = None, nodes=None, normalized: bool = False
|
|
14
22
|
): ...
|
|
15
23
|
@_dispatchable
|
|
16
24
|
def degree_mixing_matrix(
|
|
17
|
-
G,
|
|
25
|
+
G: Graph[_Node],
|
|
18
26
|
x: str = "out",
|
|
19
27
|
y: str = "in",
|
|
20
|
-
weight:
|
|
21
|
-
nodes: Incomplete | None = None,
|
|
28
|
+
weight: str | None = None,
|
|
29
|
+
nodes: Iterable[Incomplete] | None = None,
|
|
22
30
|
normalized: bool = True,
|
|
23
|
-
mapping: Incomplete | None = None,
|
|
31
|
+
mapping: SupportsGetItem[Incomplete, Incomplete] | None = None,
|
|
24
32
|
): ...
|
|
25
33
|
@_dispatchable
|
|
26
34
|
def mixing_dict(xy, normalized: bool = False): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/neighbor_degree.pyi
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
8
|
def average_neighbor_degree(
|
|
7
|
-
G
|
|
9
|
+
G: Graph[_Node],
|
|
10
|
+
source: str | None = "out",
|
|
11
|
+
target: str | None = "out",
|
|
12
|
+
nodes: Iterable[Incomplete] | None = None,
|
|
13
|
+
weight: str | None = None,
|
|
8
14
|
): ...
|
|
@@ -1,11 +1,14 @@
|
|
|
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.graph import Graph, _Node
|
|
4
5
|
from networkx.utils.backends import _dispatchable
|
|
5
6
|
|
|
6
7
|
@_dispatchable
|
|
7
|
-
def node_attribute_xy(
|
|
8
|
+
def node_attribute_xy(
|
|
9
|
+
G: Graph[_Node], attribute, nodes: Iterable[Incomplete] | None = None
|
|
10
|
+
) -> Generator[Incomplete, None, None]: ...
|
|
8
11
|
@_dispatchable
|
|
9
12
|
def node_degree_xy(
|
|
10
|
-
G, x: str = "out", y: str = "in", weight:
|
|
13
|
+
G: Graph[_Node], x: str = "out", y: str = "in", weight: str | None = None, nodes: Iterable[Incomplete] | None = None
|
|
11
14
|
) -> Generator[Incomplete, None, None]: ...
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
from networkx.classes.graph import Graph, _Node
|
|
1
2
|
from networkx.utils.backends import _dispatchable
|
|
2
3
|
|
|
3
4
|
@_dispatchable
|
|
4
|
-
def find_asteroidal_triple(G): ...
|
|
5
|
+
def find_asteroidal_triple(G: Graph[_Node]): ...
|
|
5
6
|
@_dispatchable
|
|
6
|
-
def is_at_free(G): ...
|
|
7
|
+
def is_at_free(G: Graph[_Node]): ...
|
|
@@ -3,6 +3,7 @@ from networkx.algorithms.bipartite.centrality import *
|
|
|
3
3
|
from networkx.algorithms.bipartite.cluster import *
|
|
4
4
|
from networkx.algorithms.bipartite.covering import *
|
|
5
5
|
from networkx.algorithms.bipartite.edgelist import *
|
|
6
|
+
from networkx.algorithms.bipartite.extendability import *
|
|
6
7
|
from networkx.algorithms.bipartite.generators import *
|
|
7
8
|
from networkx.algorithms.bipartite.matching import *
|
|
8
9
|
from networkx.algorithms.bipartite.matrix import *
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def color(G): ...
|
|
8
|
+
def color(G: Graph[_Node]): ...
|
|
7
9
|
@_dispatchable
|
|
8
|
-
def is_bipartite(G): ...
|
|
10
|
+
def is_bipartite(G: Graph[_Node]): ...
|
|
9
11
|
@_dispatchable
|
|
10
|
-
def is_bipartite_node_set(G, nodes): ...
|
|
12
|
+
def is_bipartite_node_set(G: Graph[_Node], nodes): ...
|
|
11
13
|
@_dispatchable
|
|
12
|
-
def sets(G, top_nodes: Incomplete | None = None): ...
|
|
14
|
+
def sets(G: Graph[_Node], top_nodes: Iterable[Incomplete] | None = None): ...
|
|
13
15
|
@_dispatchable
|
|
14
|
-
def density(B, nodes): ...
|
|
16
|
+
def density(B: Graph[_Node], nodes): ...
|
|
15
17
|
@_dispatchable
|
|
16
|
-
def degrees(B, nodes, weight:
|
|
18
|
+
def degrees(B: Graph[_Node], nodes, weight: str | None = None): ...
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
from networkx.classes.graph import Graph, _Node
|
|
1
2
|
from networkx.utils.backends import _dispatchable
|
|
2
3
|
|
|
3
4
|
@_dispatchable
|
|
4
|
-
def degree_centrality(G, nodes): ...
|
|
5
|
+
def degree_centrality(G: Graph[_Node], nodes): ...
|
|
5
6
|
@_dispatchable
|
|
6
|
-
def betweenness_centrality(G, nodes): ...
|
|
7
|
+
def betweenness_centrality(G: Graph[_Node], nodes): ...
|
|
7
8
|
@_dispatchable
|
|
8
|
-
def closeness_centrality(G, nodes, normalized: bool = True): ...
|
|
9
|
+
def closeness_centrality(G: Graph[_Node], nodes, normalized: bool | None = True): ...
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def latapy_clustering(G, nodes: Incomplete | None = None, mode: str = "dot"): ...
|
|
8
|
+
def latapy_clustering(G: Graph[_Node], nodes: Iterable[Incomplete] | None = None, mode: str = "dot"): ...
|
|
7
9
|
|
|
8
10
|
clustering = latapy_clustering
|
|
9
11
|
|
|
10
12
|
@_dispatchable
|
|
11
|
-
def average_clustering(G, nodes: Incomplete | None = None, mode: str = "dot"): ...
|
|
13
|
+
def average_clustering(G: Graph[_Node], nodes: Iterable[Incomplete] | None = None, mode: str = "dot"): ...
|
|
12
14
|
@_dispatchable
|
|
13
|
-
def robins_alexander_clustering(G): ...
|
|
15
|
+
def robins_alexander_clustering(G: Graph[_Node]): ...
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Callable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def min_edge_cover(G, matching_algorithm: Incomplete | None = None): ...
|
|
8
|
+
def min_edge_cover(G: Graph[_Node], matching_algorithm: Callable[..., Incomplete] | None = None): ...
|
|
@@ -1,6 +1,7 @@
|
|
|
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
|
|
@@ -10,20 +11,20 @@ def generate_edgelist(G, delimiter: str = " ", data: bool = True) -> Generator[I
|
|
|
10
11
|
@_dispatchable
|
|
11
12
|
def parse_edgelist(
|
|
12
13
|
lines,
|
|
13
|
-
comments: str = "#",
|
|
14
|
-
delimiter:
|
|
15
|
-
create_using:
|
|
16
|
-
nodetype
|
|
17
|
-
data
|
|
14
|
+
comments: str | None = "#",
|
|
15
|
+
delimiter: str | None = None,
|
|
16
|
+
create_using: Graph[_Node] | None = None,
|
|
17
|
+
nodetype=None,
|
|
18
|
+
data=True,
|
|
18
19
|
): ...
|
|
19
20
|
@_dispatchable
|
|
20
21
|
def read_edgelist(
|
|
21
22
|
path,
|
|
22
|
-
comments: str = "#",
|
|
23
|
-
delimiter:
|
|
24
|
-
create_using
|
|
25
|
-
nodetype
|
|
26
|
-
data
|
|
27
|
-
edgetype
|
|
28
|
-
encoding: str = "utf-8",
|
|
23
|
+
comments: str | None = "#",
|
|
24
|
+
delimiter: str | None = None,
|
|
25
|
+
create_using=None,
|
|
26
|
+
nodetype=None,
|
|
27
|
+
data=True,
|
|
28
|
+
edgetype=None,
|
|
29
|
+
encoding: str | None = "utf-8",
|
|
29
30
|
): ...
|
|
@@ -1,20 +1,34 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
6
|
+
from numpy.random import RandomState
|
|
4
7
|
|
|
5
8
|
@_dispatchable
|
|
6
|
-
def complete_bipartite_graph(n1, n2, create_using:
|
|
9
|
+
def complete_bipartite_graph(n1, n2, create_using: Graph[_Node] | None = None): ...
|
|
7
10
|
@_dispatchable
|
|
8
|
-
def configuration_model(
|
|
11
|
+
def configuration_model(
|
|
12
|
+
aseq: Iterable[Incomplete],
|
|
13
|
+
bseq: Iterable[Incomplete],
|
|
14
|
+
create_using: Graph[_Node] | None = None,
|
|
15
|
+
seed: int | RandomState | None = None,
|
|
16
|
+
): ...
|
|
9
17
|
@_dispatchable
|
|
10
|
-
def havel_hakimi_graph(aseq, bseq, create_using:
|
|
18
|
+
def havel_hakimi_graph(aseq: Iterable[Incomplete], bseq: Iterable[Incomplete], create_using: Graph[_Node] | None = None): ...
|
|
11
19
|
@_dispatchable
|
|
12
|
-
def reverse_havel_hakimi_graph(
|
|
20
|
+
def reverse_havel_hakimi_graph(
|
|
21
|
+
aseq: Iterable[Incomplete], bseq: Iterable[Incomplete], create_using: Graph[_Node] | None = None
|
|
22
|
+
): ...
|
|
13
23
|
@_dispatchable
|
|
14
|
-
def alternating_havel_hakimi_graph(
|
|
24
|
+
def alternating_havel_hakimi_graph(
|
|
25
|
+
aseq: Iterable[Incomplete], bseq: Iterable[Incomplete], create_using: Graph[_Node] | None = None
|
|
26
|
+
): ...
|
|
15
27
|
@_dispatchable
|
|
16
|
-
def preferential_attachment_graph(
|
|
28
|
+
def preferential_attachment_graph(
|
|
29
|
+
aseq: Iterable[Incomplete], p: float, create_using: Graph[_Node] | None = None, seed: int | RandomState | None = None
|
|
30
|
+
): ...
|
|
17
31
|
@_dispatchable
|
|
18
|
-
def random_graph(n, m, p, seed:
|
|
32
|
+
def random_graph(n: int, m: int, p: float, seed: int | RandomState | None = None, directed: bool | None = False): ...
|
|
19
33
|
@_dispatchable
|
|
20
|
-
def gnmk_random_graph(n, m, k, seed:
|
|
34
|
+
def gnmk_random_graph(n: int, m: int, k: int, seed: int | RandomState | None = None, directed: bool | None = False): ...
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
1
|
+
from _typeshed import Incomplete, SupportsGetItem
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def hopcroft_karp_matching(G, top_nodes:
|
|
8
|
+
def hopcroft_karp_matching(G: Graph[_Node], top_nodes: Iterable[_Node] | None = None): ...
|
|
7
9
|
@_dispatchable
|
|
8
|
-
def eppstein_matching(G, top_nodes: Incomplete | None = None): ...
|
|
10
|
+
def eppstein_matching(G: Graph[_Node], top_nodes: Iterable[Incomplete] | None = None): ...
|
|
9
11
|
@_dispatchable
|
|
10
|
-
def to_vertex_cover(
|
|
12
|
+
def to_vertex_cover(
|
|
13
|
+
G: Graph[_Node], matching: SupportsGetItem[Incomplete, Incomplete], top_nodes: Iterable[Incomplete] | None = None
|
|
14
|
+
): ...
|
|
11
15
|
|
|
12
16
|
maximum_matching = hopcroft_karp_matching
|
|
13
17
|
|
|
14
18
|
@_dispatchable
|
|
15
|
-
def minimum_weight_full_matching(
|
|
19
|
+
def minimum_weight_full_matching(
|
|
20
|
+
G: Graph[_Node], top_nodes: Iterable[Incomplete] | None = None, weight: str | None = "weight"
|
|
21
|
+
): ...
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
8
|
def biadjacency_matrix(
|
|
7
|
-
G,
|
|
8
|
-
row_order,
|
|
9
|
-
column_order: Incomplete | None = None,
|
|
10
|
-
dtype
|
|
11
|
-
weight: str = "weight",
|
|
12
|
-
format
|
|
9
|
+
G: Graph[_Node],
|
|
10
|
+
row_order: Iterable[_Node],
|
|
11
|
+
column_order: Iterable[Incomplete] | None = None,
|
|
12
|
+
dtype=None,
|
|
13
|
+
weight: str | None = "weight",
|
|
14
|
+
format="csr",
|
|
13
15
|
): ...
|
|
14
16
|
@_dispatchable
|
|
15
|
-
def from_biadjacency_matrix(A, create_using:
|
|
17
|
+
def from_biadjacency_matrix(A, create_using: Graph[_Node] | None = None, edge_attribute: str = "weight"): ...
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Callable, Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def projected_graph(B, nodes, multigraph: bool = False): ...
|
|
8
|
+
def projected_graph(B: Graph[_Node], nodes: Iterable[Incomplete], multigraph: bool = False): ...
|
|
7
9
|
@_dispatchable
|
|
8
|
-
def weighted_projected_graph(B, nodes, ratio: bool = False): ...
|
|
10
|
+
def weighted_projected_graph(B: Graph[_Node], nodes: Iterable[Incomplete], ratio: bool = False): ...
|
|
9
11
|
@_dispatchable
|
|
10
|
-
def collaboration_weighted_projected_graph(B, nodes): ...
|
|
12
|
+
def collaboration_weighted_projected_graph(B: Graph[_Node], nodes: Iterable[Incomplete]): ...
|
|
11
13
|
@_dispatchable
|
|
12
|
-
def overlap_weighted_projected_graph(B, nodes, jaccard: bool = True): ...
|
|
14
|
+
def overlap_weighted_projected_graph(B: Graph[_Node], nodes: Iterable[Incomplete], jaccard: bool = True): ...
|
|
13
15
|
@_dispatchable
|
|
14
|
-
def generic_weighted_projected_graph(
|
|
16
|
+
def generic_weighted_projected_graph(
|
|
17
|
+
B: Graph[_Node], nodes: Iterable[Incomplete], weight_function: Callable[..., Incomplete] | None = None
|
|
18
|
+
): ...
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
|
|
4
|
+
from networkx.classes.graph import Graph, _Node
|
|
3
5
|
from networkx.utils.backends import _dispatchable
|
|
4
6
|
|
|
5
7
|
@_dispatchable
|
|
6
|
-
def node_redundancy(G, nodes: Incomplete | None = None): ...
|
|
8
|
+
def node_redundancy(G: Graph[_Node], nodes: Iterable[Incomplete] | None = None): ...
|
|
@@ -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 spectral_bipartivity(G, nodes
|
|
5
|
+
def spectral_bipartivity(G: Graph[_Node], nodes=None, weight: str = "weight"): ...
|