basedpyright 1.28.3 → 1.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/_hashlib.pyi +15 -2
- package/dist/typeshed-fallback/stdlib/_socket.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi +7 -4
- package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +2 -178
- package/dist/typeshed-fallback/stdlib/asyncio/base_events.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/builtins.pyi +51 -33
- package/dist/typeshed-fallback/stdlib/configparser.pyi +61 -42
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +15 -5
- package/dist/typeshed-fallback/stdlib/functools.pyi +18 -13
- package/dist/typeshed-fallback/stdlib/getopt.pyi +15 -3
- package/dist/typeshed-fallback/stdlib/hashlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/heapq.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/hmac.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/http/server.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/importlib/readers.pyi +11 -7
- package/dist/typeshed-fallback/stdlib/inspect.pyi +10 -10
- package/dist/typeshed-fallback/stdlib/logging/config.pyi +6 -1
- package/dist/typeshed-fallback/stdlib/math.pyi +33 -3
- package/dist/typeshed-fallback/stdlib/multiprocessing/connection.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/pathlib.pyi +13 -9
- package/dist/typeshed-fallback/stdlib/pkgutil.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/shutil.pyi +9 -5
- package/dist/typeshed-fallback/stdlib/socketserver.pyi +8 -8
- package/dist/typeshed-fallback/stdlib/statistics.pyi +14 -15
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +181 -162
- package/dist/typeshed-fallback/stdlib/types.pyi +27 -4
- package/dist/typeshed-fallback/stdlib/typing.pyi +10 -7
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +95 -48
- package/dist/typeshed-fallback/stdlib/unittest/case.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/xml/dom/NodeFilter.pyi +7 -4
- package/dist/typeshed-fallback/stdlib/xml/dom/__init__.pyi +84 -53
- package/dist/typeshed-fallback/stdlib/xml/dom/expatbuilder.pyi +66 -45
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +524 -193
- package/dist/typeshed-fallback/stdlib/xml/dom/pulldom.pyi +70 -55
- package/dist/typeshed-fallback/stdlib/xml/dom/xmlbuilder.pyi +20 -49
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementInclude.pyi +13 -10
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementPath.pyi +19 -12
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +83 -41
- package/dist/typeshed-fallback/stdlib/xml/sax/_exceptions.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/xml/sax/expatreader.pyi +53 -24
- package/dist/typeshed-fallback/stdlib/xml/sax/handler.pyi +48 -17
- package/dist/typeshed-fallback/stdlib/xml/sax/saxutils.pyi +24 -16
- package/dist/typeshed-fallback/stdlib/xml/sax/xmlreader.pyi +59 -56
- package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +0 -8
- package/dist/typeshed-fallback/stdlib/zipfile/_path/__init__.pyi +32 -52
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/classic.pyi +6 -1
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/sphinx.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Pygments/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Pygments/pygments/plugin.pyi +11 -3
- package/dist/typeshed-fallback/stubs/RPi.GPIO/RPi/GPIO/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/WTForms/wtforms/validators.pyi +13 -5
- package/dist/typeshed-fallback/stubs/WebOb/webob/__init__.pyi +15 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/_types.pyi +21 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/acceptparse.pyi +496 -285
- package/dist/typeshed-fallback/stubs/WebOb/webob/byterange.pyi +2 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/cachecontrol.pyi +75 -75
- package/dist/typeshed-fallback/stubs/WebOb/webob/client.pyi +2 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/compat.pyi +24 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/cookies.pyi +39 -34
- package/dist/typeshed-fallback/stubs/WebOb/webob/datetime_utils.pyi +16 -0
- package/dist/typeshed-fallback/stubs/WebOb/webob/dec.pyi +40 -40
- package/dist/typeshed-fallback/stubs/WebOb/webob/descriptors.pyi +23 -34
- package/dist/typeshed-fallback/stubs/WebOb/webob/etag.pyi +11 -18
- package/dist/typeshed-fallback/stubs/WebOb/webob/exc.pyi +70 -7
- package/dist/typeshed-fallback/stubs/WebOb/webob/headers.pyi +20 -2
- package/dist/typeshed-fallback/stubs/WebOb/webob/multidict.pyi +97 -31
- package/dist/typeshed-fallback/stubs/WebOb/webob/request.pyi +70 -79
- package/dist/typeshed-fallback/stubs/WebOb/webob/response.pyi +62 -62
- package/dist/typeshed-fallback/stubs/WebOb/webob/static.pyi +12 -9
- package/dist/typeshed-fallback/stubs/WebOb/webob/util.pyi +2 -5
- package/dist/typeshed-fallback/stubs/atheris/METADATA.toml +4 -0
- package/dist/typeshed-fallback/stubs/boltons/boltons/dictutils.pyi +1 -3
- package/dist/typeshed-fallback/stubs/boltons/boltons/tbutils.pyi +13 -13
- package/dist/typeshed-fallback/stubs/braintree/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/braintree_gateway.pyi +2 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/credit_card.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/error_codes.pyi +40 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_payment_resource.pyi +10 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_payment_resource_gateway.pyi +10 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/credit_card_numbers.pyi +1 -0
- package/dist/typeshed-fallback/stubs/braintree/braintree/test/nonces.pyi +1 -0
- package/dist/typeshed-fallback/stubs/cffi/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/cffi/_cffi_backend.pyi +8 -8
- package/dist/typeshed-fallback/stubs/cffi/cffi/recompiler.pyi +1 -0
- package/dist/typeshed-fallback/stubs/corus/METADATA.toml +4 -0
- package/dist/typeshed-fallback/stubs/dirhash/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/dirhash/dirhash/__init__.pyi +93 -0
- package/dist/typeshed-fallback/stubs/dirhash/dirhash/cli.pyi +5 -0
- package/dist/typeshed-fallback/stubs/fanstatic/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fanstatic/fanstatic/registry.pyi +8 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fonts.pyi +2 -8
- package/dist/typeshed-fallback/stubs/geopandas/geopandas/geodataframe.pyi +1 -1
- package/dist/typeshed-fallback/stubs/geopandas/geopandas/io/sql.pyi +0 -3
- package/dist/typeshed-fallback/stubs/gevent/gevent/hub.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libev/corecext.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libev/corecffi.pyi +1 -1
- package/dist/typeshed-fallback/stubs/gevent/gevent/libuv/loop.pyi +1 -1
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/METADATA.toml +0 -1
- package/dist/typeshed-fallback/stubs/greenlet/greenlet/_greenlet.pyi +5 -1
- package/dist/typeshed-fallback/stubs/hdbcli/hdbcli/dbapi.pyi +1 -1
- package/dist/typeshed-fallback/stubs/hnswlib/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/hnswlib/hnswlib.pyi +8 -6
- package/dist/typeshed-fallback/stubs/humanfriendly/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/ibm-db/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/__init__.pyi +6 -6
- package/dist/typeshed-fallback/stubs/mock/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/mock/mock/backports.pyi +6 -1
- package/dist/typeshed-fallback/stubs/mock/mock/mock.pyi +1 -1
- package/dist/typeshed-fallback/stubs/mysqlclient/MySQLdb/_mysql.pyi +32 -32
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/clique.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/clustering_coefficient.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/connectivity.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/distance_measures.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/dominating_set.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/kcomponents.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/matching.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/maxcut.pyi +8 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/ramsey.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/steinertree.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/traveling_salesman.pyi +33 -23
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/treewidth.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/vertex_cover.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/connectivity.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/correlation.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/mixing.pyi +16 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/neighbor_degree.pyi +7 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/pairs.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/asteroidal.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/basic.pyi +8 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/centrality.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/cluster.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/covering.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/edgelist.pyi +13 -12
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/extendability.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/generators.pyi +22 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matching.pyi +11 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matrix.pyi +9 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/projection.pyi +9 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/redundancy.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/spectral.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/boundary.pyi +53 -58
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bridges.pyi +5 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness_subset.pyi +10 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/closeness.pyi +7 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness.pyi +9 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi +16 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_closeness.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/eigenvector.pyi +10 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/flow_matrix.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/group.pyi +16 -12
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/harmonic.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/katz.pyi +15 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/laplacian.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/load.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/percolation.pyi +6 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/reaching.pyi +9 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/second_order.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/subgraph_alg.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/trophic.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/voterank_alg.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/chordal.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/clique.pyi +9 -14
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cluster.pyi +10 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/equitable_coloring.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/greedy_coloring.pyi +2 -20
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/communicability_alg.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/asyn_fluid.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/centrality.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/community_utils.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/divisive.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kclique.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kernighan_lin.pyi +7 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/label_propagation.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/louvain.pyi +13 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/lukes.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/modularity_max.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/quality.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/biconnected.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/connected.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/semiconnected.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/strongly_connected.pyi +5 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/weakly_connected.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/connectivity.pyi +29 -23
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/cuts.pyi +21 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/disjoint_paths.pyi +17 -16
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_augmentation.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_kcomponents.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/kcomponents.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/kcutsets.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/stoerwagner.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/core.pyi +9 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/covering.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cuts.pyi +10 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cycles.pyi +9 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/d_separation.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dag.pyi +13 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_measures.pyi +8 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_regular.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dominance.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dominating.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/efficiency_measures.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/euler.pyi +8 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/boykovkolmogorov.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/capacityscaling.pyi +4 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/dinitz_alg.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/edmondskarp.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/gomory_hu.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/maxflow.pyi +34 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/mincost.pyi +7 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/networksimplex.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/preflowpush.pyi +5 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/shortestaugmentingpath.pyi +6 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/utils.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/graph_hashing.pyi +12 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/graphical.pyi +9 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/hierarchy.pyi +1 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/hybrid.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isolate.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/ismags.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/isomorph.pyi +11 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/isomorphvf2.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/tree_isomorphism.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/vf2pp.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/vf2userfunc.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_analysis/hits_alg.pyi +9 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_analysis/pagerank_alg.pyi +16 -14
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_prediction.pyi +9 -10
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/lowest_common_ancestors.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/matching.pyi +7 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/minors/contraction.pyi +10 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/mis.pyi +6 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/moral.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/node_classification.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/non_randomness.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/all.pyi +7 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/binary.pyi +11 -11
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/product.pyi +14 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/unary.pyi +2 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/planarity.pyi +6 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/polynomials.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/reciprocity.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/regular.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/richclub.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/astar.pyi +22 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/dense.pyi +7 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/generic.pyi +33 -11
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/unweighted.pyi +9 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/weighted.pyi +116 -30
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/similarity.pyi +69 -55
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/simple_paths.pyi +11 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/smallworld.pyi +6 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/smetric.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/sparsifiers.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/structuralholes.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/summarization.pyi +5 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/swap.pyi +8 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/threshold.pyi +3 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/time_dependent.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tournament.pyi +8 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/beamsearch.pyi +5 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/breadth_first_search.pyi +16 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/depth_first_search.pyi +20 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgebfs.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgedfs.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/branchings.pyi +13 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/coding.pyi +8 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/mst.pyi +22 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/operations.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/recognition.pyi +6 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/triads.pyi +11 -8
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/vitality.pyi +2 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/voronoi.pyi +10 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/walks.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/wiener.pyi +2 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/coreviews.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +4 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multigraph.pyi +3 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/reportviews.pyi +39 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/time_series.pyi +4 -0
- package/dist/typeshed-fallback/stubs/passlib/passlib/hosts.pyi +3 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +19 -19
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor.pyi +6 -0
- package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/_psycopg.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +18 -0
- package/dist/typeshed-fallback/stubs/pygit2/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/build_main.pyi +19 -7
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/splash.pyi +18 -16
- package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pynput/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pynput/pynput/_util.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/__init__.pyi +4 -2
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +3 -0
- package/dist/typeshed-fallback/stubs/pynput/pynput/mouse/__init__.pyi +6 -3
- package/dist/typeshed-fallback/stubs/pyserial/serial/tools/miniterm.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pytz/pytz/tzinfo.pyi +3 -3
- package/dist/typeshed-fallback/stubs/pywin32/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/pythoncom.pyi +19 -2
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32con.pyi +4895 -4764
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32timezone.pyi +81 -42
- package/dist/typeshed-fallback/stubs/pywin32/win32/lib/winerror.pyi +7258 -2574
- package/dist/typeshed-fallback/stubs/pywin32/win32/servicemanager.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32trace.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pywin32/win32/win32ts.pyi +1 -0
- package/dist/typeshed-fallback/stubs/pywin32/win32com/client/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stubs/regex/regex/regex.pyi +5 -5
- package/dist/typeshed-fallback/stubs/requests/requests/__init__.pyi +12 -13
- package/dist/typeshed-fallback/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +3 -0
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +4 -3
- package/dist/typeshed-fallback/stubs/setuptools/distutils/ccompiler.pyi +11 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/base.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/errors.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/msvc.pyi +1 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/_msvccompiler.pyi +2 -21
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/archive_util.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +13 -178
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/bdist_rpm.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_clib.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_ext.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_py.pyi +3 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install.pyi +5 -5
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_data.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_lib.pyi +4 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_scripts.pyi +2 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/sdist.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compat/__init__.pyi +6 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi +196 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/errors.pyi +6 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/msvc.pyi +24 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +23 -20
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/errors.pyi +12 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/filelist.pyi +12 -11
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/spawn.pyi +6 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/util.pyi +6 -6
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/bdist_wheel.pyi +0 -2
- package/dist/typeshed-fallback/stubs/simplejson/simplejson/encoder.pyi +1 -1
- package/dist/typeshed-fallback/stubs/six/six/moves/builtins.pyi +0 -1
- package/dist/typeshed-fallback/stubs/tqdm/METADATA.toml +4 -1
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/asyncio.pyi +4 -3
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/std.pyi +10 -3
- package/dist/typeshed-fallback/stubs/tree-sitter-languages/METADATA.toml +6 -0
- package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +15 -8
- package/dist/typeshed-fallback/stubs/watchpoints/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/__init__.pyi +10 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/ast_monkey.pyi +3 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/util.pyi +6 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch.pyi +68 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch_element.pyi +56 -0
- package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch_print.pyi +24 -0
- package/dist/typeshed-fallback/stubs/zstd/METADATA.toml +1 -1
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/__init__.pyi +0 -543
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/__init__.pyi +0 -8
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/markers.pyi +0 -13
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/requirements.pyi +0 -14
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/specifiers.pyi +0 -66
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/version.pyi +0 -49
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# Since this module defines "Self" it is not recognized by Ruff as typing_extensions.Self
|
|
2
|
-
# ruff: noqa: PYI034
|
|
3
1
|
import abc
|
|
2
|
+
import enum
|
|
4
3
|
import sys
|
|
5
4
|
import typing
|
|
6
5
|
from _collections_abc import dict_items, dict_keys, dict_values
|
|
7
|
-
from _typeshed import IdentityFunction
|
|
6
|
+
from _typeshed import IdentityFunction, Incomplete, Unused
|
|
8
7
|
from contextlib import AbstractAsyncContextManager as AsyncContextManager, AbstractContextManager as ContextManager
|
|
8
|
+
from types import ModuleType
|
|
9
9
|
from typing import ( # noqa: Y022,Y037,Y038,Y039
|
|
10
10
|
IO as IO,
|
|
11
11
|
TYPE_CHECKING as TYPE_CHECKING,
|
|
@@ -70,9 +70,10 @@ if sys.version_info >= (3, 10):
|
|
|
70
70
|
if sys.version_info >= (3, 9):
|
|
71
71
|
from types import GenericAlias
|
|
72
72
|
|
|
73
|
+
# Please keep order the same as at runtime.
|
|
73
74
|
__all__ = [
|
|
75
|
+
# Super-special typing primitives.
|
|
74
76
|
"Any",
|
|
75
|
-
"Buffer",
|
|
76
77
|
"ClassVar",
|
|
77
78
|
"Concatenate",
|
|
78
79
|
"Final",
|
|
@@ -85,14 +86,16 @@ __all__ = [
|
|
|
85
86
|
"TypeVar",
|
|
86
87
|
"TypeVarTuple",
|
|
87
88
|
"Unpack",
|
|
89
|
+
# ABCs (from collections.abc).
|
|
88
90
|
"Awaitable",
|
|
89
91
|
"AsyncIterator",
|
|
90
92
|
"AsyncIterable",
|
|
91
93
|
"Coroutine",
|
|
92
94
|
"AsyncGenerator",
|
|
93
95
|
"AsyncContextManager",
|
|
94
|
-
"
|
|
96
|
+
"Buffer",
|
|
95
97
|
"ChainMap",
|
|
98
|
+
# Concrete collection types.
|
|
96
99
|
"ContextManager",
|
|
97
100
|
"Counter",
|
|
98
101
|
"Deque",
|
|
@@ -100,20 +103,34 @@ __all__ = [
|
|
|
100
103
|
"NamedTuple",
|
|
101
104
|
"OrderedDict",
|
|
102
105
|
"TypedDict",
|
|
103
|
-
|
|
106
|
+
# Structural checks, a.k.a. protocols.
|
|
104
107
|
"SupportsAbs",
|
|
105
|
-
"SupportsRound",
|
|
106
108
|
"SupportsBytes",
|
|
107
109
|
"SupportsComplex",
|
|
108
110
|
"SupportsFloat",
|
|
111
|
+
"SupportsIndex",
|
|
109
112
|
"SupportsInt",
|
|
113
|
+
"SupportsRound",
|
|
114
|
+
# One-off things.
|
|
110
115
|
"Annotated",
|
|
111
116
|
"assert_never",
|
|
112
117
|
"assert_type",
|
|
118
|
+
"clear_overloads",
|
|
113
119
|
"dataclass_transform",
|
|
114
120
|
"deprecated",
|
|
121
|
+
"Doc",
|
|
122
|
+
"evaluate_forward_ref",
|
|
123
|
+
"get_overloads",
|
|
115
124
|
"final",
|
|
125
|
+
"Format",
|
|
126
|
+
"get_annotations",
|
|
127
|
+
"get_args",
|
|
128
|
+
"get_origin",
|
|
129
|
+
"get_original_bases",
|
|
130
|
+
"get_protocol_members",
|
|
131
|
+
"get_type_hints",
|
|
116
132
|
"IntVar",
|
|
133
|
+
"is_protocol",
|
|
117
134
|
"is_typeddict",
|
|
118
135
|
"Literal",
|
|
119
136
|
"NewType",
|
|
@@ -126,18 +143,18 @@ __all__ = [
|
|
|
126
143
|
"Text",
|
|
127
144
|
"TypeAlias",
|
|
128
145
|
"TypeAliasType",
|
|
146
|
+
"TypeForm",
|
|
129
147
|
"TypeGuard",
|
|
148
|
+
"TypeIs",
|
|
130
149
|
"TYPE_CHECKING",
|
|
131
150
|
"Never",
|
|
132
151
|
"NoReturn",
|
|
152
|
+
"ReadOnly",
|
|
133
153
|
"Required",
|
|
134
154
|
"NotRequired",
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
"get_original_bases",
|
|
139
|
-
"get_overloads",
|
|
140
|
-
"get_type_hints",
|
|
155
|
+
"NoDefault",
|
|
156
|
+
"NoExtraItems",
|
|
157
|
+
# Pure aliases, have always been in typing
|
|
141
158
|
"AbstractSet",
|
|
142
159
|
"AnyStr",
|
|
143
160
|
"BinaryIO",
|
|
@@ -145,7 +162,6 @@ __all__ = [
|
|
|
145
162
|
"Collection",
|
|
146
163
|
"Container",
|
|
147
164
|
"Dict",
|
|
148
|
-
"Doc",
|
|
149
165
|
"ForwardRef",
|
|
150
166
|
"FrozenSet",
|
|
151
167
|
"Generator",
|
|
@@ -163,7 +179,6 @@ __all__ = [
|
|
|
163
179
|
"MutableMapping",
|
|
164
180
|
"MutableSequence",
|
|
165
181
|
"MutableSet",
|
|
166
|
-
"NoDefault",
|
|
167
182
|
"Optional",
|
|
168
183
|
"Pattern",
|
|
169
184
|
"Reversible",
|
|
@@ -175,12 +190,10 @@ __all__ = [
|
|
|
175
190
|
"Union",
|
|
176
191
|
"ValuesView",
|
|
177
192
|
"cast",
|
|
178
|
-
"get_protocol_members",
|
|
179
|
-
"is_protocol",
|
|
180
193
|
"no_type_check",
|
|
181
194
|
"no_type_check_decorator",
|
|
182
|
-
|
|
183
|
-
"
|
|
195
|
+
# Added dynamically
|
|
196
|
+
"CapsuleType",
|
|
184
197
|
]
|
|
185
198
|
|
|
186
199
|
_T = typing.TypeVar("_T")
|
|
@@ -251,6 +264,7 @@ class _TypedDict(Mapping[str, object], metaclass=abc.ABCMeta):
|
|
|
251
264
|
@overload
|
|
252
265
|
def __ror__(self, value: dict[str, Any], /) -> dict[str, object]: ...
|
|
253
266
|
# supposedly incompatible definitions of `__ior__` and `__or__`:
|
|
267
|
+
# Since this module defines "Self" it is not recognized by Ruff as typing_extensions.Self
|
|
254
268
|
def __ior__(self, value: Self, /) -> Self: ... # type: ignore[misc]
|
|
255
269
|
|
|
256
270
|
OrderedDict = _Alias()
|
|
@@ -383,33 +397,11 @@ if sys.version_info >= (3, 12):
|
|
|
383
397
|
SupportsIndex as SupportsIndex,
|
|
384
398
|
SupportsInt as SupportsInt,
|
|
385
399
|
SupportsRound as SupportsRound,
|
|
386
|
-
TypeAliasType as TypeAliasType,
|
|
387
400
|
override as override,
|
|
388
401
|
)
|
|
389
402
|
else:
|
|
390
403
|
def override(arg: _F, /) -> _F: ...
|
|
391
404
|
def get_original_bases(cls: type, /) -> tuple[Any, ...]: ...
|
|
392
|
-
@final
|
|
393
|
-
class TypeAliasType:
|
|
394
|
-
def __init__(
|
|
395
|
-
self, name: str, value: Any, *, type_params: tuple[TypeVar | ParamSpec | TypeVarTuple, ...] = ()
|
|
396
|
-
) -> None: ...
|
|
397
|
-
@property
|
|
398
|
-
def __value__(self) -> Any: ...
|
|
399
|
-
@property
|
|
400
|
-
def __type_params__(self) -> tuple[TypeVar | ParamSpec | TypeVarTuple, ...]: ...
|
|
401
|
-
@property
|
|
402
|
-
def __parameters__(self) -> tuple[Any, ...]: ...
|
|
403
|
-
@property
|
|
404
|
-
def __name__(self) -> str: ...
|
|
405
|
-
# It's writable on types, but not on instances of TypeAliasType.
|
|
406
|
-
@property
|
|
407
|
-
def __module__(self) -> str | None: ... # type: ignore[override]
|
|
408
|
-
# Returns typing._GenericAlias, which isn't stubbed.
|
|
409
|
-
def __getitem__(self, parameters: Any) -> Any: ...
|
|
410
|
-
if sys.version_info >= (3, 10):
|
|
411
|
-
def __or__(self, right: Any) -> _SpecialForm: ...
|
|
412
|
-
def __ror__(self, left: Any) -> _SpecialForm: ...
|
|
413
405
|
|
|
414
406
|
# mypy and pyright object to this being both ABC and Protocol.
|
|
415
407
|
# At runtime it inherits from ABC and is not a Protocol, but it is on the
|
|
@@ -570,16 +562,71 @@ else:
|
|
|
570
562
|
ReadOnly: _SpecialForm
|
|
571
563
|
TypeIs: _SpecialForm
|
|
572
564
|
|
|
565
|
+
# TypeAliasType was added in Python 3.12, but had significant changes in 3.14.
|
|
566
|
+
if sys.version_info >= (3, 14):
|
|
567
|
+
from typing import TypeAliasType as TypeAliasType
|
|
568
|
+
else:
|
|
569
|
+
@final
|
|
570
|
+
class TypeAliasType:
|
|
571
|
+
def __init__(
|
|
572
|
+
self, name: str, value: Any, *, type_params: tuple[TypeVar | ParamSpec | TypeVarTuple, ...] = ()
|
|
573
|
+
) -> None: ... # value is a type expression
|
|
574
|
+
@property
|
|
575
|
+
def __value__(self) -> Any: ... # a type expression
|
|
576
|
+
@property
|
|
577
|
+
def __type_params__(self) -> tuple[TypeVar | ParamSpec | TypeVarTuple, ...]: ...
|
|
578
|
+
@property
|
|
579
|
+
# `__parameters__` can include special forms if a `TypeVarTuple` was
|
|
580
|
+
# passed as a `type_params` element to the constructor method.
|
|
581
|
+
def __parameters__(self) -> tuple[TypeVar | ParamSpec | Any, ...]: ...
|
|
582
|
+
@property
|
|
583
|
+
def __name__(self) -> str: ...
|
|
584
|
+
# It's writable on types, but not on instances of TypeAliasType.
|
|
585
|
+
@property
|
|
586
|
+
def __module__(self) -> str | None: ... # type: ignore[override]
|
|
587
|
+
# Returns typing._GenericAlias, which isn't stubbed.
|
|
588
|
+
def __getitem__(self, parameters: Incomplete | tuple[Incomplete, ...]) -> Any: ...
|
|
589
|
+
def __init_subclass__(cls, *args: Unused, **kwargs: Unused) -> NoReturn: ...
|
|
590
|
+
if sys.version_info >= (3, 10):
|
|
591
|
+
def __or__(self, right: Any) -> _SpecialForm: ...
|
|
592
|
+
def __ror__(self, left: Any) -> _SpecialForm: ...
|
|
593
|
+
|
|
594
|
+
# PEP 727
|
|
573
595
|
class Doc:
|
|
574
596
|
documentation: str
|
|
575
597
|
def __init__(self, documentation: str, /) -> None: ...
|
|
576
598
|
def __hash__(self) -> int: ...
|
|
577
599
|
def __eq__(self, other: object) -> bool: ...
|
|
578
600
|
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
601
|
+
# PEP 728
|
|
602
|
+
class _NoExtraItemsType: ...
|
|
603
|
+
|
|
604
|
+
NoExtraItems: _NoExtraItemsType
|
|
605
|
+
|
|
606
|
+
# PEP 747
|
|
607
|
+
TypeForm: _SpecialForm
|
|
608
|
+
|
|
609
|
+
class Format(enum.IntEnum):
|
|
610
|
+
VALUE = 1
|
|
611
|
+
FORWARDREF = 2
|
|
612
|
+
STRING = 3
|
|
613
|
+
|
|
614
|
+
# PEP 649/749
|
|
615
|
+
def get_annotations(
|
|
616
|
+
obj: Callable[..., object] | type[object] | ModuleType, # any callable, class, or module
|
|
617
|
+
*,
|
|
618
|
+
globals: Mapping[str, Any] | None = None, # value types depend on the key
|
|
619
|
+
locals: Mapping[str, Any] | None = None, # value types depend on the key
|
|
620
|
+
eval_str: bool = False,
|
|
621
|
+
format: Format = Format.VALUE, # noqa: Y011
|
|
622
|
+
) -> dict[str, Any]: ... # values are type expressions
|
|
623
|
+
def evaluate_forward_ref(
|
|
624
|
+
forward_ref: ForwardRef,
|
|
625
|
+
*,
|
|
626
|
+
owner: Callable[..., object] | type[object] | ModuleType | None = None, # any callable, class, or module
|
|
627
|
+
globals: Mapping[str, Any] | None = None, # value types depend on the key
|
|
628
|
+
locals: Mapping[str, Any] | None = None, # value types depend on the key
|
|
629
|
+
type_params: Iterable[TypeVar | ParamSpec | TypeVarTuple] | None = None,
|
|
630
|
+
format: Format = Format.VALUE, # noqa: Y011
|
|
631
|
+
_recursive_guard: Container[str] = ...,
|
|
632
|
+
) -> Any: ... # str if format is Format.STRING, otherwise a type expression
|
|
@@ -20,7 +20,7 @@ from typing import (
|
|
|
20
20
|
TypeVar,
|
|
21
21
|
overload,
|
|
22
22
|
)
|
|
23
|
-
from typing_extensions import ParamSpec, Self, TypeAlias
|
|
23
|
+
from typing_extensions import Never, ParamSpec, Self, TypeAlias
|
|
24
24
|
from warnings import WarningMessage
|
|
25
25
|
|
|
26
26
|
if sys.version_info >= (3, 9):
|
|
@@ -323,6 +323,10 @@ class TestCase:
|
|
|
323
323
|
self, subset: Mapping[Any, Any], dictionary: Mapping[Any, Any], msg: object = None
|
|
324
324
|
) -> None: ...
|
|
325
325
|
|
|
326
|
+
if sys.version_info >= (3, 10):
|
|
327
|
+
# Runtime has *args, **kwargs, but will error if any are supplied
|
|
328
|
+
def __init_subclass__(cls, *args: Never, **kwargs: Never) -> None: ...
|
|
329
|
+
|
|
326
330
|
class FunctionTestCase(TestCase):
|
|
327
331
|
def __init__(
|
|
328
332
|
self,
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
from xml.dom.minidom import Node
|
|
3
|
+
|
|
1
4
|
class NodeFilter:
|
|
2
|
-
FILTER_ACCEPT:
|
|
3
|
-
FILTER_REJECT:
|
|
4
|
-
FILTER_SKIP:
|
|
5
|
+
FILTER_ACCEPT: Literal[1]
|
|
6
|
+
FILTER_REJECT: Literal[2]
|
|
7
|
+
FILTER_SKIP: Literal[3]
|
|
5
8
|
|
|
6
9
|
SHOW_ALL: int
|
|
7
10
|
SHOW_ELEMENT: int
|
|
@@ -16,4 +19,4 @@ class NodeFilter:
|
|
|
16
19
|
SHOW_DOCUMENT_TYPE: int
|
|
17
20
|
SHOW_DOCUMENT_FRAGMENT: int
|
|
18
21
|
SHOW_NOTATION: int
|
|
19
|
-
def acceptNode(self, node) -> int: ...
|
|
22
|
+
def acceptNode(self, node: Node) -> int: ...
|
|
@@ -1,69 +1,100 @@
|
|
|
1
|
-
from typing import Any, Final
|
|
1
|
+
from typing import Any, Final, Literal
|
|
2
2
|
|
|
3
3
|
from .domreg import getDOMImplementation as getDOMImplementation, registerDOMImplementation as registerDOMImplementation
|
|
4
4
|
|
|
5
5
|
class Node:
|
|
6
|
-
ELEMENT_NODE:
|
|
7
|
-
ATTRIBUTE_NODE:
|
|
8
|
-
TEXT_NODE:
|
|
9
|
-
CDATA_SECTION_NODE:
|
|
10
|
-
ENTITY_REFERENCE_NODE:
|
|
11
|
-
ENTITY_NODE:
|
|
12
|
-
PROCESSING_INSTRUCTION_NODE:
|
|
13
|
-
COMMENT_NODE:
|
|
14
|
-
DOCUMENT_NODE:
|
|
15
|
-
DOCUMENT_TYPE_NODE:
|
|
16
|
-
DOCUMENT_FRAGMENT_NODE:
|
|
17
|
-
NOTATION_NODE:
|
|
6
|
+
ELEMENT_NODE: Literal[1]
|
|
7
|
+
ATTRIBUTE_NODE: Literal[2]
|
|
8
|
+
TEXT_NODE: Literal[3]
|
|
9
|
+
CDATA_SECTION_NODE: Literal[4]
|
|
10
|
+
ENTITY_REFERENCE_NODE: Literal[5]
|
|
11
|
+
ENTITY_NODE: Literal[6]
|
|
12
|
+
PROCESSING_INSTRUCTION_NODE: Literal[7]
|
|
13
|
+
COMMENT_NODE: Literal[8]
|
|
14
|
+
DOCUMENT_NODE: Literal[9]
|
|
15
|
+
DOCUMENT_TYPE_NODE: Literal[10]
|
|
16
|
+
DOCUMENT_FRAGMENT_NODE: Literal[11]
|
|
17
|
+
NOTATION_NODE: Literal[12]
|
|
18
18
|
|
|
19
19
|
# ExceptionCode
|
|
20
|
-
INDEX_SIZE_ERR: Final
|
|
21
|
-
DOMSTRING_SIZE_ERR: Final
|
|
22
|
-
HIERARCHY_REQUEST_ERR: Final
|
|
23
|
-
WRONG_DOCUMENT_ERR: Final
|
|
24
|
-
INVALID_CHARACTER_ERR: Final
|
|
25
|
-
NO_DATA_ALLOWED_ERR: Final
|
|
26
|
-
NO_MODIFICATION_ALLOWED_ERR: Final
|
|
27
|
-
NOT_FOUND_ERR: Final
|
|
28
|
-
NOT_SUPPORTED_ERR: Final
|
|
29
|
-
INUSE_ATTRIBUTE_ERR: Final
|
|
30
|
-
INVALID_STATE_ERR: Final
|
|
31
|
-
SYNTAX_ERR: Final
|
|
32
|
-
INVALID_MODIFICATION_ERR: Final
|
|
33
|
-
NAMESPACE_ERR: Final
|
|
34
|
-
INVALID_ACCESS_ERR: Final
|
|
35
|
-
VALIDATION_ERR: Final
|
|
20
|
+
INDEX_SIZE_ERR: Final = 1
|
|
21
|
+
DOMSTRING_SIZE_ERR: Final = 2
|
|
22
|
+
HIERARCHY_REQUEST_ERR: Final = 3
|
|
23
|
+
WRONG_DOCUMENT_ERR: Final = 4
|
|
24
|
+
INVALID_CHARACTER_ERR: Final = 5
|
|
25
|
+
NO_DATA_ALLOWED_ERR: Final = 6
|
|
26
|
+
NO_MODIFICATION_ALLOWED_ERR: Final = 7
|
|
27
|
+
NOT_FOUND_ERR: Final = 8
|
|
28
|
+
NOT_SUPPORTED_ERR: Final = 9
|
|
29
|
+
INUSE_ATTRIBUTE_ERR: Final = 10
|
|
30
|
+
INVALID_STATE_ERR: Final = 11
|
|
31
|
+
SYNTAX_ERR: Final = 12
|
|
32
|
+
INVALID_MODIFICATION_ERR: Final = 13
|
|
33
|
+
NAMESPACE_ERR: Final = 14
|
|
34
|
+
INVALID_ACCESS_ERR: Final = 15
|
|
35
|
+
VALIDATION_ERR: Final = 16
|
|
36
36
|
|
|
37
37
|
class DOMException(Exception):
|
|
38
38
|
code: int
|
|
39
39
|
def __init__(self, *args: Any, **kw: Any) -> None: ...
|
|
40
40
|
def _get_code(self) -> int: ...
|
|
41
41
|
|
|
42
|
-
class IndexSizeErr(DOMException):
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
class
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
class
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
class
|
|
42
|
+
class IndexSizeErr(DOMException):
|
|
43
|
+
code: Literal[1]
|
|
44
|
+
|
|
45
|
+
class DomstringSizeErr(DOMException):
|
|
46
|
+
code: Literal[2]
|
|
47
|
+
|
|
48
|
+
class HierarchyRequestErr(DOMException):
|
|
49
|
+
code: Literal[3]
|
|
50
|
+
|
|
51
|
+
class WrongDocumentErr(DOMException):
|
|
52
|
+
code: Literal[4]
|
|
53
|
+
|
|
54
|
+
class InvalidCharacterErr(DOMException):
|
|
55
|
+
code: Literal[5]
|
|
56
|
+
|
|
57
|
+
class NoDataAllowedErr(DOMException):
|
|
58
|
+
code: Literal[6]
|
|
59
|
+
|
|
60
|
+
class NoModificationAllowedErr(DOMException):
|
|
61
|
+
code: Literal[7]
|
|
62
|
+
|
|
63
|
+
class NotFoundErr(DOMException):
|
|
64
|
+
code: Literal[8]
|
|
65
|
+
|
|
66
|
+
class NotSupportedErr(DOMException):
|
|
67
|
+
code: Literal[9]
|
|
68
|
+
|
|
69
|
+
class InuseAttributeErr(DOMException):
|
|
70
|
+
code: Literal[10]
|
|
71
|
+
|
|
72
|
+
class InvalidStateErr(DOMException):
|
|
73
|
+
code: Literal[11]
|
|
74
|
+
|
|
75
|
+
class SyntaxErr(DOMException):
|
|
76
|
+
code: Literal[12]
|
|
77
|
+
|
|
78
|
+
class InvalidModificationErr(DOMException):
|
|
79
|
+
code: Literal[13]
|
|
80
|
+
|
|
81
|
+
class NamespaceErr(DOMException):
|
|
82
|
+
code: Literal[14]
|
|
83
|
+
|
|
84
|
+
class InvalidAccessErr(DOMException):
|
|
85
|
+
code: Literal[15]
|
|
86
|
+
|
|
87
|
+
class ValidationErr(DOMException):
|
|
88
|
+
code: Literal[16]
|
|
58
89
|
|
|
59
90
|
class UserDataHandler:
|
|
60
|
-
NODE_CLONED:
|
|
61
|
-
NODE_IMPORTED:
|
|
62
|
-
NODE_DELETED:
|
|
63
|
-
NODE_RENAMED:
|
|
64
|
-
|
|
65
|
-
XML_NAMESPACE: Final
|
|
66
|
-
XMLNS_NAMESPACE: Final
|
|
67
|
-
XHTML_NAMESPACE: Final
|
|
91
|
+
NODE_CLONED: Literal[1]
|
|
92
|
+
NODE_IMPORTED: Literal[2]
|
|
93
|
+
NODE_DELETED: Literal[3]
|
|
94
|
+
NODE_RENAMED: Literal[4]
|
|
95
|
+
|
|
96
|
+
XML_NAMESPACE: Final = "http://www.w3.org/XML/1998/namespace"
|
|
97
|
+
XMLNS_NAMESPACE: Final = "http://www.w3.org/2000/xmlns/"
|
|
98
|
+
XHTML_NAMESPACE: Final = "http://www.w3.org/1999/xhtml"
|
|
68
99
|
EMPTY_NAMESPACE: Final[None]
|
|
69
100
|
EMPTY_PREFIX: Final[None]
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
from _typeshed import
|
|
1
|
+
from _typeshed import ReadableBuffer, SupportsRead
|
|
2
2
|
from typing import Any, NoReturn
|
|
3
|
-
from
|
|
3
|
+
from typing_extensions import TypeAlias
|
|
4
|
+
from xml.dom.minidom import Document, DocumentFragment, DOMImplementation, Element, Node, TypeInfo
|
|
4
5
|
from xml.dom.xmlbuilder import DOMBuilderFilter, Options
|
|
6
|
+
from xml.parsers.expat import XMLParserType
|
|
7
|
+
|
|
8
|
+
_Model: TypeAlias = tuple[int, int, str | None, tuple[Any, ...]] # same as in pyexpat
|
|
5
9
|
|
|
6
10
|
TEXT_NODE = Node.TEXT_NODE
|
|
7
11
|
CDATA_SECTION_NODE = Node.CDATA_SECTION_NODE
|
|
@@ -10,45 +14,56 @@ FILTER_ACCEPT = DOMBuilderFilter.FILTER_ACCEPT
|
|
|
10
14
|
FILTER_REJECT = DOMBuilderFilter.FILTER_REJECT
|
|
11
15
|
FILTER_SKIP = DOMBuilderFilter.FILTER_SKIP
|
|
12
16
|
FILTER_INTERRUPT = DOMBuilderFilter.FILTER_INTERRUPT
|
|
13
|
-
theDOMImplementation: DOMImplementation
|
|
17
|
+
theDOMImplementation: DOMImplementation
|
|
14
18
|
|
|
15
19
|
class ElementInfo:
|
|
16
|
-
tagName:
|
|
17
|
-
def __init__(self, tagName, model:
|
|
18
|
-
def getAttributeType(self, aname) -> TypeInfo: ...
|
|
19
|
-
def getAttributeTypeNS(self, namespaceURI, localName) -> TypeInfo: ...
|
|
20
|
+
tagName: str
|
|
21
|
+
def __init__(self, tagName: str, model: _Model | None = None) -> None: ...
|
|
22
|
+
def getAttributeType(self, aname: str) -> TypeInfo: ...
|
|
23
|
+
def getAttributeTypeNS(self, namespaceURI: str | None, localName: str) -> TypeInfo: ...
|
|
20
24
|
def isElementContent(self) -> bool: ...
|
|
21
25
|
def isEmpty(self) -> bool: ...
|
|
22
|
-
def isId(self, aname) -> bool: ...
|
|
23
|
-
def isIdNS(self, euri, ename, auri, aname) -> bool: ...
|
|
26
|
+
def isId(self, aname: str) -> bool: ...
|
|
27
|
+
def isIdNS(self, euri: str, ename: str, auri: str, aname: str) -> bool: ...
|
|
24
28
|
|
|
25
29
|
class ExpatBuilder:
|
|
26
30
|
document: Document # Created in self.reset()
|
|
27
|
-
curNode:
|
|
31
|
+
curNode: DocumentFragment | Element | Document # Created in self.reset()
|
|
28
32
|
def __init__(self, options: Options | None = None) -> None: ...
|
|
29
|
-
def createParser(self): ...
|
|
30
|
-
def getParser(self): ...
|
|
33
|
+
def createParser(self) -> XMLParserType: ...
|
|
34
|
+
def getParser(self) -> XMLParserType: ...
|
|
31
35
|
def reset(self) -> None: ...
|
|
32
|
-
def install(self, parser) -> None: ...
|
|
36
|
+
def install(self, parser: XMLParserType) -> None: ...
|
|
33
37
|
def parseFile(self, file: SupportsRead[ReadableBuffer | str]) -> Document: ...
|
|
34
38
|
def parseString(self, string: str | ReadableBuffer) -> Document: ...
|
|
35
|
-
def start_doctype_decl_handler(
|
|
39
|
+
def start_doctype_decl_handler(
|
|
40
|
+
self, doctypeName: str, systemId: str | None, publicId: str | None, has_internal_subset: bool
|
|
41
|
+
) -> None: ...
|
|
36
42
|
def end_doctype_decl_handler(self) -> None: ...
|
|
37
|
-
def pi_handler(self, target, data) -> None: ...
|
|
38
|
-
def character_data_handler_cdata(self, data) -> None: ...
|
|
39
|
-
def character_data_handler(self, data) -> None: ...
|
|
43
|
+
def pi_handler(self, target: str, data: str) -> None: ...
|
|
44
|
+
def character_data_handler_cdata(self, data: str) -> None: ...
|
|
45
|
+
def character_data_handler(self, data: str) -> None: ...
|
|
40
46
|
def start_cdata_section_handler(self) -> None: ...
|
|
41
47
|
def end_cdata_section_handler(self) -> None: ...
|
|
42
|
-
def entity_decl_handler(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
def entity_decl_handler(
|
|
49
|
+
self,
|
|
50
|
+
entityName: str,
|
|
51
|
+
is_parameter_entity: bool,
|
|
52
|
+
value: str | None,
|
|
53
|
+
base: str | None,
|
|
54
|
+
systemId: str,
|
|
55
|
+
publicId: str | None,
|
|
56
|
+
notationName: str | None,
|
|
57
|
+
) -> None: ...
|
|
58
|
+
def notation_decl_handler(self, notationName: str, base: str | None, systemId: str, publicId: str | None) -> None: ...
|
|
59
|
+
def comment_handler(self, data: str) -> None: ...
|
|
60
|
+
def external_entity_ref_handler(self, context: str, base: str | None, systemId: str | None, publicId: str | None) -> int: ...
|
|
61
|
+
def first_element_handler(self, name: str, attributes: list[str]) -> None: ...
|
|
62
|
+
def start_element_handler(self, name: str, attributes: list[str]) -> None: ...
|
|
63
|
+
def end_element_handler(self, name: str) -> None: ...
|
|
64
|
+
def element_decl_handler(self, name: str, model: _Model) -> None: ...
|
|
65
|
+
def attlist_decl_handler(self, elem: str, name: str, type: str, default: str | None, required: bool) -> None: ...
|
|
66
|
+
def xml_decl_handler(self, version: str, encoding: str | None, standalone: int) -> None: ...
|
|
52
67
|
|
|
53
68
|
class FilterVisibilityController:
|
|
54
69
|
filter: DOMBuilderFilter
|
|
@@ -57,7 +72,7 @@ class FilterVisibilityController:
|
|
|
57
72
|
def acceptNode(self, node: Node) -> int: ...
|
|
58
73
|
|
|
59
74
|
class FilterCrutch:
|
|
60
|
-
def __init__(self, builder) -> None: ...
|
|
75
|
+
def __init__(self, builder: ExpatBuilder) -> None: ...
|
|
61
76
|
|
|
62
77
|
class Rejecter(FilterCrutch):
|
|
63
78
|
def start_element_handler(self, *args: Any) -> None: ...
|
|
@@ -68,33 +83,39 @@ class Skipper(FilterCrutch):
|
|
|
68
83
|
def end_element_handler(self, *args: Any) -> None: ...
|
|
69
84
|
|
|
70
85
|
class FragmentBuilder(ExpatBuilder):
|
|
71
|
-
fragment:
|
|
72
|
-
originalDocument:
|
|
73
|
-
context:
|
|
74
|
-
def __init__(self, context, options: Options | None = None) -> None: ...
|
|
86
|
+
fragment: DocumentFragment | None
|
|
87
|
+
originalDocument: Document
|
|
88
|
+
context: Node
|
|
89
|
+
def __init__(self, context: Node, options: Options | None = None) -> None: ...
|
|
90
|
+
def reset(self) -> None: ...
|
|
91
|
+
def parseFile(self, file: SupportsRead[ReadableBuffer | str]) -> DocumentFragment: ... # type: ignore[override]
|
|
92
|
+
def parseString(self, string: ReadableBuffer | str) -> DocumentFragment: ... # type: ignore[override]
|
|
93
|
+
def external_entity_ref_handler(self, context: str, base: str | None, systemId: str | None, publicId: str | None) -> int: ...
|
|
75
94
|
|
|
76
95
|
class Namespaces:
|
|
77
|
-
def createParser(self): ...
|
|
78
|
-
def install(self, parser) -> None: ...
|
|
79
|
-
def start_namespace_decl_handler(self, prefix, uri) -> None: ...
|
|
80
|
-
def start_element_handler(self, name, attributes) -> None: ...
|
|
81
|
-
def end_element_handler(self, name) -> None: ...
|
|
96
|
+
def createParser(self) -> XMLParserType: ...
|
|
97
|
+
def install(self, parser: XMLParserType) -> None: ...
|
|
98
|
+
def start_namespace_decl_handler(self, prefix: str | None, uri: str) -> None: ...
|
|
99
|
+
def start_element_handler(self, name: str, attributes: list[str]) -> None: ...
|
|
100
|
+
def end_element_handler(self, name: str) -> None: ... # only exists if __debug__
|
|
82
101
|
|
|
83
102
|
class ExpatBuilderNS(Namespaces, ExpatBuilder): ...
|
|
84
103
|
class FragmentBuilderNS(Namespaces, FragmentBuilder): ...
|
|
85
104
|
class ParseEscape(Exception): ...
|
|
86
105
|
|
|
87
106
|
class InternalSubsetExtractor(ExpatBuilder):
|
|
88
|
-
subset:
|
|
89
|
-
def getSubset(self) ->
|
|
107
|
+
subset: str | list[str] | None = None
|
|
108
|
+
def getSubset(self) -> str: ...
|
|
90
109
|
def parseFile(self, file: SupportsRead[ReadableBuffer | str]) -> None: ... # type: ignore[override]
|
|
91
110
|
def parseString(self, string: str | ReadableBuffer) -> None: ... # type: ignore[override]
|
|
92
|
-
def start_doctype_decl_handler(
|
|
111
|
+
def start_doctype_decl_handler( # type: ignore[override]
|
|
112
|
+
self, name: str, publicId: str | None, systemId: str | None, has_internal_subset: bool
|
|
113
|
+
) -> None: ...
|
|
93
114
|
def end_doctype_decl_handler(self) -> NoReturn: ...
|
|
94
|
-
def start_element_handler(self, name, attrs) -> NoReturn: ...
|
|
115
|
+
def start_element_handler(self, name: str, attrs: list[str]) -> NoReturn: ...
|
|
95
116
|
|
|
96
|
-
def parse(file: str | SupportsRead[ReadableBuffer | str], namespaces: bool = True): ...
|
|
97
|
-
def parseString(string: str | ReadableBuffer, namespaces: bool = True): ...
|
|
98
|
-
def parseFragment(file, context, namespaces: bool = True): ...
|
|
99
|
-
def parseFragmentString(string: str, context, namespaces: bool = True): ...
|
|
117
|
+
def parse(file: str | SupportsRead[ReadableBuffer | str], namespaces: bool = True) -> Document: ...
|
|
118
|
+
def parseString(string: str | ReadableBuffer, namespaces: bool = True) -> Document: ...
|
|
119
|
+
def parseFragment(file: str | SupportsRead[ReadableBuffer | str], context: Node, namespaces: bool = True) -> DocumentFragment: ...
|
|
120
|
+
def parseFragmentString(string: str | ReadableBuffer, context: Node, namespaces: bool = True) -> DocumentFragment: ...
|
|
100
121
|
def makeBuilder(options: Options) -> ExpatBuilderNS | ExpatBuilder: ...
|