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
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
from _typeshed import BytesPath, Incomplete, StrPath, Unused
|
|
2
|
+
from collections.abc import Callable, Iterable, MutableSequence, Sequence
|
|
3
|
+
from typing import ClassVar, Final, Literal, TypeVar, overload
|
|
4
|
+
from typing_extensions import TypeAlias, TypeVarTuple, Unpack
|
|
5
|
+
|
|
6
|
+
_Macro: TypeAlias = tuple[str] | tuple[str, str | None]
|
|
7
|
+
_StrPathT = TypeVar("_StrPathT", bound=StrPath)
|
|
8
|
+
_BytesPathT = TypeVar("_BytesPathT", bound=BytesPath)
|
|
9
|
+
_Ts = TypeVarTuple("_Ts")
|
|
10
|
+
|
|
11
|
+
class Compiler:
|
|
12
|
+
compiler_type: ClassVar[str]
|
|
13
|
+
executables: ClassVar[dict[str, Incomplete]]
|
|
14
|
+
|
|
15
|
+
# Subclasses that rely on the standard filename generation methods
|
|
16
|
+
# implemented below should override these
|
|
17
|
+
src_extensions: ClassVar[list[str] | None]
|
|
18
|
+
obj_extension: ClassVar[str | None]
|
|
19
|
+
static_lib_extension: ClassVar[str | None]
|
|
20
|
+
shared_lib_extension: ClassVar[str | None]
|
|
21
|
+
static_lib_format: ClassVar[str | None]
|
|
22
|
+
shared_lib_format: ClassVar[str | None]
|
|
23
|
+
exe_extension: ClassVar[str | None]
|
|
24
|
+
|
|
25
|
+
language_map: ClassVar[dict[str, str]]
|
|
26
|
+
language_order: ClassVar[list[str]]
|
|
27
|
+
dry_run: bool
|
|
28
|
+
force: bool
|
|
29
|
+
verbose: bool
|
|
30
|
+
output_dir: str | None
|
|
31
|
+
macros: list[_Macro]
|
|
32
|
+
include_dirs: list[str]
|
|
33
|
+
libraries: list[str]
|
|
34
|
+
library_dirs: list[str]
|
|
35
|
+
runtime_library_dirs: list[str]
|
|
36
|
+
objects: list[str]
|
|
37
|
+
|
|
38
|
+
SHARED_OBJECT: Final = "shared_object"
|
|
39
|
+
SHARED_LIBRARY: Final = "shared_library"
|
|
40
|
+
EXECUTABLE: Final = "executable"
|
|
41
|
+
def __init__(self, verbose: bool = False, dry_run: bool = False, force: bool = False) -> None: ...
|
|
42
|
+
def add_include_dir(self, dir: str) -> None: ...
|
|
43
|
+
def set_include_dirs(self, dirs: list[str]) -> None: ...
|
|
44
|
+
def add_library(self, libname: str) -> None: ...
|
|
45
|
+
def set_libraries(self, libnames: list[str]) -> None: ...
|
|
46
|
+
def add_library_dir(self, dir: str) -> None: ...
|
|
47
|
+
def set_library_dirs(self, dirs: list[str]) -> None: ...
|
|
48
|
+
def add_runtime_library_dir(self, dir: str) -> None: ...
|
|
49
|
+
def set_runtime_library_dirs(self, dirs: list[str]) -> None: ...
|
|
50
|
+
def define_macro(self, name: str, value: str | None = None) -> None: ...
|
|
51
|
+
def undefine_macro(self, name: str) -> None: ...
|
|
52
|
+
def add_link_object(self, object: str) -> None: ...
|
|
53
|
+
def set_link_objects(self, objects: list[str]) -> None: ...
|
|
54
|
+
def detect_language(self, sources: str | list[str]) -> str | None: ...
|
|
55
|
+
def find_library_file(self, dirs: Iterable[str], lib: str, debug: bool = False) -> str | None: ...
|
|
56
|
+
def has_function(
|
|
57
|
+
self,
|
|
58
|
+
funcname: str,
|
|
59
|
+
includes: Iterable[str] | None = None,
|
|
60
|
+
include_dirs: list[str] | tuple[str, ...] | None = None,
|
|
61
|
+
libraries: list[str] | None = None,
|
|
62
|
+
library_dirs: list[str] | tuple[str, ...] | None = None,
|
|
63
|
+
) -> bool: ...
|
|
64
|
+
def library_dir_option(self, dir: str) -> str: ...
|
|
65
|
+
def library_option(self, lib: str) -> str: ...
|
|
66
|
+
def runtime_library_dir_option(self, dir: str) -> str: ...
|
|
67
|
+
def set_executables(self, **kwargs: str) -> None: ...
|
|
68
|
+
def set_executable(self, key: str, value) -> None: ...
|
|
69
|
+
def compile(
|
|
70
|
+
self,
|
|
71
|
+
sources: Sequence[StrPath],
|
|
72
|
+
output_dir: str | None = None,
|
|
73
|
+
macros: list[_Macro] | None = None,
|
|
74
|
+
include_dirs: list[str] | tuple[str, ...] | None = None,
|
|
75
|
+
debug: bool = False,
|
|
76
|
+
extra_preargs: list[str] | None = None,
|
|
77
|
+
extra_postargs: list[str] | None = None,
|
|
78
|
+
depends: list[str] | tuple[str, ...] | None = None,
|
|
79
|
+
) -> list[str]: ...
|
|
80
|
+
def create_static_lib(
|
|
81
|
+
self,
|
|
82
|
+
objects: list[str] | tuple[str, ...],
|
|
83
|
+
output_libname: str,
|
|
84
|
+
output_dir: str | None = None,
|
|
85
|
+
debug: bool = False,
|
|
86
|
+
target_lang: str | None = None,
|
|
87
|
+
) -> None: ...
|
|
88
|
+
def link(
|
|
89
|
+
self,
|
|
90
|
+
target_desc: str,
|
|
91
|
+
objects: list[str] | tuple[str, ...],
|
|
92
|
+
output_filename: str,
|
|
93
|
+
output_dir: str | None = None,
|
|
94
|
+
libraries: list[str] | tuple[str, ...] | None = None,
|
|
95
|
+
library_dirs: list[str] | tuple[str, ...] | None = None,
|
|
96
|
+
runtime_library_dirs: list[str] | tuple[str, ...] | None = None,
|
|
97
|
+
export_symbols: Iterable[str] | None = None,
|
|
98
|
+
debug: bool = False,
|
|
99
|
+
extra_preargs: list[str] | None = None,
|
|
100
|
+
extra_postargs: list[str] | None = None,
|
|
101
|
+
build_temp: StrPath | None = None,
|
|
102
|
+
target_lang: str | None = None,
|
|
103
|
+
) -> None: ...
|
|
104
|
+
def link_executable(
|
|
105
|
+
self,
|
|
106
|
+
objects: list[str] | tuple[str, ...],
|
|
107
|
+
output_progname: str,
|
|
108
|
+
output_dir: str | None = None,
|
|
109
|
+
libraries: list[str] | tuple[str, ...] | None = None,
|
|
110
|
+
library_dirs: list[str] | tuple[str, ...] | None = None,
|
|
111
|
+
runtime_library_dirs: list[str] | tuple[str, ...] | None = None,
|
|
112
|
+
debug: bool = False,
|
|
113
|
+
extra_preargs: list[str] | None = None,
|
|
114
|
+
extra_postargs: list[str] | None = None,
|
|
115
|
+
target_lang: str | None = None,
|
|
116
|
+
) -> None: ...
|
|
117
|
+
def link_shared_lib(
|
|
118
|
+
self,
|
|
119
|
+
objects: list[str] | tuple[str, ...],
|
|
120
|
+
output_libname: str,
|
|
121
|
+
output_dir: str | None = None,
|
|
122
|
+
libraries: list[str] | tuple[str, ...] | None = None,
|
|
123
|
+
library_dirs: list[str] | tuple[str, ...] | None = None,
|
|
124
|
+
runtime_library_dirs: list[str] | tuple[str, ...] | None = None,
|
|
125
|
+
export_symbols: Iterable[str] | None = None,
|
|
126
|
+
debug: bool = False,
|
|
127
|
+
extra_preargs: list[str] | None = None,
|
|
128
|
+
extra_postargs: list[str] | None = None,
|
|
129
|
+
build_temp: StrPath | None = None,
|
|
130
|
+
target_lang: str | None = None,
|
|
131
|
+
) -> None: ...
|
|
132
|
+
def link_shared_object(
|
|
133
|
+
self,
|
|
134
|
+
objects: list[str] | tuple[str, ...],
|
|
135
|
+
output_filename: str,
|
|
136
|
+
output_dir: str | None = None,
|
|
137
|
+
libraries: list[str] | tuple[str, ...] | None = None,
|
|
138
|
+
library_dirs: list[str] | tuple[str, ...] | None = None,
|
|
139
|
+
runtime_library_dirs: list[str] | tuple[str, ...] | None = None,
|
|
140
|
+
export_symbols: Iterable[str] | None = None,
|
|
141
|
+
debug: bool = False,
|
|
142
|
+
extra_preargs: list[str] | None = None,
|
|
143
|
+
extra_postargs: list[str] | None = None,
|
|
144
|
+
build_temp: StrPath | None = None,
|
|
145
|
+
target_lang: str | None = None,
|
|
146
|
+
) -> None: ...
|
|
147
|
+
def preprocess(
|
|
148
|
+
self,
|
|
149
|
+
source: StrPath,
|
|
150
|
+
output_file: StrPath | None = None,
|
|
151
|
+
macros: list[_Macro] | None = None,
|
|
152
|
+
include_dirs: list[str] | tuple[str, ...] | None = None,
|
|
153
|
+
extra_preargs: list[str] | None = None,
|
|
154
|
+
extra_postargs: Iterable[str] | None = None,
|
|
155
|
+
) -> None: ...
|
|
156
|
+
@overload
|
|
157
|
+
def executable_filename(self, basename: str, strip_dir: Literal[False] = False, output_dir: StrPath = "") -> str: ...
|
|
158
|
+
@overload
|
|
159
|
+
def executable_filename(self, basename: StrPath, strip_dir: Literal[True], output_dir: StrPath = "") -> str: ...
|
|
160
|
+
def library_filename(
|
|
161
|
+
self, libname: str, lib_type: str = "static", strip_dir: bool = False, output_dir: StrPath = ""
|
|
162
|
+
) -> str: ...
|
|
163
|
+
@property
|
|
164
|
+
def out_extensions(self) -> dict[str, str]: ...
|
|
165
|
+
def object_filenames(
|
|
166
|
+
self, source_filenames: Iterable[StrPath], strip_dir: bool = False, output_dir: StrPath | None = ""
|
|
167
|
+
) -> list[str]: ...
|
|
168
|
+
@overload
|
|
169
|
+
def shared_object_filename(self, basename: str, strip_dir: Literal[False] = False, output_dir: StrPath = "") -> str: ...
|
|
170
|
+
@overload
|
|
171
|
+
def shared_object_filename(self, basename: StrPath, strip_dir: Literal[True], output_dir: StrPath = "") -> str: ...
|
|
172
|
+
def execute(
|
|
173
|
+
self, func: Callable[[Unpack[_Ts]], Unused], args: tuple[Unpack[_Ts]], msg: str | None = None, level: int = 1
|
|
174
|
+
) -> None: ...
|
|
175
|
+
def spawn(self, cmd: MutableSequence[bytes | StrPath]) -> None: ...
|
|
176
|
+
def mkpath(self, name: str, mode: int = 0o777) -> None: ...
|
|
177
|
+
@overload
|
|
178
|
+
def move_file(self, src: StrPath, dst: _StrPathT) -> _StrPathT | str: ...
|
|
179
|
+
@overload
|
|
180
|
+
def move_file(self, src: BytesPath, dst: _BytesPathT) -> _BytesPathT | bytes: ...
|
|
181
|
+
def announce(self, msg: str, level: int = 1) -> None: ...
|
|
182
|
+
def warn(self, msg: str) -> None: ...
|
|
183
|
+
def debug_print(self, msg: str) -> None: ...
|
|
184
|
+
|
|
185
|
+
def get_default_compiler(osname: str | None = None, platform: str | None = None) -> str: ...
|
|
186
|
+
|
|
187
|
+
compiler_class: dict[str, tuple[str, str, str]]
|
|
188
|
+
|
|
189
|
+
def show_compilers() -> None: ...
|
|
190
|
+
def new_compiler(
|
|
191
|
+
plat: str | None = None, compiler: str | None = None, verbose: bool = False, dry_run: bool = False, force: bool = False
|
|
192
|
+
) -> Compiler: ...
|
|
193
|
+
def gen_preprocess_options(macros: Iterable[_Macro], include_dirs: Iterable[str]) -> list[str]: ...
|
|
194
|
+
def gen_lib_options(
|
|
195
|
+
compiler: Compiler, library_dirs: Iterable[str], runtime_library_dirs: Iterable[str], libraries: Iterable[str]
|
|
196
|
+
) -> list[str]: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from typing import ClassVar, Final
|
|
3
|
+
|
|
4
|
+
from . import base
|
|
5
|
+
|
|
6
|
+
PLAT_SPEC_TO_RUNTIME: Final[dict[str, str]]
|
|
7
|
+
|
|
8
|
+
class Compiler(base.Compiler):
|
|
9
|
+
compiler_type: ClassVar[str]
|
|
10
|
+
executables: ClassVar[dict[str, Incomplete]]
|
|
11
|
+
src_extensions: ClassVar[list[str]]
|
|
12
|
+
res_extension: ClassVar[str]
|
|
13
|
+
obj_extension: ClassVar[str]
|
|
14
|
+
static_lib_extension: ClassVar[str]
|
|
15
|
+
shared_lib_extension: ClassVar[str]
|
|
16
|
+
# This was accidentally removed upstream and should be back pretty soon.
|
|
17
|
+
# shared_lib_format: ClassVar[str]
|
|
18
|
+
# static_lib_format = shared_lib_format
|
|
19
|
+
static_lib_format: ClassVar[str]
|
|
20
|
+
exe_extension: ClassVar[str]
|
|
21
|
+
initialized: bool
|
|
22
|
+
def initialize(self, plat_name: str | None = None) -> None: ...
|
|
23
|
+
@property
|
|
24
|
+
def out_extensions(self) -> dict[str, str]: ...
|
|
@@ -36,26 +36,29 @@ class DistributionMetadata:
|
|
|
36
36
|
def get_name(self) -> str: ...
|
|
37
37
|
def get_version(self) -> str: ...
|
|
38
38
|
def get_fullname(self) -> str: ...
|
|
39
|
-
def get_author(self) -> str: ...
|
|
40
|
-
def get_author_email(self) -> str: ...
|
|
41
|
-
def get_maintainer(self) -> str: ...
|
|
42
|
-
def get_maintainer_email(self) -> str: ...
|
|
43
|
-
def get_contact(self) -> str: ...
|
|
44
|
-
def get_contact_email(self) -> str: ...
|
|
45
|
-
def get_url(self) -> str: ...
|
|
46
|
-
def get_license(self) -> str: ...
|
|
47
|
-
|
|
48
|
-
def get_description(self) -> str: ...
|
|
49
|
-
def get_long_description(self) -> str: ...
|
|
39
|
+
def get_author(self) -> str | None: ...
|
|
40
|
+
def get_author_email(self) -> str | None: ...
|
|
41
|
+
def get_maintainer(self) -> str | None: ...
|
|
42
|
+
def get_maintainer_email(self) -> str | None: ...
|
|
43
|
+
def get_contact(self) -> str | None: ...
|
|
44
|
+
def get_contact_email(self) -> str | None: ...
|
|
45
|
+
def get_url(self) -> str | None: ...
|
|
46
|
+
def get_license(self) -> str | None: ...
|
|
47
|
+
get_licence = get_license
|
|
48
|
+
def get_description(self) -> str | None: ...
|
|
49
|
+
def get_long_description(self) -> str | None: ...
|
|
50
50
|
def get_keywords(self) -> str | list[str]: ...
|
|
51
|
-
def
|
|
51
|
+
def set_keywords(self, value: str | Iterable[str]) -> None: ...
|
|
52
|
+
def get_platforms(self) -> str | list[str] | None: ...
|
|
53
|
+
def set_platforms(self, value: str | Iterable[str]) -> None: ...
|
|
52
54
|
def get_classifiers(self) -> str | list[str]: ...
|
|
53
|
-
def
|
|
54
|
-
def
|
|
55
|
+
def set_classifiers(self, value): ...
|
|
56
|
+
def get_download_url(self) -> str | None: ...
|
|
57
|
+
def get_requires(self) -> str | list[str]: ...
|
|
55
58
|
def set_requires(self, value: Iterable[str]) -> None: ...
|
|
56
|
-
def get_provides(self) -> list[str]: ...
|
|
59
|
+
def get_provides(self) -> str | list[str]: ...
|
|
57
60
|
def set_provides(self, value: Iterable[str]) -> None: ...
|
|
58
|
-
def get_obsoletes(self) -> list[str]: ...
|
|
61
|
+
def get_obsoletes(self) -> str | list[str]: ...
|
|
59
62
|
def set_obsoletes(self, value: Iterable[str]) -> None: ...
|
|
60
63
|
|
|
61
64
|
class Distribution:
|
|
@@ -72,8 +75,8 @@ class Distribution:
|
|
|
72
75
|
verbose: bool
|
|
73
76
|
dry_run: bool
|
|
74
77
|
help: bool
|
|
75
|
-
command_packages: list[str] | None
|
|
76
|
-
script_name:
|
|
78
|
+
command_packages: str | list[str] | None
|
|
79
|
+
script_name: StrPath | None
|
|
77
80
|
script_args: list[str] | None
|
|
78
81
|
command_options: dict[str, dict[str, tuple[str, str]]]
|
|
79
82
|
dist_files: list[tuple[str, str, str]]
|
|
@@ -108,9 +111,9 @@ class Distribution:
|
|
|
108
111
|
# NOTE: Because this is private setuptools implementation and we don't re-expose all commands here,
|
|
109
112
|
# we're not overloading each and every command possibility.
|
|
110
113
|
@overload
|
|
111
|
-
def get_command_obj(self, command: str, create: Literal[
|
|
114
|
+
def get_command_obj(self, command: str, create: Literal[True] = True) -> Command: ...
|
|
112
115
|
@overload
|
|
113
|
-
def get_command_obj(self, command: str, create: Literal[
|
|
116
|
+
def get_command_obj(self, command: str, create: Literal[False]) -> Command | None: ...
|
|
114
117
|
def get_command_class(self, command: str) -> type[Command]: ...
|
|
115
118
|
@overload
|
|
116
119
|
def reinitialize_command(self, command: str, reinit_subcommands: bool = False) -> Command: ...
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
from .compilers.C.errors import (
|
|
2
|
+
CompileError as CompileError,
|
|
3
|
+
Error as _Error,
|
|
4
|
+
LibError as LibError,
|
|
5
|
+
LinkError as LinkError,
|
|
6
|
+
PreprocessError as PreprocessError,
|
|
7
|
+
UnknownFileType as _UnknownFileType,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
CCompilerError = _Error
|
|
11
|
+
UnknownFileError = _UnknownFileType
|
|
12
|
+
|
|
1
13
|
class DistutilsError(Exception): ...
|
|
2
14
|
class DistutilsModuleError(DistutilsError): ...
|
|
3
15
|
class DistutilsClassError(DistutilsError): ...
|
|
@@ -11,9 +23,3 @@ class DistutilsExecError(DistutilsError): ...
|
|
|
11
23
|
class DistutilsInternalError(DistutilsError): ...
|
|
12
24
|
class DistutilsTemplateError(DistutilsError): ...
|
|
13
25
|
class DistutilsByteCompileError(DistutilsError): ...
|
|
14
|
-
class CCompilerError(Exception): ...
|
|
15
|
-
class PreprocessError(CCompilerError): ...
|
|
16
|
-
class CompileError(CCompilerError): ...
|
|
17
|
-
class LibError(CCompilerError): ...
|
|
18
|
-
class LinkError(CCompilerError): ...
|
|
19
|
-
class UnknownFileError(CCompilerError): ...
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from _typeshed import StrPath, Unused
|
|
1
2
|
from collections.abc import Iterable
|
|
2
3
|
from re import Pattern
|
|
3
4
|
from typing import Literal, overload
|
|
@@ -6,10 +7,10 @@ from typing import Literal, overload
|
|
|
6
7
|
class FileList:
|
|
7
8
|
allfiles: Iterable[str] | None
|
|
8
9
|
files: list[str]
|
|
9
|
-
def __init__(self, warn:
|
|
10
|
+
def __init__(self, warn: Unused = None, debug_print: Unused = None) -> None: ...
|
|
10
11
|
def set_allfiles(self, allfiles: Iterable[str]) -> None: ...
|
|
11
|
-
def findall(self, dir:
|
|
12
|
-
def debug_print(self, msg:
|
|
12
|
+
def findall(self, dir: StrPath = ...) -> None: ...
|
|
13
|
+
def debug_print(self, msg: object) -> None: ...
|
|
13
14
|
def append(self, item: str) -> None: ...
|
|
14
15
|
def extend(self, items: Iterable[str]) -> None: ...
|
|
15
16
|
def sort(self) -> None: ...
|
|
@@ -17,21 +18,21 @@ class FileList:
|
|
|
17
18
|
def process_template_line(self, line: str) -> None: ...
|
|
18
19
|
@overload
|
|
19
20
|
def include_pattern(
|
|
20
|
-
self, pattern: str, anchor: bool = True, prefix: str | None = None, is_regex: Literal[
|
|
21
|
+
self, pattern: str, anchor: bool = True, prefix: str | None = None, is_regex: Literal[False] = False
|
|
21
22
|
) -> bool: ...
|
|
22
23
|
@overload
|
|
23
|
-
def include_pattern(self, pattern: str | Pattern[str], *, is_regex: Literal[True, 1]) -> bool: ...
|
|
24
|
-
@overload
|
|
25
24
|
def include_pattern(
|
|
26
|
-
self, pattern: str | Pattern[str], anchor: bool = True, prefix: str | None = None, is_regex:
|
|
25
|
+
self, pattern: str | Pattern[str], anchor: bool = True, prefix: str | None = None, *, is_regex: Literal[True]
|
|
27
26
|
) -> bool: ...
|
|
28
27
|
@overload
|
|
28
|
+
def include_pattern(self, pattern: str | Pattern[str], anchor: bool, prefix: str | None, is_regex: Literal[True]) -> bool: ...
|
|
29
|
+
@overload
|
|
29
30
|
def exclude_pattern(
|
|
30
|
-
self, pattern: str, anchor: bool = True, prefix: str | None = None, is_regex: Literal[
|
|
31
|
+
self, pattern: str, anchor: bool = True, prefix: str | None = None, is_regex: Literal[False] = False
|
|
31
32
|
) -> bool: ...
|
|
32
33
|
@overload
|
|
33
|
-
def exclude_pattern(self, pattern: str | Pattern[str], *, is_regex: Literal[True, 1]) -> bool: ...
|
|
34
|
-
@overload
|
|
35
34
|
def exclude_pattern(
|
|
36
|
-
self, pattern: str | Pattern[str], anchor: bool = True, prefix: str | None = None, is_regex:
|
|
35
|
+
self, pattern: str | Pattern[str], anchor: bool = True, prefix: str | None = None, *, is_regex: Literal[True]
|
|
37
36
|
) -> bool: ...
|
|
37
|
+
@overload
|
|
38
|
+
def exclude_pattern(self, pattern: str | Pattern[str], anchor: bool, prefix: str | None, is_regex: Literal[True]) -> bool: ...
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
from _typeshed import StrPath
|
|
1
2
|
from collections.abc import MutableSequence
|
|
2
3
|
from subprocess import _ENV
|
|
3
4
|
|
|
4
5
|
def spawn(
|
|
5
|
-
cmd: MutableSequence[
|
|
6
|
+
cmd: MutableSequence[bytes | StrPath],
|
|
7
|
+
search_path: bool = True,
|
|
8
|
+
verbose: bool = False,
|
|
9
|
+
dry_run: bool = False,
|
|
10
|
+
env: _ENV | None = None,
|
|
6
11
|
) -> None: ...
|
|
7
12
|
def find_executable(executable: str, path: str | None = None) -> str | None: ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from _typeshed import StrPath, Unused
|
|
2
|
-
from collections.abc import Callable, Mapping
|
|
3
|
-
from typing import Literal
|
|
1
|
+
from _typeshed import GenericPath, StrPath, Unused
|
|
2
|
+
from collections.abc import Callable, Iterable, Mapping
|
|
3
|
+
from typing import AnyStr, Literal
|
|
4
4
|
from typing_extensions import TypeVarTuple, Unpack
|
|
5
5
|
|
|
6
6
|
_Ts = TypeVarTuple("_Ts")
|
|
@@ -11,9 +11,9 @@ def get_macosx_target_ver_from_syscfg(): ...
|
|
|
11
11
|
def get_macosx_target_ver(): ...
|
|
12
12
|
def split_version(s: str) -> list[int]: ...
|
|
13
13
|
def convert_path(pathname: StrPath) -> str: ...
|
|
14
|
-
def change_root(new_root:
|
|
14
|
+
def change_root(new_root: GenericPath[AnyStr], pathname: GenericPath[AnyStr]) -> AnyStr: ...
|
|
15
15
|
def check_environ() -> None: ...
|
|
16
|
-
def subst_vars(s: str, local_vars: Mapping[str,
|
|
16
|
+
def subst_vars(s: str, local_vars: Mapping[str, object]) -> str: ...
|
|
17
17
|
def grok_environment_error(exc: object, prefix: str = "error: ") -> str: ...
|
|
18
18
|
def split_quoted(s: str) -> list[str]: ...
|
|
19
19
|
def execute(
|
|
@@ -25,7 +25,7 @@ def execute(
|
|
|
25
25
|
) -> None: ...
|
|
26
26
|
def strtobool(val: str) -> Literal[0, 1]: ...
|
|
27
27
|
def byte_compile(
|
|
28
|
-
py_files:
|
|
28
|
+
py_files: Iterable[str],
|
|
29
29
|
optimize: int = 0,
|
|
30
30
|
force: bool = False,
|
|
31
31
|
prefix: str | None = None,
|
|
@@ -4,7 +4,6 @@ from typing import ClassVar, Final, Literal
|
|
|
4
4
|
|
|
5
5
|
from setuptools import Command
|
|
6
6
|
|
|
7
|
-
def safe_name(name: str) -> str: ...
|
|
8
7
|
def safe_version(version: str) -> str: ...
|
|
9
8
|
|
|
10
9
|
setuptools_major_version: Final[int]
|
|
@@ -15,7 +14,6 @@ def python_tag() -> str: ...
|
|
|
15
14
|
def get_platform(archive_root: str | None) -> str: ...
|
|
16
15
|
def get_flag(var: str, fallback: bool, expected: bool = True, warn: bool = True) -> bool: ...
|
|
17
16
|
def get_abi_tag() -> str | None: ...
|
|
18
|
-
def safer_name(name: str) -> str: ...
|
|
19
17
|
def safer_version(version: str) -> str: ...
|
|
20
18
|
|
|
21
19
|
class bdist_wheel(Command):
|
|
@@ -57,4 +57,4 @@ class JSONEncoder:
|
|
|
57
57
|
class JSONEncoderForHTML(JSONEncoder): ...
|
|
58
58
|
|
|
59
59
|
def encode_basestring(s: str | bytes, _PY3: Literal[True] = ..., _q: str = ...) -> str: ...
|
|
60
|
-
def encode_basestring_ascii(s: str | bytes,
|
|
60
|
+
def encode_basestring_ascii(s: str | bytes, /) -> str: ...
|
|
@@ -4,4 +4,7 @@ requires = ["types-requests"]
|
|
|
4
4
|
|
|
5
5
|
[tool.stubtest]
|
|
6
6
|
extras = ["slack", "telegram"]
|
|
7
|
-
|
|
7
|
+
# Add `"tensorflow"` to this list when there's a tensorflow release supporting
|
|
8
|
+
# Python 3.13: https://github.com/tensorflow/tensorflow/issues/78774.
|
|
9
|
+
# Also remove tqdm.keras from @tests/stubtest_allowlist.txt.
|
|
10
|
+
stubtest_requirements = ["dask", "pandas", "rich"]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
from _typeshed import
|
|
2
|
-
from
|
|
1
|
+
from _typeshed import SupportsWrite
|
|
2
|
+
from asyncio import Future
|
|
3
|
+
from collections.abc import AsyncIterator, Awaitable, Callable, Iterable, Iterator, Mapping
|
|
3
4
|
from typing import NoReturn, TypeVar, overload
|
|
4
5
|
from typing_extensions import Self
|
|
5
6
|
|
|
@@ -48,7 +49,7 @@ class tqdm_asyncio(std_tqdm[_T]):
|
|
|
48
49
|
nrows: int | None = ...,
|
|
49
50
|
colour: str | None = ...,
|
|
50
51
|
delay: float | None = ...,
|
|
51
|
-
) ->
|
|
52
|
+
) -> Iterator[Future[_T]]: ...
|
|
52
53
|
@classmethod
|
|
53
54
|
async def gather(
|
|
54
55
|
cls,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import contextlib
|
|
2
|
-
from _typeshed import Incomplete, SupportsWrite
|
|
2
|
+
from _typeshed import Incomplete, SupportsRead, SupportsWrite
|
|
3
3
|
from collections.abc import Callable, Iterable, Iterator, Mapping, MutableMapping
|
|
4
4
|
from types import TracebackType
|
|
5
5
|
from typing import Any, ClassVar, Generic, Literal, NoReturn, TypeVar, overload
|
|
@@ -30,6 +30,7 @@ class TqdmDeprecationWarning(TqdmWarning, DeprecationWarning): ...
|
|
|
30
30
|
class TqdmMonitorWarning(TqdmWarning, RuntimeWarning): ...
|
|
31
31
|
|
|
32
32
|
_T = TypeVar("_T")
|
|
33
|
+
_U = TypeVar("_U")
|
|
33
34
|
|
|
34
35
|
class tqdm(Comparable, Generic[_T]):
|
|
35
36
|
monitor_interval: ClassVar[int]
|
|
@@ -222,10 +223,16 @@ class tqdm(Comparable, Generic[_T]):
|
|
|
222
223
|
@property
|
|
223
224
|
def format_dict(self) -> MutableMapping[str, Any]: ...
|
|
224
225
|
def display(self, msg: str | None = None, pos: int | None = None) -> None: ...
|
|
226
|
+
@overload
|
|
227
|
+
@classmethod
|
|
228
|
+
def wrapattr(
|
|
229
|
+
cls, stream: SupportsRead[_U], method: Literal["read"], total: float | None = None, bytes: bool = True, **tqdm_kwargs
|
|
230
|
+
) -> contextlib._GeneratorContextManager[SupportsRead[_U]]: ...
|
|
231
|
+
@overload
|
|
225
232
|
@classmethod
|
|
226
233
|
def wrapattr(
|
|
227
|
-
cls, stream, method: Literal["
|
|
228
|
-
) -> contextlib._GeneratorContextManager[
|
|
234
|
+
cls, stream: SupportsWrite[_U], method: Literal["write"], total: float | None = None, bytes: bool = True, **tqdm_kwargs
|
|
235
|
+
) -> contextlib._GeneratorContextManager[SupportsWrite[_U]]: ...
|
|
229
236
|
|
|
230
237
|
@overload
|
|
231
238
|
def trange(
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
version = "1.10.*"
|
|
2
2
|
upstream_repository = "https://github.com/grantjenks/py-tree-sitter-languages"
|
|
3
3
|
requires = ["tree-sitter>=0.20.3"]
|
|
4
|
+
|
|
5
|
+
[tool.stubtest]
|
|
6
|
+
# This package is unmaintained and doesn't support Python 3.13.
|
|
7
|
+
# See https://github.com/grantjenks/py-tree-sitter-languages/issues/75 and
|
|
8
|
+
# https://github.com/grantjenks/py-tree-sitter-languages/blob/main/README.rst#status
|
|
9
|
+
skip = true
|
|
@@ -8,7 +8,14 @@ class Name:
|
|
|
8
8
|
additional: Incomplete
|
|
9
9
|
prefix: Incomplete
|
|
10
10
|
suffix: Incomplete
|
|
11
|
-
def __init__(
|
|
11
|
+
def __init__(
|
|
12
|
+
self,
|
|
13
|
+
family: str | list[str] = "",
|
|
14
|
+
given: str | list[str] = "",
|
|
15
|
+
additional: str | list[str] = "",
|
|
16
|
+
prefix: str | list[str] = "",
|
|
17
|
+
suffix: str | list[str] = "",
|
|
18
|
+
) -> None: ...
|
|
12
19
|
@staticmethod
|
|
13
20
|
def toString(val): ...
|
|
14
21
|
def __eq__(self, other): ...
|
|
@@ -23,13 +30,13 @@ class Address:
|
|
|
23
30
|
country: Incomplete
|
|
24
31
|
def __init__(
|
|
25
32
|
self,
|
|
26
|
-
street: str = "",
|
|
27
|
-
city: str = "",
|
|
28
|
-
region: str = "",
|
|
29
|
-
code: str = "",
|
|
30
|
-
country: str = "",
|
|
31
|
-
box: str = "",
|
|
32
|
-
extended: str = "",
|
|
33
|
+
street: str | list[str] = "",
|
|
34
|
+
city: str | list[str] = "",
|
|
35
|
+
region: str | list[str] = "",
|
|
36
|
+
code: str | list[str] = "",
|
|
37
|
+
country: str | list[str] = "",
|
|
38
|
+
box: str | list[str] = "",
|
|
39
|
+
extended: str | list[str] = "",
|
|
33
40
|
) -> None: ...
|
|
34
41
|
@staticmethod
|
|
35
42
|
def toString(val, join_char: str = "\n"): ...
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from collections.abc import Callable
|
|
2
|
+
from typing import Final
|
|
3
|
+
from typing_extensions import LiteralString, Unpack
|
|
4
|
+
|
|
5
|
+
from .watch import Watch
|
|
6
|
+
|
|
7
|
+
__version__: Final[LiteralString]
|
|
8
|
+
|
|
9
|
+
watch: Watch
|
|
10
|
+
unwatch: Final[Callable[[Unpack[tuple[object, ...]]], None]]
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import threading
|
|
2
|
+
from _typeshed import SupportsWrite, TraceFunction
|
|
3
|
+
from collections.abc import Callable
|
|
4
|
+
from pdb import Pdb
|
|
5
|
+
from types import FrameType
|
|
6
|
+
from typing import Any, Literal, Protocol, TypeVar
|
|
7
|
+
from typing_extensions import TypeAlias
|
|
8
|
+
|
|
9
|
+
from .watch_element import WatchElement
|
|
10
|
+
|
|
11
|
+
_T = TypeVar("_T")
|
|
12
|
+
|
|
13
|
+
# Alias used for fields that must always be valid identifiers
|
|
14
|
+
# A string `x` counts as a valid identifier if both the following are True
|
|
15
|
+
# (1) `x.isidentifier()` evaluates to `True`
|
|
16
|
+
# (2) `keyword.iskeyword(x)` evaluates to `False`
|
|
17
|
+
_Identifier: TypeAlias = str
|
|
18
|
+
|
|
19
|
+
class Watch:
|
|
20
|
+
# User-defined callbacks passed to `__call__()` or `config()` set as instance variables have arguments of type `Any` to be
|
|
21
|
+
# compatible with more precisely-annotated signatures.
|
|
22
|
+
|
|
23
|
+
custom_printer: Callable[[Any], None] | None
|
|
24
|
+
enable: bool
|
|
25
|
+
file: str | SupportsWrite[str] | None
|
|
26
|
+
pdb: Pdb | None
|
|
27
|
+
pdb_enable: bool
|
|
28
|
+
set_lock: threading.Lock
|
|
29
|
+
stack_limit: int | None
|
|
30
|
+
tracefunc_lock: threading.Lock
|
|
31
|
+
tracefunc_stack: list[TraceFunction | None]
|
|
32
|
+
watch_list: list[WatchElement]
|
|
33
|
+
|
|
34
|
+
def __init__(self) -> None: ...
|
|
35
|
+
def __call__(
|
|
36
|
+
self,
|
|
37
|
+
*args: object,
|
|
38
|
+
alias: str = ...,
|
|
39
|
+
callback: Callable[[FrameType, WatchElement, tuple[str, str, int | None]], None] = ...,
|
|
40
|
+
cmp: Callable[[Any, Any], bool] = ..., # User-defined comparison callback; compares 2 arguments of any type
|
|
41
|
+
copy: Callable[[_T], _T] = ...,
|
|
42
|
+
# User-defined printing callback; writes a string representation of any object to a stream
|
|
43
|
+
custom_printer: Callable[[Any], None] = ...,
|
|
44
|
+
deepcopy: bool = False,
|
|
45
|
+
file: str | SupportsWrite[str] = ...,
|
|
46
|
+
stack_limit: int | None = 5,
|
|
47
|
+
track: Literal["object", "variable"] = ...,
|
|
48
|
+
when: Callable[[Any], bool] = ..., # User-defined callback for conditional watchpoints
|
|
49
|
+
) -> None: ...
|
|
50
|
+
def config(
|
|
51
|
+
self,
|
|
52
|
+
*,
|
|
53
|
+
callback: Callable[[FrameType, WatchElement, tuple[str, str, int | None]], None] = ...,
|
|
54
|
+
pdb: Literal[True] = ...,
|
|
55
|
+
file: str | SupportsWrite[str] = ...,
|
|
56
|
+
stack_limit: int | None = 5,
|
|
57
|
+
custom_printer: Callable[[Any], None] = ..., # User-defined printing callback
|
|
58
|
+
) -> None: ...
|
|
59
|
+
def install(self, func: _Identifier = "watch") -> None: ...
|
|
60
|
+
def restore(self) -> None: ...
|
|
61
|
+
def start_trace(self, frame: FrameType) -> None: ...
|
|
62
|
+
def stop_trace(self, frame: FrameType) -> None: ...
|
|
63
|
+
def tracefunc(self, frame: FrameType, event: str, arg: object) -> _TraceFunc: ...
|
|
64
|
+
def uninstall(self, func: _Identifier = "watch") -> None: ...
|
|
65
|
+
def unwatch(self, *args: object) -> None: ...
|
|
66
|
+
|
|
67
|
+
class _TraceFunc(Protocol):
|
|
68
|
+
def __call__(self, frame: FrameType, event: str, arg: object) -> _TraceFunc: ...
|