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,53 +1,82 @@
|
|
|
1
1
|
import sys
|
|
2
|
-
from _typeshed import
|
|
3
|
-
from
|
|
2
|
+
from _typeshed import ReadableBuffer
|
|
3
|
+
from collections.abc import Mapping
|
|
4
|
+
from typing import Any, Literal, overload
|
|
5
|
+
from typing_extensions import TypeAlias
|
|
6
|
+
from xml.sax import _Source, xmlreader
|
|
7
|
+
from xml.sax.handler import _ContentHandlerProtocol
|
|
8
|
+
|
|
9
|
+
if sys.version_info >= (3, 10):
|
|
10
|
+
from xml.sax.handler import LexicalHandler
|
|
11
|
+
|
|
12
|
+
_BoolType: TypeAlias = Literal[0, 1] | bool
|
|
4
13
|
|
|
5
14
|
version: str
|
|
6
15
|
AttributesImpl = xmlreader.AttributesImpl
|
|
7
16
|
AttributesNSImpl = xmlreader.AttributesNSImpl
|
|
8
17
|
|
|
9
|
-
class _ClosedParser:
|
|
18
|
+
class _ClosedParser:
|
|
19
|
+
ErrorColumnNumber: int
|
|
20
|
+
ErrorLineNumber: int
|
|
10
21
|
|
|
11
22
|
class ExpatLocator(xmlreader.Locator):
|
|
12
23
|
def __init__(self, parser: ExpatParser) -> None: ...
|
|
13
|
-
def getColumnNumber(self) -> int: ...
|
|
24
|
+
def getColumnNumber(self) -> int | None: ...
|
|
14
25
|
def getLineNumber(self) -> int: ...
|
|
15
|
-
def getPublicId(self): ...
|
|
16
|
-
def getSystemId(self): ...
|
|
26
|
+
def getPublicId(self) -> str | None: ...
|
|
27
|
+
def getSystemId(self) -> str | None: ...
|
|
17
28
|
|
|
18
29
|
class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator):
|
|
19
|
-
def __init__(self, namespaceHandling:
|
|
20
|
-
def parse(self, source) -> None: ...
|
|
21
|
-
def prepareParser(self, source) -> None: ...
|
|
22
|
-
def setContentHandler(self, handler) -> None: ...
|
|
23
|
-
def getFeature(self, name: str): ...
|
|
24
|
-
def setFeature(self, name: str, state) -> None: ...
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
def __init__(self, namespaceHandling: _BoolType = 0, bufsize: int = 65516) -> None: ...
|
|
31
|
+
def parse(self, source: xmlreader.InputSource | _Source) -> None: ...
|
|
32
|
+
def prepareParser(self, source: xmlreader.InputSource) -> None: ...
|
|
33
|
+
def setContentHandler(self, handler: _ContentHandlerProtocol) -> None: ...
|
|
34
|
+
def getFeature(self, name: str) -> _BoolType: ...
|
|
35
|
+
def setFeature(self, name: str, state: _BoolType) -> None: ...
|
|
36
|
+
if sys.version_info >= (3, 10):
|
|
37
|
+
@overload
|
|
38
|
+
def getProperty(self, name: Literal["http://xml.org/sax/properties/lexical-handler"]) -> LexicalHandler | None: ...
|
|
39
|
+
|
|
40
|
+
@overload
|
|
41
|
+
def getProperty(self, name: Literal["http://www.python.org/sax/properties/interning-dict"]) -> dict[str, Any] | None: ...
|
|
42
|
+
@overload
|
|
43
|
+
def getProperty(self, name: Literal["http://xml.org/sax/properties/xml-string"]) -> bytes | None: ...
|
|
44
|
+
@overload
|
|
45
|
+
def getProperty(self, name: str) -> object: ...
|
|
46
|
+
if sys.version_info >= (3, 10):
|
|
47
|
+
@overload
|
|
48
|
+
def setProperty(self, name: Literal["http://xml.org/sax/properties/lexical-handler"], value: LexicalHandler) -> None: ...
|
|
49
|
+
|
|
50
|
+
@overload
|
|
51
|
+
def setProperty(
|
|
52
|
+
self, name: Literal["http://www.python.org/sax/properties/interning-dict"], value: dict[str, Any]
|
|
53
|
+
) -> None: ...
|
|
54
|
+
@overload
|
|
55
|
+
def setProperty(self, name: str, value: object) -> None: ...
|
|
27
56
|
if sys.version_info >= (3, 9):
|
|
28
|
-
def feed(self, data, isFinal: bool = False) -> None: ...
|
|
57
|
+
def feed(self, data: str | ReadableBuffer, isFinal: bool = False) -> None: ...
|
|
29
58
|
else:
|
|
30
|
-
def feed(self, data, isFinal:
|
|
59
|
+
def feed(self, data: str | ReadableBuffer, isFinal: _BoolType = 0) -> None: ...
|
|
31
60
|
|
|
32
61
|
def flush(self) -> None: ...
|
|
33
62
|
def close(self) -> None: ...
|
|
34
63
|
def reset(self) -> None: ...
|
|
35
64
|
def getColumnNumber(self) -> int | None: ...
|
|
36
65
|
def getLineNumber(self) -> int: ...
|
|
37
|
-
def getPublicId(self): ...
|
|
38
|
-
def getSystemId(self): ...
|
|
39
|
-
def start_element(self, name: str, attrs:
|
|
66
|
+
def getPublicId(self) -> str | None: ...
|
|
67
|
+
def getSystemId(self) -> str | None: ...
|
|
68
|
+
def start_element(self, name: str, attrs: Mapping[str, str]) -> None: ...
|
|
40
69
|
def end_element(self, name: str) -> None: ...
|
|
41
|
-
def start_element_ns(self, name: str, attrs) -> None: ...
|
|
70
|
+
def start_element_ns(self, name: str, attrs: Mapping[str, str]) -> None: ...
|
|
42
71
|
def end_element_ns(self, name: str) -> None: ...
|
|
43
72
|
def processing_instruction(self, target: str, data: str) -> None: ...
|
|
44
73
|
def character_data(self, data: str) -> None: ...
|
|
45
74
|
def start_namespace_decl(self, prefix: str | None, uri: str) -> None: ...
|
|
46
75
|
def end_namespace_decl(self, prefix: str | None) -> None: ...
|
|
47
|
-
def start_doctype_decl(self, name: str, sysid: str | None, pubid: str | None, has_internal_subset:
|
|
48
|
-
def unparsed_entity_decl(self, name, base, sysid, pubid, notation_name) -> None: ...
|
|
49
|
-
def notation_decl(self, name, base, sysid, pubid) -> None: ...
|
|
50
|
-
def external_entity_ref(self, context, base, sysid, pubid): ...
|
|
76
|
+
def start_doctype_decl(self, name: str, sysid: str | None, pubid: str | None, has_internal_subset: bool) -> None: ...
|
|
77
|
+
def unparsed_entity_decl(self, name: str, base: str | None, sysid: str, pubid: str | None, notation_name: str) -> None: ...
|
|
78
|
+
def notation_decl(self, name: str, base: str | None, sysid: str, pubid: str | None) -> None: ...
|
|
79
|
+
def external_entity_ref(self, context: str, base: str | None, sysid: str, pubid: str | None) -> int: ...
|
|
51
80
|
def skipped_entity_handler(self, name: str, is_pe: bool) -> None: ...
|
|
52
81
|
|
|
53
82
|
def create_parser(namespaceHandling: int = 0, bufsize: int = 65516) -> ExpatParser: ...
|
|
@@ -1,14 +1,36 @@
|
|
|
1
1
|
import sys
|
|
2
|
-
from typing import NoReturn
|
|
2
|
+
from typing import Literal, NoReturn, Protocol, type_check_only
|
|
3
3
|
from xml.sax import xmlreader
|
|
4
4
|
|
|
5
5
|
version: str
|
|
6
6
|
|
|
7
|
+
@type_check_only
|
|
8
|
+
class _ErrorHandlerProtocol(Protocol): # noqa: Y046 # Protocol is not used
|
|
9
|
+
def error(self, exception: BaseException) -> NoReturn: ...
|
|
10
|
+
def fatalError(self, exception: BaseException) -> NoReturn: ...
|
|
11
|
+
def warning(self, exception: BaseException) -> None: ...
|
|
12
|
+
|
|
7
13
|
class ErrorHandler:
|
|
8
14
|
def error(self, exception: BaseException) -> NoReturn: ...
|
|
9
15
|
def fatalError(self, exception: BaseException) -> NoReturn: ...
|
|
10
16
|
def warning(self, exception: BaseException) -> None: ...
|
|
11
17
|
|
|
18
|
+
@type_check_only
|
|
19
|
+
class _ContentHandlerProtocol(Protocol): # noqa: Y046 # Protocol is not used
|
|
20
|
+
def setDocumentLocator(self, locator: xmlreader.Locator) -> None: ...
|
|
21
|
+
def startDocument(self) -> None: ...
|
|
22
|
+
def endDocument(self) -> None: ...
|
|
23
|
+
def startPrefixMapping(self, prefix: str | None, uri: str) -> None: ...
|
|
24
|
+
def endPrefixMapping(self, prefix: str | None) -> None: ...
|
|
25
|
+
def startElement(self, name: str, attrs: xmlreader.AttributesImpl) -> None: ...
|
|
26
|
+
def endElement(self, name: str) -> None: ...
|
|
27
|
+
def startElementNS(self, name: tuple[str | None, str], qname: str | None, attrs: xmlreader.AttributesNSImpl) -> None: ...
|
|
28
|
+
def endElementNS(self, name: tuple[str | None, str], qname: str | None) -> None: ...
|
|
29
|
+
def characters(self, content: str) -> None: ...
|
|
30
|
+
def ignorableWhitespace(self, whitespace: str) -> None: ...
|
|
31
|
+
def processingInstruction(self, target: str, data: str) -> None: ...
|
|
32
|
+
def skippedEntity(self, name: str) -> None: ...
|
|
33
|
+
|
|
12
34
|
class ContentHandler:
|
|
13
35
|
def setDocumentLocator(self, locator: xmlreader.Locator) -> None: ...
|
|
14
36
|
def startDocument(self) -> None: ...
|
|
@@ -17,19 +39,28 @@ class ContentHandler:
|
|
|
17
39
|
def endPrefixMapping(self, prefix: str | None) -> None: ...
|
|
18
40
|
def startElement(self, name: str, attrs: xmlreader.AttributesImpl) -> None: ...
|
|
19
41
|
def endElement(self, name: str) -> None: ...
|
|
20
|
-
def startElementNS(self, name: tuple[str, str], qname: str, attrs: xmlreader.AttributesNSImpl) -> None: ...
|
|
21
|
-
def endElementNS(self, name: tuple[str, str], qname: str) -> None: ...
|
|
42
|
+
def startElementNS(self, name: tuple[str | None, str], qname: str | None, attrs: xmlreader.AttributesNSImpl) -> None: ...
|
|
43
|
+
def endElementNS(self, name: tuple[str | None, str], qname: str | None) -> None: ...
|
|
22
44
|
def characters(self, content: str) -> None: ...
|
|
23
45
|
def ignorableWhitespace(self, whitespace: str) -> None: ...
|
|
24
46
|
def processingInstruction(self, target: str, data: str) -> None: ...
|
|
25
47
|
def skippedEntity(self, name: str) -> None: ...
|
|
26
48
|
|
|
49
|
+
@type_check_only
|
|
50
|
+
class _DTDHandlerProtocol(Protocol): # noqa: Y046 # Protocol is not used
|
|
51
|
+
def notationDecl(self, name: str, publicId: str | None, systemId: str) -> None: ...
|
|
52
|
+
def unparsedEntityDecl(self, name: str, publicId: str | None, systemId: str, ndata: str) -> None: ...
|
|
53
|
+
|
|
27
54
|
class DTDHandler:
|
|
28
|
-
def notationDecl(self, name, publicId, systemId): ...
|
|
29
|
-
def unparsedEntityDecl(self, name, publicId, systemId, ndata): ...
|
|
55
|
+
def notationDecl(self, name: str, publicId: str | None, systemId: str) -> None: ...
|
|
56
|
+
def unparsedEntityDecl(self, name: str, publicId: str | None, systemId: str, ndata: str) -> None: ...
|
|
57
|
+
|
|
58
|
+
@type_check_only
|
|
59
|
+
class _EntityResolverProtocol(Protocol): # noqa: Y046 # Protocol is not used
|
|
60
|
+
def resolveEntity(self, publicId: str | None, systemId: str) -> str: ...
|
|
30
61
|
|
|
31
62
|
class EntityResolver:
|
|
32
|
-
def resolveEntity(self, publicId, systemId): ...
|
|
63
|
+
def resolveEntity(self, publicId: str | None, systemId: str) -> str: ...
|
|
33
64
|
|
|
34
65
|
feature_namespaces: str
|
|
35
66
|
feature_namespace_prefixes: str
|
|
@@ -38,18 +69,18 @@ feature_validation: str
|
|
|
38
69
|
feature_external_ges: str
|
|
39
70
|
feature_external_pes: str
|
|
40
71
|
all_features: list[str]
|
|
41
|
-
property_lexical_handler:
|
|
42
|
-
property_declaration_handler:
|
|
43
|
-
property_dom_node:
|
|
44
|
-
property_xml_string:
|
|
45
|
-
property_encoding:
|
|
46
|
-
property_interning_dict:
|
|
72
|
+
property_lexical_handler: Literal["http://xml.org/sax/properties/lexical-handler"]
|
|
73
|
+
property_declaration_handler: Literal["http://xml.org/sax/properties/declaration-handler"]
|
|
74
|
+
property_dom_node: Literal["http://xml.org/sax/properties/dom-node"]
|
|
75
|
+
property_xml_string: Literal["http://xml.org/sax/properties/xml-string"]
|
|
76
|
+
property_encoding: Literal["http://www.python.org/sax/properties/encoding"]
|
|
77
|
+
property_interning_dict: Literal["http://www.python.org/sax/properties/interning-dict"]
|
|
47
78
|
all_properties: list[str]
|
|
48
79
|
|
|
49
80
|
if sys.version_info >= (3, 10):
|
|
50
81
|
class LexicalHandler:
|
|
51
|
-
def comment(self, content: str) ->
|
|
52
|
-
def startDTD(self, name: str, public_id: str | None, system_id: str | None) ->
|
|
53
|
-
def endDTD(self) ->
|
|
54
|
-
def startCDATA(self) ->
|
|
55
|
-
def endCDATA(self) ->
|
|
82
|
+
def comment(self, content: str) -> None: ...
|
|
83
|
+
def startDTD(self, name: str, public_id: str | None, system_id: str | None) -> None: ...
|
|
84
|
+
def endDTD(self) -> None: ...
|
|
85
|
+
def startCDATA(self) -> None: ...
|
|
86
|
+
def endCDATA(self) -> None: ...
|
|
@@ -2,6 +2,7 @@ from _typeshed import SupportsWrite
|
|
|
2
2
|
from codecs import StreamReaderWriter, StreamWriter
|
|
3
3
|
from collections.abc import Mapping
|
|
4
4
|
from io import RawIOBase, TextIOBase
|
|
5
|
+
from typing import Literal, NoReturn
|
|
5
6
|
from xml.sax import _Source, handler, xmlreader
|
|
6
7
|
|
|
7
8
|
def escape(data: str, entities: Mapping[str, str] = {}) -> str: ...
|
|
@@ -15,23 +16,26 @@ class XMLGenerator(handler.ContentHandler):
|
|
|
15
16
|
encoding: str = "iso-8859-1",
|
|
16
17
|
short_empty_elements: bool = False,
|
|
17
18
|
) -> None: ...
|
|
19
|
+
def _qname(self, name: tuple[str | None, str]) -> str: ...
|
|
18
20
|
def startDocument(self) -> None: ...
|
|
19
21
|
def endDocument(self) -> None: ...
|
|
20
22
|
def startPrefixMapping(self, prefix: str | None, uri: str) -> None: ...
|
|
21
23
|
def endPrefixMapping(self, prefix: str | None) -> None: ...
|
|
22
24
|
def startElement(self, name: str, attrs: xmlreader.AttributesImpl) -> None: ...
|
|
23
25
|
def endElement(self, name: str) -> None: ...
|
|
24
|
-
def startElementNS(self, name: tuple[str, str], qname: str, attrs: xmlreader.AttributesNSImpl) -> None: ...
|
|
25
|
-
def endElementNS(self, name: tuple[str, str], qname: str) -> None: ...
|
|
26
|
+
def startElementNS(self, name: tuple[str | None, str], qname: str | None, attrs: xmlreader.AttributesNSImpl) -> None: ...
|
|
27
|
+
def endElementNS(self, name: tuple[str | None, str], qname: str | None) -> None: ...
|
|
26
28
|
def characters(self, content: str) -> None: ...
|
|
27
29
|
def ignorableWhitespace(self, content: str) -> None: ...
|
|
28
30
|
def processingInstruction(self, target: str, data: str) -> None: ...
|
|
29
31
|
|
|
30
32
|
class XMLFilterBase(xmlreader.XMLReader):
|
|
31
33
|
def __init__(self, parent: xmlreader.XMLReader | None = None) -> None: ...
|
|
32
|
-
|
|
33
|
-
def
|
|
34
|
-
def
|
|
34
|
+
# ErrorHandler methods
|
|
35
|
+
def error(self, exception: BaseException) -> NoReturn: ...
|
|
36
|
+
def fatalError(self, exception: BaseException) -> NoReturn: ...
|
|
37
|
+
def warning(self, exception: BaseException) -> None: ...
|
|
38
|
+
# ContentHandler methods
|
|
35
39
|
def setDocumentLocator(self, locator: xmlreader.Locator) -> None: ...
|
|
36
40
|
def startDocument(self) -> None: ...
|
|
37
41
|
def endDocument(self) -> None: ...
|
|
@@ -39,22 +43,26 @@ class XMLFilterBase(xmlreader.XMLReader):
|
|
|
39
43
|
def endPrefixMapping(self, prefix: str | None) -> None: ...
|
|
40
44
|
def startElement(self, name: str, attrs: xmlreader.AttributesImpl) -> None: ...
|
|
41
45
|
def endElement(self, name: str) -> None: ...
|
|
42
|
-
def startElementNS(self, name: tuple[str, str], qname: str, attrs: xmlreader.AttributesNSImpl) -> None: ...
|
|
43
|
-
def endElementNS(self, name: tuple[str, str], qname: str) -> None: ...
|
|
46
|
+
def startElementNS(self, name: tuple[str | None, str], qname: str | None, attrs: xmlreader.AttributesNSImpl) -> None: ...
|
|
47
|
+
def endElementNS(self, name: tuple[str | None, str], qname: str | None) -> None: ...
|
|
44
48
|
def characters(self, content: str) -> None: ...
|
|
45
49
|
def ignorableWhitespace(self, chars: str) -> None: ...
|
|
46
50
|
def processingInstruction(self, target: str, data: str) -> None: ...
|
|
47
51
|
def skippedEntity(self, name: str) -> None: ...
|
|
48
|
-
|
|
49
|
-
def
|
|
50
|
-
def
|
|
51
|
-
|
|
52
|
-
def
|
|
53
|
-
|
|
54
|
-
def
|
|
52
|
+
# DTDHandler methods
|
|
53
|
+
def notationDecl(self, name: str, publicId: str | None, systemId: str) -> None: ...
|
|
54
|
+
def unparsedEntityDecl(self, name: str, publicId: str | None, systemId: str, ndata: str) -> None: ...
|
|
55
|
+
# EntityResolver methods
|
|
56
|
+
def resolveEntity(self, publicId: str | None, systemId: str) -> str: ...
|
|
57
|
+
# XMLReader methods
|
|
58
|
+
def parse(self, source: xmlreader.InputSource | _Source) -> None: ...
|
|
59
|
+
def setLocale(self, locale: str) -> None: ...
|
|
60
|
+
def getFeature(self, name: str) -> Literal[1, 0] | bool: ...
|
|
61
|
+
def setFeature(self, name: str, state: Literal[1, 0] | bool) -> None: ...
|
|
55
62
|
def getProperty(self, name: str) -> object: ...
|
|
56
63
|
def setProperty(self, name: str, value: object) -> None: ...
|
|
57
|
-
|
|
64
|
+
# XMLFilter methods
|
|
65
|
+
def getParent(self) -> xmlreader.XMLReader | None: ...
|
|
58
66
|
def setParent(self, parent: xmlreader.XMLReader) -> None: ...
|
|
59
67
|
|
|
60
|
-
def prepare_input_source(source, base=""): ...
|
|
68
|
+
def prepare_input_source(source: xmlreader.InputSource | _Source, base: str = "") -> xmlreader.InputSource: ...
|
|
@@ -1,87 +1,90 @@
|
|
|
1
|
+
from _typeshed import ReadableBuffer
|
|
1
2
|
from collections.abc import Mapping
|
|
2
|
-
from typing import overload
|
|
3
|
+
from typing import Generic, Literal, TypeVar, overload
|
|
3
4
|
from typing_extensions import Self, TypeAlias
|
|
4
|
-
from xml.sax
|
|
5
|
+
from xml.sax import _Source, _SupportsReadClose
|
|
6
|
+
from xml.sax.handler import _ContentHandlerProtocol, _DTDHandlerProtocol, _EntityResolverProtocol, _ErrorHandlerProtocol
|
|
5
7
|
|
|
6
8
|
class XMLReader:
|
|
7
|
-
def parse(self, source): ...
|
|
8
|
-
def getContentHandler(self) ->
|
|
9
|
-
def setContentHandler(self, handler:
|
|
10
|
-
def getDTDHandler(self) ->
|
|
11
|
-
def setDTDHandler(self, handler:
|
|
12
|
-
def getEntityResolver(self) ->
|
|
13
|
-
def setEntityResolver(self, resolver:
|
|
14
|
-
def getErrorHandler(self) ->
|
|
15
|
-
def setErrorHandler(self, handler:
|
|
16
|
-
def setLocale(self, locale): ...
|
|
17
|
-
def getFeature(self, name: str) ->
|
|
18
|
-
def setFeature(self, name: str, state:
|
|
9
|
+
def parse(self, source: InputSource | _Source) -> None: ...
|
|
10
|
+
def getContentHandler(self) -> _ContentHandlerProtocol: ...
|
|
11
|
+
def setContentHandler(self, handler: _ContentHandlerProtocol) -> None: ...
|
|
12
|
+
def getDTDHandler(self) -> _DTDHandlerProtocol: ...
|
|
13
|
+
def setDTDHandler(self, handler: _DTDHandlerProtocol) -> None: ...
|
|
14
|
+
def getEntityResolver(self) -> _EntityResolverProtocol: ...
|
|
15
|
+
def setEntityResolver(self, resolver: _EntityResolverProtocol) -> None: ...
|
|
16
|
+
def getErrorHandler(self) -> _ErrorHandlerProtocol: ...
|
|
17
|
+
def setErrorHandler(self, handler: _ErrorHandlerProtocol) -> None: ...
|
|
18
|
+
def setLocale(self, locale: str) -> None: ...
|
|
19
|
+
def getFeature(self, name: str) -> Literal[0, 1] | bool: ...
|
|
20
|
+
def setFeature(self, name: str, state: Literal[0, 1] | bool) -> None: ...
|
|
19
21
|
def getProperty(self, name: str) -> object: ...
|
|
20
22
|
def setProperty(self, name: str, value: object) -> None: ...
|
|
21
23
|
|
|
22
24
|
class IncrementalParser(XMLReader):
|
|
23
25
|
def __init__(self, bufsize: int = 65536) -> None: ...
|
|
24
|
-
def parse(self, source): ...
|
|
25
|
-
def feed(self, data): ...
|
|
26
|
-
def prepareParser(self, source): ...
|
|
27
|
-
def close(self): ...
|
|
28
|
-
def reset(self): ...
|
|
26
|
+
def parse(self, source: InputSource | _Source) -> None: ...
|
|
27
|
+
def feed(self, data: str | ReadableBuffer) -> None: ...
|
|
28
|
+
def prepareParser(self, source: InputSource) -> None: ...
|
|
29
|
+
def close(self) -> None: ...
|
|
30
|
+
def reset(self) -> None: ...
|
|
29
31
|
|
|
30
32
|
class Locator:
|
|
31
|
-
def getColumnNumber(self): ...
|
|
32
|
-
def getLineNumber(self): ...
|
|
33
|
-
def getPublicId(self): ...
|
|
34
|
-
def getSystemId(self): ...
|
|
33
|
+
def getColumnNumber(self) -> int | None: ...
|
|
34
|
+
def getLineNumber(self) -> int | None: ...
|
|
35
|
+
def getPublicId(self) -> str | None: ...
|
|
36
|
+
def getSystemId(self) -> str | None: ...
|
|
35
37
|
|
|
36
38
|
class InputSource:
|
|
37
39
|
def __init__(self, system_id: str | None = None) -> None: ...
|
|
38
|
-
def setPublicId(self, public_id): ...
|
|
39
|
-
def getPublicId(self): ...
|
|
40
|
-
def setSystemId(self, system_id): ...
|
|
41
|
-
def getSystemId(self): ...
|
|
42
|
-
def setEncoding(self, encoding): ...
|
|
43
|
-
def getEncoding(self): ...
|
|
44
|
-
def setByteStream(self, bytefile): ...
|
|
45
|
-
def getByteStream(self): ...
|
|
46
|
-
def setCharacterStream(self, charfile): ...
|
|
47
|
-
def getCharacterStream(self): ...
|
|
40
|
+
def setPublicId(self, public_id: str | None) -> None: ...
|
|
41
|
+
def getPublicId(self) -> str | None: ...
|
|
42
|
+
def setSystemId(self, system_id: str | None) -> None: ...
|
|
43
|
+
def getSystemId(self) -> str | None: ...
|
|
44
|
+
def setEncoding(self, encoding: str | None) -> None: ...
|
|
45
|
+
def getEncoding(self) -> str | None: ...
|
|
46
|
+
def setByteStream(self, bytefile: _SupportsReadClose[bytes] | None) -> None: ...
|
|
47
|
+
def getByteStream(self) -> _SupportsReadClose[bytes] | None: ...
|
|
48
|
+
def setCharacterStream(self, charfile: _SupportsReadClose[str] | None) -> None: ...
|
|
49
|
+
def getCharacterStream(self) -> _SupportsReadClose[str] | None: ...
|
|
48
50
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
_AttrKey = TypeVar("_AttrKey", default=str)
|
|
52
|
+
|
|
53
|
+
class AttributesImpl(Generic[_AttrKey]):
|
|
54
|
+
def __init__(self, attrs: Mapping[_AttrKey, str]) -> None: ...
|
|
51
55
|
def getLength(self) -> int: ...
|
|
52
56
|
def getType(self, name: str) -> str: ...
|
|
53
|
-
def getValue(self, name:
|
|
57
|
+
def getValue(self, name: _AttrKey) -> str: ...
|
|
54
58
|
def getValueByQName(self, name: str) -> str: ...
|
|
55
|
-
def getNameByQName(self, name: str) ->
|
|
56
|
-
def getQNameByName(self, name:
|
|
57
|
-
def getNames(self) -> list[
|
|
59
|
+
def getNameByQName(self, name: str) -> _AttrKey: ...
|
|
60
|
+
def getQNameByName(self, name: _AttrKey) -> str: ...
|
|
61
|
+
def getNames(self) -> list[_AttrKey]: ...
|
|
58
62
|
def getQNames(self) -> list[str]: ...
|
|
59
63
|
def __len__(self) -> int: ...
|
|
60
|
-
def __getitem__(self, name:
|
|
61
|
-
def keys(self) -> list[
|
|
62
|
-
def __contains__(self, name:
|
|
64
|
+
def __getitem__(self, name: _AttrKey) -> str: ...
|
|
65
|
+
def keys(self) -> list[_AttrKey]: ...
|
|
66
|
+
def __contains__(self, name: _AttrKey) -> bool: ...
|
|
63
67
|
@overload
|
|
64
|
-
def get(self, name:
|
|
68
|
+
def get(self, name: _AttrKey, alternative: None = None) -> str | None: ...
|
|
65
69
|
@overload
|
|
66
|
-
def get(self, name:
|
|
70
|
+
def get(self, name: _AttrKey, alternative: str) -> str: ...
|
|
67
71
|
def copy(self) -> Self: ...
|
|
68
|
-
def items(self) -> list[tuple[
|
|
72
|
+
def items(self) -> list[tuple[_AttrKey, str]]: ...
|
|
69
73
|
def values(self) -> list[str]: ...
|
|
70
74
|
|
|
71
75
|
_NSName: TypeAlias = tuple[str | None, str]
|
|
72
76
|
|
|
73
|
-
class AttributesNSImpl(AttributesImpl):
|
|
77
|
+
class AttributesNSImpl(AttributesImpl[_NSName]):
|
|
74
78
|
def __init__(self, attrs: Mapping[_NSName, str], qnames: Mapping[_NSName, str]) -> None: ...
|
|
75
|
-
def
|
|
76
|
-
def
|
|
77
|
-
def
|
|
78
|
-
def
|
|
79
|
-
def
|
|
80
|
-
def
|
|
81
|
-
def
|
|
82
|
-
|
|
83
|
-
@overload # type: ignore[override]
|
|
79
|
+
def getValue(self, name: _NSName) -> str: ...
|
|
80
|
+
def getNameByQName(self, name: str) -> _NSName: ...
|
|
81
|
+
def getQNameByName(self, name: _NSName) -> str: ...
|
|
82
|
+
def getNames(self) -> list[_NSName]: ...
|
|
83
|
+
def __getitem__(self, name: _NSName) -> str: ...
|
|
84
|
+
def keys(self) -> list[_NSName]: ...
|
|
85
|
+
def __contains__(self, name: _NSName) -> bool: ...
|
|
86
|
+
@overload
|
|
84
87
|
def get(self, name: _NSName, alternative: None = None) -> str | None: ...
|
|
85
88
|
@overload
|
|
86
89
|
def get(self, name: _NSName, alternative: str) -> str: ...
|
|
87
|
-
def items(self) -> list[tuple[_NSName, str]]: ...
|
|
90
|
+
def items(self) -> list[tuple[_NSName, str]]: ...
|
|
@@ -362,14 +362,6 @@ else:
|
|
|
362
362
|
def joinpath(self, *other: StrPath) -> Path: ...
|
|
363
363
|
else:
|
|
364
364
|
def joinpath(self, add: StrPath) -> Path: ... # undocumented
|
|
365
|
-
if sys.version_info >= (3, 12):
|
|
366
|
-
def glob(self, pattern: str) -> Iterator[Self]: ...
|
|
367
|
-
def rglob(self, pattern: str) -> Iterator[Self]: ...
|
|
368
|
-
def is_symlink(self) -> Literal[False]: ...
|
|
369
|
-
def relative_to(self, other: Path, *extra: StrPath) -> str: ...
|
|
370
|
-
def match(self, path_pattern: str) -> bool: ...
|
|
371
|
-
def __eq__(self, other: object) -> bool: ...
|
|
372
|
-
def __hash__(self) -> int: ...
|
|
373
365
|
|
|
374
366
|
def __truediv__(self, add: StrPath) -> Path: ...
|
|
375
367
|
|
|
@@ -4,11 +4,9 @@ from collections.abc import Iterator, Sequence
|
|
|
4
4
|
from io import TextIOWrapper
|
|
5
5
|
from os import PathLike
|
|
6
6
|
from typing import IO, Literal, TypeVar, overload
|
|
7
|
-
from typing_extensions import Self
|
|
7
|
+
from typing_extensions import Self
|
|
8
8
|
from zipfile import ZipFile
|
|
9
9
|
|
|
10
|
-
_ReadWriteBinaryMode: TypeAlias = Literal["r", "w", "rb", "wb"]
|
|
11
|
-
|
|
12
10
|
_ZF = TypeVar("_ZF", bound=ZipFile)
|
|
13
11
|
|
|
14
12
|
if sys.version_info >= (3, 12):
|
|
@@ -39,42 +37,29 @@ if sys.version_info >= (3, 12):
|
|
|
39
37
|
def name(self) -> str: ...
|
|
40
38
|
@property
|
|
41
39
|
def parent(self) -> PathLike[str]: ... # undocumented
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
) -> TextIOWrapper: ...
|
|
66
|
-
@overload
|
|
67
|
-
def open(self, mode: Literal["rb", "wb"], *, pwd: bytes | None = None) -> IO[bytes]: ...
|
|
68
|
-
else:
|
|
69
|
-
def open(
|
|
70
|
-
self, mode: _ReadWriteBinaryMode = "r", pwd: bytes | None = None, *, force_zip64: bool = False
|
|
71
|
-
) -> IO[bytes]: ...
|
|
72
|
-
|
|
73
|
-
if sys.version_info >= (3, 10):
|
|
74
|
-
def iterdir(self) -> Iterator[Self]: ...
|
|
75
|
-
else:
|
|
76
|
-
def iterdir(self) -> Iterator[Path]: ...
|
|
77
|
-
|
|
40
|
+
@property
|
|
41
|
+
def filename(self) -> PathLike[str]: ... # undocumented
|
|
42
|
+
@property
|
|
43
|
+
def suffix(self) -> str: ...
|
|
44
|
+
@property
|
|
45
|
+
def suffixes(self) -> list[str]: ...
|
|
46
|
+
@property
|
|
47
|
+
def stem(self) -> str: ...
|
|
48
|
+
@overload
|
|
49
|
+
def open(
|
|
50
|
+
self,
|
|
51
|
+
mode: Literal["r", "w"] = "r",
|
|
52
|
+
encoding: str | None = None,
|
|
53
|
+
errors: str | None = None,
|
|
54
|
+
newline: str | None = None,
|
|
55
|
+
line_buffering: bool = ...,
|
|
56
|
+
write_through: bool = ...,
|
|
57
|
+
*,
|
|
58
|
+
pwd: bytes | None = None,
|
|
59
|
+
) -> TextIOWrapper: ...
|
|
60
|
+
@overload
|
|
61
|
+
def open(self, mode: Literal["rb", "wb"], *, pwd: bytes | None = None) -> IO[bytes]: ...
|
|
62
|
+
def iterdir(self) -> Iterator[Self]: ...
|
|
78
63
|
def is_dir(self) -> bool: ...
|
|
79
64
|
def is_file(self) -> bool: ...
|
|
80
65
|
def exists(self) -> bool: ...
|
|
@@ -87,17 +72,12 @@ if sys.version_info >= (3, 12):
|
|
|
87
72
|
write_through: bool = ...,
|
|
88
73
|
) -> str: ...
|
|
89
74
|
def read_bytes(self) -> bytes: ...
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
def relative_to(self, other: Path, *extra: StrPath) -> str: ...
|
|
99
|
-
def match(self, path_pattern: str) -> bool: ...
|
|
100
|
-
def __eq__(self, other: object) -> bool: ...
|
|
101
|
-
def __hash__(self) -> int: ...
|
|
102
|
-
|
|
75
|
+
def joinpath(self, *other: StrPath) -> Path: ...
|
|
76
|
+
def glob(self, pattern: str) -> Iterator[Self]: ...
|
|
77
|
+
def rglob(self, pattern: str) -> Iterator[Self]: ...
|
|
78
|
+
def is_symlink(self) -> Literal[False]: ...
|
|
79
|
+
def relative_to(self, other: Path, *extra: StrPath) -> str: ...
|
|
80
|
+
def match(self, path_pattern: str) -> bool: ...
|
|
81
|
+
def __eq__(self, other: object) -> bool: ...
|
|
82
|
+
def __hash__(self) -> int: ...
|
|
103
83
|
def __truediv__(self, add: StrPath) -> Path: ...
|
|
@@ -27,5 +27,10 @@ class ClassicAdapter:
|
|
|
27
27
|
def deprecated(wrapped: _F, /) -> _F: ...
|
|
28
28
|
@overload
|
|
29
29
|
def deprecated(
|
|
30
|
-
reason: str = ...,
|
|
30
|
+
reason: str = ...,
|
|
31
|
+
*,
|
|
32
|
+
version: str = ...,
|
|
33
|
+
action: _Actions | None = ...,
|
|
34
|
+
category: type[Warning] | None = ...,
|
|
35
|
+
extra_stacklevel: int = 0,
|
|
31
36
|
) -> Callable[[_F], _F]: ...
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import sys
|
|
2
|
+
from collections.abc import Generator
|
|
2
3
|
from typing import Any
|
|
3
4
|
|
|
4
|
-
from pkg_resources import EntryPoint
|
|
5
5
|
from pygments.filter import Filter
|
|
6
6
|
from pygments.formatter import Formatter
|
|
7
7
|
from pygments.lexer import Lexer
|
|
@@ -12,7 +12,15 @@ FORMATTER_ENTRY_POINT: str
|
|
|
12
12
|
STYLE_ENTRY_POINT: str
|
|
13
13
|
FILTER_ENTRY_POINT: str
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
if sys.version_info >= (3, 10):
|
|
16
|
+
from importlib.metadata import EntryPoints
|
|
17
|
+
def iter_entry_points(group_name: str) -> EntryPoints: ...
|
|
18
|
+
|
|
19
|
+
else:
|
|
20
|
+
from importlib.metadata import EntryPoint
|
|
21
|
+
|
|
22
|
+
def iter_entry_points(group_name: str) -> tuple[EntryPoint, ...] | list[EntryPoint]: ...
|
|
23
|
+
|
|
16
24
|
def find_plugin_lexers() -> Generator[type[Lexer], None, None]: ...
|
|
17
25
|
def find_plugin_formatters() -> Generator[tuple[str, type[Formatter[Any]]], None, None]: ...
|
|
18
26
|
def find_plugin_styles() -> Generator[tuple[str, type[Style]], None, None]: ...
|
|
@@ -62,5 +62,5 @@ class PWM:
|
|
|
62
62
|
def __init__(self, channel: int, frequency: float, /) -> None: ...
|
|
63
63
|
def start(self, dutycycle: float, /) -> None: ...
|
|
64
64
|
def ChangeDutyCycle(self, dutycycle: float, /) -> None: ...
|
|
65
|
-
def
|
|
65
|
+
def ChangeFrequency(self, frequency: float, /) -> None: ...
|
|
66
66
|
def stop(self) -> None: ...
|