basedpyright 1.29.2 → 1.29.3
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/VERSIONS +1 -0
- package/dist/typeshed-fallback/stdlib/_asyncio.pyi +5 -0
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/_curses.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/_hashlib.pyi +88 -44
- package/dist/typeshed-fallback/stdlib/_heapq.pyi +9 -1
- package/dist/typeshed-fallback/stdlib/_imp.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/_posixsubprocess.pyi +77 -50
- package/dist/typeshed-fallback/stdlib/_socket.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/_thread.pyi +5 -0
- package/dist/typeshed-fallback/stdlib/_tkinter.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi +0 -3
- package/dist/typeshed-fallback/stdlib/_zstd.pyi +96 -0
- package/dist/typeshed-fallback/stdlib/argparse.pyi +1 -7
- package/dist/typeshed-fallback/stdlib/ast.pyi +24 -12
- package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +10 -6
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +30 -8
- package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +2 -4
- package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +19 -7
- package/dist/typeshed-fallback/stdlib/asyncio/unix_events.pyi +18 -13
- package/dist/typeshed-fallback/stdlib/asyncio/windows_events.pyi +29 -9
- package/dist/typeshed-fallback/stdlib/builtins.pyi +65 -28
- package/dist/typeshed-fallback/stdlib/bz2.pyi +6 -5
- package/dist/typeshed-fallback/stdlib/compression/_common/_streams.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/compression/zstd/__init__.pyi +87 -0
- package/dist/typeshed-fallback/stdlib/compression/zstd/_zstdfile.pyi +117 -0
- package/dist/typeshed-fallback/stdlib/concurrent/futures/interpreter.pyi +1 -3
- package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +14 -6
- package/dist/typeshed-fallback/stdlib/ctypes/util.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/ctypes/wintypes.pyi +9 -0
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +50 -5
- package/dist/typeshed-fallback/stdlib/email/_header_value_parser.pyi +2 -5
- package/dist/typeshed-fallback/stdlib/enum.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/errno.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/faulthandler.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/fractions.pyi +28 -10
- package/dist/typeshed-fallback/stdlib/genericpath.pyi +6 -1
- package/dist/typeshed-fallback/stdlib/gzip.pyi +11 -2
- package/dist/typeshed-fallback/stdlib/importlib/abc.pyi +59 -53
- package/dist/typeshed-fallback/stdlib/importlib/machinery.pyi +23 -0
- package/dist/typeshed-fallback/stdlib/importlib/resources/__init__.pyi +8 -2
- package/dist/typeshed-fallback/stdlib/importlib/resources/_common.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/importlib/resources/abc.pyi +66 -9
- package/dist/typeshed-fallback/stdlib/importlib/util.pyi +20 -4
- package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/lzma.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/multiprocessing/forkserver.pyi +21 -7
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +62 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/popen_fork.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/multiprocessing/reduction.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/util.pyi +15 -5
- package/dist/typeshed-fallback/stdlib/ntpath.pyi +7 -10
- package/dist/typeshed-fallback/stdlib/posixpath.pyi +7 -13
- package/dist/typeshed-fallback/stdlib/pyexpat/errors.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/select.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/shutil.pyi +9 -2
- package/dist/typeshed-fallback/stdlib/socket.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/socketserver.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/sre_constants.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/string/__init__.pyi +5 -2
- package/dist/typeshed-fallback/stdlib/string/templatelib.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +16 -1
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/turtle.pyi +38 -1
- package/dist/typeshed-fallback/stdlib/types.pyi +12 -1
- package/dist/typeshed-fallback/stdlib/typing.pyi +7 -3
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +28 -1
- package/dist/typeshed-fallback/stdlib/winsound.pyi +10 -0
- package/dist/typeshed-fallback/stdlib/xml/sax/__init__.pyi +18 -1
- package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +21 -4
- package/dist/typeshed-fallback/stdlib/zipimport.pyi +12 -2
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +8 -2
- package/dist/typeshed-fallback/stubs/Flask-Cors/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Flask-Cors/flask_cors/core.pyi +3 -3
- package/dist/typeshed-fallback/stubs/WebOb/webob/cookies.pyi +2 -2
- package/dist/typeshed-fallback/stubs/aiofiles/aiofiles/threadpool/__init__.pyi +6 -5
- 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/credit_card.pyi +4 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/customer_session_gateway.pyi +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/inputs/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/inputs/create_customer_session_input.pyi +11 -7
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/inputs/customer_recommendations_input.pyi +13 -8
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/inputs/customer_session_input.pyi +14 -9
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/inputs/monetary_amount_input.pyi +6 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/inputs/paypal_payee_input.pyi +14 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/inputs/paypal_purchase_unit_input.pyi +16 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/inputs/phone_input.pyi +9 -6
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/inputs/update_customer_session_input.pyi +13 -6
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/types/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/types/customer_recommendations_payload.pyi +9 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/types/payment_options.pyi +2 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/types/payment_recommendation.pyi +6 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/graphql/unions/customer_recommendations.pyi +4 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/{montary_amount.pyi → monetary_amount.pyi} +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/credit_card_numbers.pyi +4 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/nonces.pyi +4 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/util/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/util/experimental.pyi +5 -0
- package/dist/typeshed-fallback/stubs/cachetools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/cachetools/cachetools/__init__.pyi +13 -4
- package/dist/typeshed-fallback/stubs/cachetools/cachetools/func.pyi +1 -4
- package/dist/typeshed-fallback/stubs/cffi/_cffi_backend.pyi +2 -2
- package/dist/typeshed-fallback/stubs/cffi/cffi/api.pyi +1 -1
- package/dist/typeshed-fallback/stubs/dateparser/dateparser/calendars/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stubs/dateparser/dateparser/parser.pyi +1 -1
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +12 -12
- package/dist/typeshed-fallback/stubs/docutils/docutils/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/core.pyi +9 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/__init__.pyi +11 -3
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/af.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/ar.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/ca.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/cs.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/da.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/de.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/en.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/eo.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/es.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/fa.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/fi.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/fr.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/gl.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/he.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/it.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/ja.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/ka.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/ko.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/lt.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/lv.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/nl.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/pl.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/pt_br.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/ru.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/sk.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/sv.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/uk.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/zh_cn.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/languages/zh_tw.pyi +6 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/nodes.pyi +206 -3
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/__init__.pyi +8 -6
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/null.pyi +1 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/recommonmark_wrapper.pyi +50 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/__init__.pyi +9 -5
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/__init__.pyi +5 -3
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/admonitions.pyi +33 -10
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/body.pyi +64 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/html.pyi +5 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/images.pyi +18 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/misc.pyi +8 -7
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/parts.pyi +4 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/references.pyi +4 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/tables.pyi +62 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/__init__.pyi +20 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/af.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/ar.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/ca.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/cs.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/da.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/de.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/en.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/eo.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/es.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/fa.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/fi.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/fr.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/gl.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/he.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/it.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/ja.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/ka.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/ko.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/lt.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/lv.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/nl.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/pl.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/pt_br.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/ru.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/sk.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/sv.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/uk.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/zh_cn.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/languages/zh_tw.pyi +5 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/roles.pyi +3 -2
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/states.pyi +257 -8
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/tableparser.pyi +3 -2
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/__init__.pyi +9 -8
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/code_analyzer.pyi +28 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/error_reporting.pyi +41 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/math/__init__.pyi +11 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/math/latex2mathml.pyi +44 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/math/math2html.pyi +635 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/math/mathalphabet2unichar.pyi +13 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/math/mathml_elements.pyi +82 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/math/tex2mathml_extern.pyi +8 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/math/tex2unichar.pyi +14 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/math/unichar2tex.pyi +1 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/punctuation_chars.pyi +9 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/roman.pyi +10 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/smartquotes.pyi +44 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/utils/urischemes.pyi +1 -0
- package/dist/typeshed-fallback/stubs/docutils/docutils/writers/manpage.pyi +18 -0
- package/dist/typeshed-fallback/stubs/geopandas/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/geopandas/geopandas/geoseries.pyi +1 -1
- package/dist/typeshed-fallback/stubs/grpcio/grpc/__init__.pyi +32 -53
- package/dist/typeshed-fallback/stubs/grpcio/grpc/aio/__init__.pyi +18 -21
- package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/parser.pyi +1 -0
- package/dist/typeshed-fallback/stubs/jmespath/jmespath/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stubs/jmespath/jmespath/ast.pyi +55 -22
- package/dist/typeshed-fallback/stubs/jmespath/jmespath/compat.pyi +7 -4
- package/dist/typeshed-fallback/stubs/jmespath/jmespath/functions.pyi +1 -1
- package/dist/typeshed-fallback/stubs/jmespath/jmespath/visitor.pyi +14 -11
- package/dist/typeshed-fallback/stubs/jsonschema/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/jsonschema/jsonschema/_utils.pyi +2 -1
- package/dist/typeshed-fallback/stubs/jsonschema/jsonschema/validators.pyi +26 -12
- package/dist/typeshed-fallback/stubs/networkx/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/density.pyi +15 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/traveling_salesman.pyi +11 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/treewidth.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/asteroidal.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/cluster.pyi +7 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/link_analysis.pyi +20 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/clique.pyi +12 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/equitable_coloring.pyi +8 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/greedy_coloring.pyi +5 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/divisive.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/leiden.pyi +18 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/local.pyi +15 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/lukes.pyi +9 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/quality.pyi +9 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_augmentation.pyi +28 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_kcomponents.pyi +3 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/kcomponents.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/d_separation.pyi +1 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_measures.pyi +14 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dominating.pyi +6 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/isomorph.pyi +17 -13
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/matchhelpers.pyi +3 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/tree_isomorphism.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/minors/contraction.pyi +11 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/planar_drawing.pyi +10 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/planarity.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/similarity.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/structuralholes.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/threshold.pyi +28 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tournament.pyi +11 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgebfs.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgedfs.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/branchings.pyi +6 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/mst.pyi +11 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/triads.pyi +6 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/digraph.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/function.pyi +30 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/drawing/layout.pyi +46 -16
- package/dist/typeshed-fallback/stubs/networkx/networkx/drawing/nx_pylab.pyi +53 -15
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/atlas.pyi +11 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/directed.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/internet_as_graphs.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/nonisomorphic_trees.pyi +1 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/triads.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/linalg/laplacianmatrix.pyi +0 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/gml.pyi +8 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/graph6.pyi +7 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/pajek.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/utils/__init__.pyi +4 -19
- package/dist/typeshed-fallback/stubs/networkx/networkx/utils/backends.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/utils/rcm.pyi +4 -0
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/colors.pyi +2 -4
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/argon2.pyi +8 -7
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/bcrypt.pyi +4 -3
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/cisco.pyi +2 -1
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/des_crypt.pyi +6 -5
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/digests.pyi +11 -7
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/django.pyi +5 -4
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/fshp.pyi +3 -2
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/ldap_digests.pyi +3 -2
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/md5_crypt.pyi +2 -1
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/misc.pyi +4 -1
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/mssql.pyi +3 -2
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/oracle.pyi +2 -1
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/pbkdf2.pyi +4 -4
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/scram.pyi +2 -1
- package/dist/typeshed-fallback/stubs/passlib/passlib/handlers/scrypt.pyi +2 -1
- package/dist/typeshed-fallback/stubs/passlib/passlib/utils/handlers.pyi +1 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +8 -29
- package/dist/typeshed-fallback/stubs/psutil/psutil/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/python-jose/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/python-jose/jose/backends/__init__.pyi +1 -4
- package/dist/typeshed-fallback/stubs/python-jose/jose/backends/cryptography_backend.pyi +1 -2
- package/dist/typeshed-fallback/stubs/python-jose/jose/jws.pyi +2 -2
- package/dist/typeshed-fallback/stubs/python-jose/jose/jwt.pyi +4 -1
- package/dist/typeshed-fallback/stubs/python-xlib/Xlib/protocol/display.pyi +2 -2
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/dmtx.pyi +4 -4
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/eanbc.pyi +1 -1
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/canvas.pyi +13 -9
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/vobject/vobject/behavior.pyi +1 -1
- package/dist/typeshed-fallback/stubs/vobject/vobject/icalendar.pyi +6 -6
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/atheris/METADATA.toml +0 -10
- package/dist/typeshed-fallback/stubs/atheris/atheris/__init__.pyi +0 -9
- package/dist/typeshed-fallback/stubs/atheris/atheris/function_hooks.pyi +0 -14
- package/dist/typeshed-fallback/stubs/atheris/atheris/import_hook.pyi +0 -36
- package/dist/typeshed-fallback/stubs/atheris/atheris/instrument_bytecode.pyi +0 -7
- package/dist/typeshed-fallback/stubs/atheris/atheris/utils.pyi +0 -18
- package/dist/typeshed-fallback/stubs/atheris/atheris/version_dependent.pyi +0 -27
- package/dist/typeshed-fallback/stubs/caldav/METADATA.toml +0 -9
- package/dist/typeshed-fallback/stubs/caldav/caldav/__init__.pyi +0 -4
- package/dist/typeshed-fallback/stubs/caldav/caldav/davclient.pyi +0 -84
- package/dist/typeshed-fallback/stubs/caldav/caldav/elements/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/caldav/caldav/elements/base.pyi +0 -24
- package/dist/typeshed-fallback/stubs/caldav/caldav/elements/cdav.pyi +0 -100
- package/dist/typeshed-fallback/stubs/caldav/caldav/elements/dav.pyi +0 -63
- package/dist/typeshed-fallback/stubs/caldav/caldav/elements/ical.pyi +0 -9
- package/dist/typeshed-fallback/stubs/caldav/caldav/lib/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/caldav/caldav/lib/error.pyi +0 -23
- package/dist/typeshed-fallback/stubs/caldav/caldav/lib/namespace.pyi +0 -4
- package/dist/typeshed-fallback/stubs/caldav/caldav/lib/url.pyi +0 -27
- package/dist/typeshed-fallback/stubs/caldav/caldav/lib/vcal.pyi +0 -1
- package/dist/typeshed-fallback/stubs/caldav/caldav/objects.pyi +0 -263
- package/dist/typeshed-fallback/stubs/caldav/caldav/requests.pyi +0 -8
- package/dist/typeshed-fallback/stubs/corus/METADATA.toml +0 -6
- package/dist/typeshed-fallback/stubs/corus/corus/__init__.pyi +0 -1
- package/dist/typeshed-fallback/stubs/corus/corus/io.pyi +0 -21
- package/dist/typeshed-fallback/stubs/corus/corus/path.pyi +0 -0
- package/dist/typeshed-fallback/stubs/corus/corus/readme.pyi +0 -17
- package/dist/typeshed-fallback/stubs/corus/corus/record.pyi +0 -8
- package/dist/typeshed-fallback/stubs/corus/corus/sources/__init__.pyi +0 -23
- package/dist/typeshed-fallback/stubs/corus/corus/sources/bsnlp.pyi +0 -75
- package/dist/typeshed-fallback/stubs/corus/corus/sources/buriy.pyi +0 -18
- package/dist/typeshed-fallback/stubs/corus/corus/sources/corpora.pyi +0 -50
- package/dist/typeshed-fallback/stubs/corus/corus/sources/factru.pyi +0 -74
- package/dist/typeshed-fallback/stubs/corus/corus/sources/gareev.pyi +0 -21
- package/dist/typeshed-fallback/stubs/corus/corus/sources/gramru.pyi +0 -1
- package/dist/typeshed-fallback/stubs/corus/corus/sources/lenta.pyi +0 -19
- package/dist/typeshed-fallback/stubs/corus/corus/sources/librusec.pyi +0 -14
- package/dist/typeshed-fallback/stubs/corus/corus/sources/meta.pyi +0 -43
- package/dist/typeshed-fallback/stubs/corus/corus/sources/mokoron.pyi +0 -28
- package/dist/typeshed-fallback/stubs/corus/corus/sources/morphoru.pyi +0 -24
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ne5.pyi +0 -28
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ods.pyi +0 -46
- package/dist/typeshed-fallback/stubs/corus/corus/sources/omnia.pyi +0 -49
- package/dist/typeshed-fallback/stubs/corus/corus/sources/persons.pyi +0 -27
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ria.pyi +0 -21
- package/dist/typeshed-fallback/stubs/corus/corus/sources/rudrec.pyi +0 -27
- package/dist/typeshed-fallback/stubs/corus/corus/sources/russe.pyi +0 -16
- package/dist/typeshed-fallback/stubs/corus/corus/sources/simlex.pyi +0 -14
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/__init__.pyi +0 -10
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/arzamas.pyi +0 -4
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/common.pyi +0 -69
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/fontanka.pyi +0 -4
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/interfax.pyi +0 -4
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/kp.pyi +0 -4
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/lenta.pyi +0 -4
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/magazines.pyi +0 -4
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/nplus1.pyi +0 -4
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/proza.pyi +0 -6
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/social.pyi +0 -15
- package/dist/typeshed-fallback/stubs/corus/corus/sources/taiga/subtitles.pyi +0 -6
- package/dist/typeshed-fallback/stubs/corus/corus/sources/toloka.pyi +0 -28
- package/dist/typeshed-fallback/stubs/corus/corus/sources/ud.pyi +0 -29
- package/dist/typeshed-fallback/stubs/corus/corus/sources/wiki.pyi +0 -20
- package/dist/typeshed-fallback/stubs/corus/corus/sources/wikiner.pyi +0 -19
- package/dist/typeshed-fallback/stubs/corus/corus/third/WikiExtractor.pyi +0 -225
- package/dist/typeshed-fallback/stubs/corus/corus/third/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/corus/corus/zip.pyi +0 -28
- package/dist/typeshed-fallback/stubs/pygit2/METADATA.toml +0 -9
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/__init__.pyi +0 -60
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/_build.pyi +0 -5
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/_libgit2.pyi +0 -4
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/_pygit2.pyi +0 -763
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/_run.pyi +0 -15
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/blame.pyi +0 -34
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/blob.pyi +0 -25
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/branches.pyi +0 -17
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/callbacks.pyi +0 -78
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/config.pyi +0 -59
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/credentials.pyi +0 -34
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/enums.pyi +0 -394
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/errors.pyi +0 -6
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/ffi.pyi +0 -1
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/filter.pyi +0 -11
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/index.pyi +0 -59
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/legacyenums.pyi +0 -62
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/packbuilder.pyi +0 -15
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/references.pyi +0 -18
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/refspec.pyi +0 -18
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/remotes.pyi +0 -84
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/repository.pyi +0 -211
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/settings.pyi +0 -37
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/submodules.pyi +0 -44
- package/dist/typeshed-fallback/stubs/pygit2/pygit2/utils.pyi +0 -49
- package/dist/typeshed-fallback/stubs/tree-sitter-languages/METADATA.toml +0 -9
- package/dist/typeshed-fallback/stubs/tree-sitter-languages/tree_sitter_languages/__init__.pyi +0 -7
- package/dist/typeshed-fallback/stubs/tree-sitter-languages/tree_sitter_languages/core.pyi +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from _typeshed import Incomplete, SupportsKeysAndGetItem
|
|
1
|
+
from _typeshed import Incomplete, SupportsKeysAndGetItem, SupportsNext
|
|
2
2
|
from collections.abc import Generator, Iterable, Iterator, Mapping, MutableMapping, Sized
|
|
3
3
|
|
|
4
4
|
class URIDict(MutableMapping[str, str]):
|
|
@@ -24,3 +24,4 @@ def unbool(element, true=..., false=...): ...
|
|
|
24
24
|
def uniq(container) -> bool: ...
|
|
25
25
|
def find_evaluated_item_indexes_by_schema(validator, instance, schema) -> list[Incomplete]: ...
|
|
26
26
|
def find_evaluated_property_keys_by_schema(validator, instance, schema) -> list[Incomplete]: ...
|
|
27
|
+
def is_valid(errs_it: SupportsNext[object]) -> bool: ...
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
from _typeshed import Incomplete, SupportsKeysAndGetItem
|
|
2
2
|
from collections.abc import Callable, Generator, Iterable, Iterator, Mapping
|
|
3
3
|
from contextlib import contextmanager
|
|
4
|
-
from typing import Any, ClassVar
|
|
5
|
-
from typing_extensions import TypeAlias
|
|
4
|
+
from typing import Any, ClassVar, overload
|
|
5
|
+
from typing_extensions import TypeAlias, deprecated
|
|
6
6
|
|
|
7
7
|
from referencing.jsonschema import Schema, SchemaRegistry
|
|
8
8
|
from referencing.typing import URI
|
|
@@ -11,6 +11,7 @@ from ._format import FormatChecker
|
|
|
11
11
|
from ._types import TypeChecker
|
|
12
12
|
from ._utils import Unset, URIDict
|
|
13
13
|
from .exceptions import ValidationError
|
|
14
|
+
from .protocols import Validator
|
|
14
15
|
|
|
15
16
|
# these type aliases do not exist at runtime, they're only defined here in the stub
|
|
16
17
|
_JsonObject: TypeAlias = Mapping[str, Any]
|
|
@@ -40,15 +41,27 @@ class _Validator:
|
|
|
40
41
|
@classmethod
|
|
41
42
|
def check_schema(cls, schema: Schema, format_checker: FormatChecker | Unset = ...) -> None: ...
|
|
42
43
|
@property
|
|
44
|
+
@deprecated(
|
|
45
|
+
"Accessing resolver() is deprecated as of v4.18.0, "
|
|
46
|
+
"in favor of the https://github.com/python-jsonschema/referencing library."
|
|
47
|
+
)
|
|
43
48
|
def resolver(self): ...
|
|
44
49
|
def evolve(self, **changes) -> _Validator: ...
|
|
45
|
-
|
|
50
|
+
@overload
|
|
51
|
+
def iter_errors(self, instance) -> Generator[Incomplete]: ...
|
|
52
|
+
@overload
|
|
53
|
+
@deprecated("Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release.")
|
|
54
|
+
def iter_errors(self, instance, _schema: Schema | None) -> Generator[Incomplete]: ...
|
|
46
55
|
def descend(
|
|
47
56
|
self, instance, schema: Schema, path: Incomplete | None = ..., schema_path: Incomplete | None = ..., resolver=None
|
|
48
57
|
) -> Generator[Incomplete, None, None]: ...
|
|
49
58
|
def validate(self, *args, **kwargs) -> None: ...
|
|
50
|
-
def is_type(self, instance, type): ...
|
|
51
|
-
|
|
59
|
+
def is_type(self, instance, type) -> bool: ...
|
|
60
|
+
@overload
|
|
61
|
+
def is_valid(self, instance) -> bool: ...
|
|
62
|
+
@overload
|
|
63
|
+
@deprecated("Passing a schema to Validator.is_valid is deprecated and will be removed in a future release.")
|
|
64
|
+
def is_valid(self, instance, _schema: Schema | None) -> bool: ...
|
|
52
65
|
|
|
53
66
|
def validates(version: str) -> Callable[..., Incomplete]: ...
|
|
54
67
|
def create(
|
|
@@ -94,15 +107,16 @@ class RefResolver:
|
|
|
94
107
|
@property
|
|
95
108
|
def resolution_scope(self): ...
|
|
96
109
|
@property
|
|
97
|
-
def base_uri(self): ...
|
|
110
|
+
def base_uri(self) -> str: ...
|
|
98
111
|
@contextmanager
|
|
112
|
+
@deprecated("jsonschema.RefResolver.in_scope is deprecated and will be removed in a future release.")
|
|
99
113
|
def in_scope(self, scope) -> Generator[None]: ...
|
|
100
114
|
@contextmanager
|
|
101
|
-
def resolving(self, ref) -> Generator[Incomplete
|
|
102
|
-
def resolve(self, ref): ...
|
|
103
|
-
def resolve_from_url(self, url): ...
|
|
104
|
-
def resolve_fragment(self, document, fragment): ...
|
|
105
|
-
def resolve_remote(self, uri): ...
|
|
115
|
+
def resolving(self, ref: str) -> Generator[Incomplete]: ...
|
|
116
|
+
def resolve(self, ref: str) -> tuple[str, Incomplete]: ...
|
|
117
|
+
def resolve_from_url(self, url: str): ...
|
|
118
|
+
def resolve_fragment(self, document, fragment: str): ...
|
|
119
|
+
def resolve_remote(self, uri: str): ...
|
|
106
120
|
|
|
107
121
|
def validate(instance: object, schema: Schema, cls: type[_Validator] | None = None, *args: Any, **kwargs: Any) -> None: ...
|
|
108
|
-
def validator_for(schema: Schema | bool, default
|
|
122
|
+
def validator_for(schema: Schema | bool, default: type[Validator] | Unset = ...) -> type[Validator]: ...
|
|
@@ -118,6 +118,7 @@ from networkx.algorithms.structuralholes import *
|
|
|
118
118
|
from networkx.algorithms.summarization import *
|
|
119
119
|
from networkx.algorithms.swap import *
|
|
120
120
|
from networkx.algorithms.time_dependent import *
|
|
121
|
+
from networkx.algorithms.tournament import is_tournament as is_tournament
|
|
121
122
|
from networkx.algorithms.traversal import *
|
|
122
123
|
from networkx.algorithms.tree.branchings import (
|
|
123
124
|
ArborescenceIterator as ArborescenceIterator,
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/__init__.pyi
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from networkx.algorithms.approximation.clique import *
|
|
2
2
|
from networkx.algorithms.approximation.clustering_coefficient import *
|
|
3
3
|
from networkx.algorithms.approximation.connectivity import *
|
|
4
|
+
from networkx.algorithms.approximation.density import *
|
|
4
5
|
from networkx.algorithms.approximation.distance_measures import *
|
|
5
6
|
from networkx.algorithms.approximation.dominating_set import *
|
|
6
7
|
from networkx.algorithms.approximation.kcomponents import *
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from collections.abc import Callable, Hashable
|
|
2
|
+
from typing import Literal
|
|
3
|
+
from typing_extensions import TypeAlias
|
|
4
|
+
|
|
5
|
+
from networkx.classes.graph import Graph, _Node
|
|
6
|
+
from networkx.utils.backends import _dispatchable
|
|
7
|
+
|
|
8
|
+
_Algorithm: TypeAlias = Literal["greedy++", "fista"]
|
|
9
|
+
|
|
10
|
+
__all__ = ["densest_subgraph"]
|
|
11
|
+
|
|
12
|
+
ALGORITHMS: dict[_Algorithm, Callable[[Graph[Hashable], int], tuple[float, set[int]]]]
|
|
13
|
+
|
|
14
|
+
@_dispatchable
|
|
15
|
+
def densest_subgraph(G: Graph[_Node], iterations: int = 1, *, method: _Algorithm = "fista") -> tuple[float, set[int]]: ...
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Callable
|
|
1
|
+
from _typeshed import Incomplete, SupportsLenAndGetItem
|
|
2
|
+
from collections.abc import Callable, Mapping
|
|
3
|
+
from typing import Any, TypeVar
|
|
3
4
|
|
|
4
5
|
from networkx.classes.digraph import DiGraph
|
|
5
6
|
from networkx.classes.graph import Graph, _Node
|
|
@@ -15,6 +16,10 @@ __all__ = [
|
|
|
15
16
|
"threshold_accepting_tsp",
|
|
16
17
|
]
|
|
17
18
|
|
|
19
|
+
_SupportsLenAndGetItemT = TypeVar("_SupportsLenAndGetItemT", bound=SupportsLenAndGetItem[Any])
|
|
20
|
+
|
|
21
|
+
def swap_two_nodes(soln: _SupportsLenAndGetItemT, seed) -> _SupportsLenAndGetItemT: ...
|
|
22
|
+
def move_one_node(soln: _SupportsLenAndGetItemT, seed) -> _SupportsLenAndGetItemT: ...
|
|
18
23
|
@_dispatchable
|
|
19
24
|
def christofides(G: Graph[_Node], weight: str | None = "weight", tree: Graph[_Node] | None = None): ...
|
|
20
25
|
@_dispatchable
|
|
@@ -31,6 +36,10 @@ def asadpour_atsp(
|
|
|
31
36
|
G: DiGraph[_Node], weight: str | None = "weight", seed: int | RandomState | None = None, source: str | None = None
|
|
32
37
|
): ...
|
|
33
38
|
@_dispatchable
|
|
39
|
+
def held_karp_ascent(G: Graph[_Node], weight="weight"): ...
|
|
40
|
+
@_dispatchable
|
|
41
|
+
def spanning_tree_distribution(G: Graph[_Node], z: Mapping[Incomplete, Incomplete]) -> dict[Incomplete, Incomplete]: ...
|
|
42
|
+
@_dispatchable
|
|
34
43
|
def greedy_tsp(G: Graph[_Node], weight: str | None = "weight", source=None): ...
|
|
35
44
|
@_dispatchable
|
|
36
45
|
def simulated_annealing_tsp(
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/treewidth.pyi
CHANGED
|
@@ -15,3 +15,7 @@ class MinDegreeHeuristic:
|
|
|
15
15
|
|
|
16
16
|
def __init__(self, graph) -> None: ...
|
|
17
17
|
def best_node(self, graph): ...
|
|
18
|
+
|
|
19
|
+
def min_fill_in_heuristic(graph_dict) -> Incomplete | None: ...
|
|
20
|
+
@_dispatchable
|
|
21
|
+
def treewidth_decomp(G: Graph[_Node], heuristic=...) -> tuple[int, Graph[_Node]]: ...
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
1
3
|
from networkx.classes.graph import Graph, _Node
|
|
2
4
|
from networkx.utils.backends import _dispatchable
|
|
3
5
|
|
|
@@ -7,3 +9,5 @@ __all__ = ["is_at_free", "find_asteroidal_triple"]
|
|
|
7
9
|
def find_asteroidal_triple(G: Graph[_Node]): ...
|
|
8
10
|
@_dispatchable
|
|
9
11
|
def is_at_free(G: Graph[_Node]) -> bool: ...
|
|
12
|
+
@_dispatchable
|
|
13
|
+
def create_component_structure(G: Graph[_Node]) -> dict[Incomplete, Incomplete]: ...
|
|
@@ -5,6 +5,7 @@ from networkx.algorithms.bipartite.covering import *
|
|
|
5
5
|
from networkx.algorithms.bipartite.edgelist import *
|
|
6
6
|
from networkx.algorithms.bipartite.extendability import *
|
|
7
7
|
from networkx.algorithms.bipartite.generators import *
|
|
8
|
+
from networkx.algorithms.bipartite.link_analysis import *
|
|
8
9
|
from networkx.algorithms.bipartite.matching import *
|
|
9
10
|
from networkx.algorithms.bipartite.matrix import *
|
|
10
11
|
from networkx.algorithms.bipartite.projection import *
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Iterable
|
|
2
|
+
from collections.abc import Callable, Iterable
|
|
3
3
|
|
|
4
4
|
from networkx.classes.graph import Graph, _Node
|
|
5
5
|
from networkx.utils.backends import _dispatchable
|
|
6
6
|
|
|
7
7
|
__all__ = ["clustering", "average_clustering", "latapy_clustering", "robins_alexander_clustering"]
|
|
8
8
|
|
|
9
|
+
def cc_dot(nu, nv) -> float: ...
|
|
10
|
+
def cc_max(nu, nv) -> float: ...
|
|
11
|
+
def cc_min(nu, nv) -> float: ...
|
|
12
|
+
|
|
13
|
+
modes: dict[str, Callable[[Incomplete, Incomplete], float]]
|
|
14
|
+
|
|
9
15
|
@_dispatchable
|
|
10
16
|
def latapy_clustering(G: Graph[_Node], nodes: Iterable[Incomplete] | None = None, mode: str = "dot"): ...
|
|
11
17
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from collections.abc import Iterable
|
|
2
|
+
|
|
3
|
+
from networkx.classes.graph import Graph, _Node
|
|
4
|
+
from networkx.utils.backends import _dispatchable
|
|
5
|
+
|
|
6
|
+
__all__ = ["birank"]
|
|
7
|
+
|
|
8
|
+
@_dispatchable
|
|
9
|
+
def birank(
|
|
10
|
+
G: Graph[_Node],
|
|
11
|
+
nodes: Iterable[_Node],
|
|
12
|
+
*,
|
|
13
|
+
alpha: float | None = None,
|
|
14
|
+
beta: float | None = None,
|
|
15
|
+
top_personalization: dict[str, int] | None = None,
|
|
16
|
+
bottom_personalization: dict[str, int] | None = None,
|
|
17
|
+
max_iter: int = 100,
|
|
18
|
+
tol: float = 1.0e-6,
|
|
19
|
+
weight: str | None = "weight",
|
|
20
|
+
) -> dict[_Node, float]: ...
|
|
@@ -37,3 +37,15 @@ def node_clique_number(G: Graph[_Node], nodes=None, cliques: Iterable[Incomplete
|
|
|
37
37
|
def number_of_cliques(G, nodes=None, cliques=None) -> int | dict[Incomplete, Incomplete]: ...
|
|
38
38
|
@_dispatchable
|
|
39
39
|
def max_weight_clique(G, weight="weight") -> tuple[Incomplete, Incomplete]: ...
|
|
40
|
+
|
|
41
|
+
class MaxWeightClique:
|
|
42
|
+
G: Graph[Incomplete]
|
|
43
|
+
incumbent_nodes: list[Incomplete]
|
|
44
|
+
incumbent_weight: int
|
|
45
|
+
node_weights: dict[Incomplete, int]
|
|
46
|
+
def __init__(self, G: Graph[_Node], weight): ...
|
|
47
|
+
def update_incumbent_if_improved(self, C, C_weight): ...
|
|
48
|
+
def greedily_find_independent_set(self, P): ...
|
|
49
|
+
def find_branching_nodes(self, P, target): ...
|
|
50
|
+
def expand(self, C, C_weight, P): ...
|
|
51
|
+
def find_max_weight_clique(self): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/equitable_coloring.pyi
CHANGED
|
@@ -11,5 +11,13 @@ __all__ = ["equitable_color"]
|
|
|
11
11
|
def is_coloring(G: Graph[_Node], coloring: SupportsGetItem[Incomplete, Incomplete]) -> bool: ...
|
|
12
12
|
@_dispatchable
|
|
13
13
|
def is_equitable(G: Graph[_Node], coloring: Mapping[Incomplete, Incomplete], num_colors: SupportsIndex | None = None) -> bool: ...
|
|
14
|
+
def make_C_from_F(F): ...
|
|
15
|
+
def make_N_from_L_C(L, C): ...
|
|
16
|
+
def make_H_from_C_N(C, N): ...
|
|
17
|
+
def change_color(u, X, Y, N, H, F, C, L): ...
|
|
18
|
+
def move_witnesses(src_color, dst_color, N, H, F, C, T_cal, L): ...
|
|
19
|
+
@_dispatchable
|
|
20
|
+
def pad_graph(G: Graph[_Node], num_colors): ...
|
|
21
|
+
def procedure_P(V_minus, V_plus, N, H, F, C, L, excluded_colors=None): ...
|
|
14
22
|
@_dispatchable
|
|
15
23
|
def equitable_color(G: Graph[_Node], num_colors): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/greedy_coloring.pyi
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Generator
|
|
2
|
+
from collections.abc import Callable, Generator
|
|
3
|
+
from typing import Final
|
|
3
4
|
|
|
4
5
|
from networkx.classes.graph import Graph, _Node
|
|
5
6
|
from networkx.utils.backends import _dispatchable
|
|
@@ -32,5 +33,8 @@ def strategy_connected_sequential_dfs(G, colors): ...
|
|
|
32
33
|
def strategy_connected_sequential(G, colors, traversal: str = "bfs") -> Generator[Incomplete, None, None]: ...
|
|
33
34
|
@_dispatchable
|
|
34
35
|
def strategy_saturation_largest_first(G, colors) -> Generator[Incomplete, None, Incomplete]: ...
|
|
36
|
+
|
|
37
|
+
STRATEGIES: Final[dict[str, Callable[..., Incomplete]]]
|
|
38
|
+
|
|
35
39
|
@_dispatchable
|
|
36
40
|
def greedy_color(G: Graph[_Node], strategy="largest_first", interchange: bool = False): ...
|
|
@@ -5,6 +5,8 @@ from networkx.algorithms.community.divisive import *
|
|
|
5
5
|
from networkx.algorithms.community.kclique import *
|
|
6
6
|
from networkx.algorithms.community.kernighan_lin import *
|
|
7
7
|
from networkx.algorithms.community.label_propagation import *
|
|
8
|
+
from networkx.algorithms.community.leiden import *
|
|
9
|
+
from networkx.algorithms.community.local import *
|
|
8
10
|
from networkx.algorithms.community.louvain import *
|
|
9
11
|
from networkx.algorithms.community.lukes import *
|
|
10
12
|
from networkx.algorithms.community.modularity_max import *
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
|
|
3
|
-
import networkx as nx
|
|
4
3
|
from networkx.classes.graph import Graph, _Node
|
|
4
|
+
from networkx.utils.backends import _dispatchable
|
|
5
5
|
|
|
6
6
|
__all__ = ["edge_betweenness_partition", "edge_current_flow_betweenness_partition"]
|
|
7
7
|
|
|
8
|
-
@
|
|
8
|
+
@_dispatchable
|
|
9
9
|
def edge_betweenness_partition(G: Graph[_Node], number_of_sets: int, *, weight: str | None = None) -> list[Incomplete]: ...
|
|
10
|
-
@
|
|
10
|
+
@_dispatchable
|
|
11
11
|
def edge_current_flow_betweenness_partition(
|
|
12
12
|
G: Graph[_Node], number_of_sets: int, *, weight: str | None = None
|
|
13
13
|
) -> list[Incomplete]: ...
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from networkx.classes.graph import Graph, _Node
|
|
2
|
+
from networkx.utils.backends import _dispatchable
|
|
3
|
+
from numpy.random import RandomState
|
|
4
|
+
|
|
5
|
+
__all__ = ["leiden_communities", "leiden_partitions"]
|
|
6
|
+
|
|
7
|
+
@_dispatchable
|
|
8
|
+
def leiden_communities(
|
|
9
|
+
G: Graph[_Node],
|
|
10
|
+
weight: str | None = "weight",
|
|
11
|
+
resolution: float = 1,
|
|
12
|
+
max_level: int | None = None,
|
|
13
|
+
seed: int | RandomState | None = None,
|
|
14
|
+
): ...
|
|
15
|
+
@_dispatchable
|
|
16
|
+
def leiden_partitions(
|
|
17
|
+
G: Graph[_Node], weight: str | None = "weight", resolution: float = 1, seed: int | RandomState | None = None
|
|
18
|
+
): ...
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from collections.abc import Callable, Hashable
|
|
2
|
+
from typing import Literal
|
|
3
|
+
from typing_extensions import TypeAlias
|
|
4
|
+
|
|
5
|
+
from networkx.classes.graph import Graph, _Node
|
|
6
|
+
|
|
7
|
+
__all__ = ["greedy_source_expansion"]
|
|
8
|
+
|
|
9
|
+
_Algorithm: TypeAlias = Literal["clauset"]
|
|
10
|
+
|
|
11
|
+
ALGORITHMS: dict[_Algorithm, Callable[[Graph[Hashable], Hashable, int | None], set[Hashable]]]
|
|
12
|
+
|
|
13
|
+
def greedy_source_expansion(
|
|
14
|
+
G: Graph[_Node], *, source: _Node, cutoff: int | None = None, method: _Algorithm = "clauset"
|
|
15
|
+
) -> set[_Node | None]: ...
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
+
from typing import Final
|
|
2
|
+
|
|
1
3
|
from networkx.classes.graph import Graph, _Node
|
|
2
4
|
from networkx.utils.backends import _dispatchable
|
|
3
5
|
|
|
4
6
|
__all__ = ["lukes_partitioning"]
|
|
5
7
|
|
|
8
|
+
D_EDGE_W: Final = "weight"
|
|
9
|
+
D_EDGE_VALUE: Final[float]
|
|
10
|
+
D_NODE_W: Final = "weight"
|
|
11
|
+
D_NODE_VALUE: Final = 1
|
|
12
|
+
PKEY: Final = "partitions"
|
|
13
|
+
CLUSTER_EVAL_CACHE_SIZE: Final = 2048
|
|
14
|
+
|
|
6
15
|
@_dispatchable
|
|
7
16
|
def lukes_partitioning(G: Graph[_Node], max_size: int, node_weight=None, edge_weight=None): ...
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
from networkx.classes.graph import Graph, _Node
|
|
2
2
|
from networkx.exception import NetworkXError
|
|
3
3
|
from networkx.utils.backends import _dispatchable
|
|
4
|
+
from networkx.utils.decorators import argmap
|
|
4
5
|
|
|
5
6
|
__all__ = ["modularity", "partition_quality"]
|
|
6
7
|
|
|
7
8
|
class NotAPartition(NetworkXError):
|
|
8
9
|
def __init__(self, G, collection) -> None: ...
|
|
9
10
|
|
|
11
|
+
require_partition: argmap
|
|
12
|
+
|
|
13
|
+
@_dispatchable
|
|
14
|
+
def intra_community_edges(G: Graph[_Node], partition): ...
|
|
15
|
+
@_dispatchable
|
|
16
|
+
def inter_community_edges(G: Graph[_Node], partition): ...
|
|
17
|
+
@_dispatchable
|
|
18
|
+
def inter_community_non_edges(G: Graph[_Node], partition): ...
|
|
10
19
|
@_dispatchable
|
|
11
20
|
def modularity(G: Graph[_Node], communities, weight: str | None = "weight", resolution: float = 1): ...
|
|
12
21
|
@_dispatchable
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_augmentation.pyi
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
from _typeshed import SupportsGetItem
|
|
1
|
+
from _typeshed import Incomplete, SupportsGetItem
|
|
2
2
|
from collections.abc import Generator
|
|
3
|
+
from typing import NamedTuple
|
|
3
4
|
|
|
4
5
|
from networkx.classes.graph import Graph, _Node
|
|
5
6
|
from networkx.utils.backends import _dispatchable
|
|
@@ -18,3 +19,29 @@ def k_edge_augmentation(
|
|
|
18
19
|
weight: str | None = None,
|
|
19
20
|
partial: bool = False,
|
|
20
21
|
) -> Generator[tuple[_Node, _Node], None, None]: ...
|
|
22
|
+
@_dispatchable
|
|
23
|
+
def partial_k_edge_augmentation(G: Graph[_Node], k, avail, weight: str | None = None): ...
|
|
24
|
+
@_dispatchable
|
|
25
|
+
def one_edge_augmentation(G: Graph[_Node], avail=None, weight: str | None = None, partial: bool = False): ...
|
|
26
|
+
@_dispatchable
|
|
27
|
+
def bridge_augmentation(G: Graph[_Node], avail=None, weight: str | None = None): ...
|
|
28
|
+
|
|
29
|
+
class MetaEdge(NamedTuple):
|
|
30
|
+
meta_uv: Incomplete
|
|
31
|
+
uv: Incomplete
|
|
32
|
+
w: Incomplete
|
|
33
|
+
|
|
34
|
+
@_dispatchable
|
|
35
|
+
def unconstrained_one_edge_augmentation(G: Graph[_Node]): ...
|
|
36
|
+
@_dispatchable
|
|
37
|
+
def weighted_one_edge_augmentation(G: Graph[_Node], avail, weight: str | None = None, partial: bool = False): ...
|
|
38
|
+
@_dispatchable
|
|
39
|
+
def unconstrained_bridge_augmentation(G: Graph[_Node]): ...
|
|
40
|
+
@_dispatchable
|
|
41
|
+
def weighted_bridge_augmentation(G: Graph[_Node], avail, weight: str | None = None): ...
|
|
42
|
+
@_dispatchable
|
|
43
|
+
def collapse(G: Graph[_Node], grouped_nodes): ...
|
|
44
|
+
@_dispatchable
|
|
45
|
+
def complement_edges(G: Graph[_Node]): ...
|
|
46
|
+
@_dispatchable
|
|
47
|
+
def greedy_k_edge_augmentation(G: Graph[_Node], k, avail=None, weight: str | None = None, seed=None): ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_kcomponents.pyi
CHANGED
|
@@ -21,3 +21,6 @@ class EdgeComponentAuxGraph:
|
|
|
21
21
|
def construct(cls, G): ...
|
|
22
22
|
def k_edge_components(self, k: int) -> Generator[Incomplete, Incomplete, None]: ...
|
|
23
23
|
def k_edge_subgraphs(self, k: int) -> Generator[Incomplete, Incomplete, None]: ...
|
|
24
|
+
|
|
25
|
+
@_dispatchable
|
|
26
|
+
def general_k_edge_subgraphs(G: Graph[_Node], k): ...
|
|
@@ -4,17 +4,13 @@ from networkx.classes.digraph import DiGraph
|
|
|
4
4
|
from networkx.classes.graph import _Node
|
|
5
5
|
from networkx.utils.backends import _dispatchable
|
|
6
6
|
|
|
7
|
-
__all__ = ["is_d_separator", "is_minimal_d_separator", "find_minimal_d_separator"
|
|
7
|
+
__all__ = ["is_d_separator", "is_minimal_d_separator", "find_minimal_d_separator"]
|
|
8
8
|
|
|
9
9
|
@_dispatchable
|
|
10
10
|
def is_d_separator(G: DiGraph[_Node], x: _Node | set[_Node], y: _Node | set[_Node], z: _Node | set[_Node]) -> bool: ...
|
|
11
11
|
@_dispatchable
|
|
12
12
|
def find_minimal_d_separator(G, x, y, *, included=None, restricted=None) -> set[Incomplete] | None: ...
|
|
13
13
|
@_dispatchable
|
|
14
|
-
def d_separated(G, x, y, z): ...
|
|
15
|
-
@_dispatchable
|
|
16
|
-
def minimal_d_separator(G, u, v): ...
|
|
17
|
-
@_dispatchable
|
|
18
14
|
def is_minimal_d_separator(
|
|
19
15
|
G: DiGraph[_Node],
|
|
20
16
|
x: _Node | set[_Node],
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
from collections.abc import Callable
|
|
2
|
+
from typing_extensions import TypeAlias
|
|
3
|
+
|
|
1
4
|
from networkx.classes.graph import Graph, _Node
|
|
2
5
|
from networkx.utils.backends import _dispatchable
|
|
3
6
|
|
|
7
|
+
_WeightFunction: TypeAlias = Callable[..., int]
|
|
8
|
+
|
|
4
9
|
__all__ = [
|
|
5
10
|
"eccentricity",
|
|
6
11
|
"diameter",
|
|
@@ -15,22 +20,22 @@ __all__ = [
|
|
|
15
20
|
]
|
|
16
21
|
|
|
17
22
|
@_dispatchable
|
|
18
|
-
def eccentricity(G: Graph[_Node], v: _Node | None = None, sp=None, weight: str | None = None): ...
|
|
23
|
+
def eccentricity(G: Graph[_Node], v: _Node | None = None, sp=None, weight: str | _WeightFunction | None = None): ...
|
|
19
24
|
@_dispatchable
|
|
20
|
-
def diameter(G: Graph[_Node], e=None, usebounds=False, weight: str | None = None): ...
|
|
25
|
+
def diameter(G: Graph[_Node], e=None, usebounds: bool = False, weight: str | _WeightFunction | None = None): ...
|
|
21
26
|
@_dispatchable
|
|
22
|
-
def harmonic_diameter(G, sp=None) -> float: ...
|
|
27
|
+
def harmonic_diameter(G, sp=None, *, weight: str | _WeightFunction | None = None) -> float: ...
|
|
23
28
|
@_dispatchable
|
|
24
|
-
def periphery(G: Graph[_Node], e=None, usebounds=False, weight: str | None = None): ...
|
|
29
|
+
def periphery(G: Graph[_Node], e=None, usebounds: bool = False, weight: str | _WeightFunction | None = None): ...
|
|
25
30
|
@_dispatchable
|
|
26
|
-
def radius(G: Graph[_Node], e=None, usebounds=False, weight: str | None = None): ...
|
|
31
|
+
def radius(G: Graph[_Node], e=None, usebounds: bool = False, weight: str | _WeightFunction | None = None): ...
|
|
27
32
|
@_dispatchable
|
|
28
|
-
def center(G: Graph[_Node], e=None, usebounds=False, weight: str | None = None): ...
|
|
33
|
+
def center(G: Graph[_Node], e=None, usebounds: bool = False, weight: str | _WeightFunction | None = None): ...
|
|
29
34
|
@_dispatchable
|
|
30
|
-
def barycenter(G, weight: str | None = None, attr=None, sp=None): ...
|
|
35
|
+
def barycenter(G, weight: str | _WeightFunction | None = None, attr=None, sp=None): ...
|
|
31
36
|
@_dispatchable
|
|
32
37
|
def resistance_distance(G: Graph[_Node], nodeA=None, nodeB=None, weight: str | None = None, invert_weight: bool = True): ...
|
|
33
38
|
@_dispatchable
|
|
34
|
-
def effective_graph_resistance(G, weight=None, invert_weight=True) -> float: ...
|
|
39
|
+
def effective_graph_resistance(G, weight: str | None = None, invert_weight: bool = True) -> float: ...
|
|
35
40
|
@_dispatchable
|
|
36
|
-
def kemeny_constant(G, *, weight=None) -> float: ...
|
|
41
|
+
def kemeny_constant(G, *, weight: str | None = None) -> float: ...
|
|
@@ -3,9 +3,13 @@ from collections.abc import Iterable
|
|
|
3
3
|
from networkx.classes.graph import Graph, _Node
|
|
4
4
|
from networkx.utils.backends import _dispatchable
|
|
5
5
|
|
|
6
|
-
__all__ = ["dominating_set", "is_dominating_set"]
|
|
6
|
+
__all__ = ["dominating_set", "is_dominating_set", "connected_dominating_set", "is_connected_dominating_set"]
|
|
7
7
|
|
|
8
8
|
@_dispatchable
|
|
9
|
-
def dominating_set(G: Graph[_Node], start_with: _Node | None = None): ...
|
|
9
|
+
def dominating_set(G: Graph[_Node], start_with: _Node | None = None) -> set[_Node]: ...
|
|
10
10
|
@_dispatchable
|
|
11
11
|
def is_dominating_set(G: Graph[_Node], nbunch: Iterable[_Node]) -> bool: ...
|
|
12
|
+
@_dispatchable
|
|
13
|
+
def connected_dominating_set(G: Graph[_Node]) -> set[_Node]: ...
|
|
14
|
+
@_dispatchable
|
|
15
|
+
def is_connected_dominating_set(G: Graph[_Node], nbunch: Iterable[_Node]) -> bool: ...
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
from collections.abc import Callable
|
|
3
|
+
from typing_extensions import deprecated
|
|
3
4
|
|
|
4
5
|
from networkx.classes.graph import Graph, _Node
|
|
5
6
|
from networkx.utils.backends import _dispatchable
|
|
@@ -7,24 +8,27 @@ from networkx.utils.backends import _dispatchable
|
|
|
7
8
|
__all__ = ["could_be_isomorphic", "fast_could_be_isomorphic", "faster_could_be_isomorphic", "is_isomorphic"]
|
|
8
9
|
|
|
9
10
|
@_dispatchable
|
|
10
|
-
def could_be_isomorphic(G1: Graph[_Node], G2: Graph[_Node]): ...
|
|
11
|
-
|
|
12
|
-
graph_could_be_isomorphic
|
|
13
|
-
|
|
11
|
+
def could_be_isomorphic(G1: Graph[_Node], G2: Graph[_Node], *, properties: str = "dtc") -> bool: ...
|
|
12
|
+
@deprecated("`graph_could_be_isomorphic` is a deprecated alias for `could_be_isomorphic`. Use `could_be_isomorphic` instead.")
|
|
13
|
+
def graph_could_be_isomorphic(G1: Graph[_Node], G2: Graph[_Node]) -> bool: ...
|
|
14
14
|
@_dispatchable
|
|
15
|
-
def fast_could_be_isomorphic(G1: Graph[_Node], G2: Graph[_Node]): ...
|
|
16
|
-
|
|
17
|
-
fast_graph_could_be_isomorphic
|
|
18
|
-
|
|
15
|
+
def fast_could_be_isomorphic(G1: Graph[_Node], G2: Graph[_Node]) -> bool: ...
|
|
16
|
+
@deprecated(
|
|
17
|
+
"`fast_graph_could_be_isomorphic` is a deprecated alias for `fast_could_be_isomorphic`. "
|
|
18
|
+
"Use `fast_could_be_isomorphic` instead."
|
|
19
|
+
)
|
|
20
|
+
def fast_graph_could_be_isomorphic(G1: Graph[_Node], G2: Graph[_Node]) -> bool: ...
|
|
19
21
|
@_dispatchable
|
|
20
|
-
def faster_could_be_isomorphic(G1: Graph[_Node], G2: Graph[_Node]): ...
|
|
21
|
-
|
|
22
|
-
faster_graph_could_be_isomorphic
|
|
23
|
-
|
|
22
|
+
def faster_could_be_isomorphic(G1: Graph[_Node], G2: Graph[_Node]) -> bool: ...
|
|
23
|
+
@deprecated(
|
|
24
|
+
"`faster_graph_could_be_isomorphic` is a deprecated alias for `faster_could_be_isomorphic`. "
|
|
25
|
+
"Use `faster_could_be_isomorphic` instead."
|
|
26
|
+
)
|
|
27
|
+
def faster_graph_could_be_isomorphic(G1: Graph[_Node], G2: Graph[_Node]) -> bool: ...
|
|
24
28
|
@_dispatchable
|
|
25
29
|
def is_isomorphic(
|
|
26
30
|
G1: Graph[_Node],
|
|
27
31
|
G2: Graph[_Node],
|
|
28
32
|
node_match: Callable[..., Incomplete] | None = None,
|
|
29
33
|
edge_match: Callable[..., Incomplete] | None = None,
|
|
30
|
-
): ...
|
|
34
|
+
) -> bool: ...
|
package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/matchhelpers.pyi
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from types import FunctionType
|
|
2
3
|
|
|
3
4
|
from networkx.utils.backends import _dispatchable
|
|
4
5
|
|
|
@@ -14,6 +15,8 @@ __all__ = [
|
|
|
14
15
|
"generic_multiedge_match",
|
|
15
16
|
]
|
|
16
17
|
|
|
18
|
+
def copyfunc(f, name=None) -> FunctionType: ...
|
|
19
|
+
def allclose(x, y, rtol: float = 1.0000000000000001e-05, atol=1e-08) -> bool: ...
|
|
17
20
|
@_dispatchable
|
|
18
21
|
def categorical_node_match(attr, default): ...
|
|
19
22
|
|
|
@@ -20,9 +20,18 @@ def quotient_graph(
|
|
|
20
20
|
create_using: Graph[_Node] | None = None,
|
|
21
21
|
): ...
|
|
22
22
|
@_dispatchable
|
|
23
|
-
def contracted_nodes(
|
|
23
|
+
def contracted_nodes(
|
|
24
|
+
G: Graph[_Node], u, v, self_loops: bool = True, copy: bool = True, *, store_contraction_as: str | None = "contraction"
|
|
25
|
+
): ...
|
|
24
26
|
|
|
25
27
|
identified_nodes = contracted_nodes
|
|
26
28
|
|
|
27
29
|
@_dispatchable
|
|
28
|
-
def contracted_edge(
|
|
30
|
+
def contracted_edge(
|
|
31
|
+
G: Graph[_Node],
|
|
32
|
+
edge: tuple[Incomplete],
|
|
33
|
+
self_loops: bool = True,
|
|
34
|
+
copy: bool = True,
|
|
35
|
+
*,
|
|
36
|
+
store_contraction_as: str | None = "contraction",
|
|
37
|
+
): ...
|