From 9eeccee69df2b3f0a70bc414616446bdfcc6c952 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" <1330696+mr-c@users.noreply.github.com> Date: Mon, 1 Aug 2022 20:02:30 +0200 Subject: [PATCH] MyPy stubs rename (#1699) * rename our local type stubs dir & fix types As per https://github.com/python/mypy/pull/13155#issuecomment-1190220245 * upgrade minimum ruamel.yaml versions --- .gitignore | 6 +- MANIFEST.in | 2 +- Makefile | 16 +- cwltool.Dockerfile | 4 +- cwltool/cwlrdf.py | 77 ++- cwltool/cwlviewer.py | 41 +- cwltool/provenance_profile.py | 71 ++- cwltool/software_requirements.py | 8 +- mypy-stubs/arcp/__init__.pyi | 6 + mypy-stubs/arcp/parse.pyi | 25 + mypy-stubs/argcomplete/__init__.pyi | 18 + mypy-stubs/bagit.pyi | 50 ++ {typeshed => mypy-stubs}/black/__init__.pyi | 0 .../cachecontrol/__init__.pyi | 3 - mypy-stubs/cachecontrol/cache.pyi | 5 + .../cachecontrol/caches/__init__.pyi | 0 mypy-stubs/cachecontrol/caches/file_cache.pyi | 31 ++ .../cachecontrol/compat.pyi | 0 mypy-stubs/cachecontrol/controller.pyi | 17 + mypy-stubs/cachecontrol/wrapper.pyi | 13 + mypy-stubs/coloredlogs/__init__.pyi | 7 + .../graphviz/__init__.pyi | 0 {typeshed => mypy-stubs}/graphviz/_compat.pyi | 1 + {typeshed => mypy-stubs}/graphviz/backend.pyi | 0 mypy-stubs/graphviz/dot.pyi | 78 +++ mypy-stubs/graphviz/files.pyi | 73 +++ mypy-stubs/graphviz/lang.pyi | 22 + {typeshed => mypy-stubs}/graphviz/tools.pyi | 0 mypy-stubs/mistune.pyi | 197 ++++++++ .../networkx/__init__.pyi | 0 .../networkx/algorithms/__init__.pyi | 20 +- .../algorithms/approximation/__init__.pyi | 4 +- .../algorithms/approximation/clique.pyi | 0 .../approximation/clustering_coefficient.pyi | 0 .../algorithms/approximation/connectivity.pyi | 4 +- .../approximation/dominating_set.pyi | 0 .../approximation/independent_set.pyi | 0 .../algorithms/approximation/kcomponents.pyi | 8 +- .../algorithms/approximation/matching.pyi | 0 .../algorithms/approximation/ramsey.pyi | 0 .../algorithms/approximation/steinertree.pyi | 0 .../algorithms/approximation/vertex_cover.pyi | 0 .../algorithms/assortativity/__init__.pyi | 0 .../algorithms/assortativity/connectivity.pyi | 9 +- .../algorithms/assortativity/correlation.pyi | 16 +- .../algorithms/assortativity/mixing.pyi | 36 ++ .../assortativity/neighbor_degree.pyi | 8 +- .../algorithms/assortativity/pairs.pyi | 8 +- .../algorithms/bipartite/__init__.pyi | 2 +- .../networkx/algorithms/bipartite/basic.pyi | 0 .../algorithms/bipartite/centrality.pyi | 0 .../networkx/algorithms/bipartite/cluster.pyi | 1 + .../algorithms/bipartite/covering.pyi | 0 .../algorithms/bipartite/edgelist.pyi | 33 ++ .../algorithms/bipartite/generators.pyi | 8 +- .../algorithms/bipartite/matching.pyi | 1 + .../networkx/algorithms/bipartite/matrix.pyi | 17 + .../algorithms/bipartite/projection.pyi | 4 +- .../algorithms/bipartite/redundancy.pyi | 0 .../algorithms/bipartite/spectral.pyi | 0 .../networkx/algorithms/boundary.pyi | 9 +- .../networkx/algorithms/bridges.pyi | 0 .../algorithms/centrality/betweenness.pyi | 28 ++ .../centrality/betweenness_subset.pyi | 15 + .../algorithms/centrality/closeness.pyi | 8 +- .../centrality/current_flow_betweenness.pyi | 31 ++ .../current_flow_betweenness_subset.pyi | 26 + .../centrality/current_flow_closeness.pyi | 8 +- .../algorithms/centrality/degree_alg.pyi | 0 .../algorithms/centrality/dispersion.pyi | 10 +- .../algorithms/centrality/eigenvector.pyi | 16 + .../algorithms/centrality/flow_matrix.pyi | 16 +- .../algorithms/centrality/harmonic.pyi | 4 +- .../networkx/algorithms/centrality/katz.pyi | 23 + .../networkx/algorithms/centrality/load.pyi | 0 .../algorithms/centrality/reaching.pyi | 16 + .../algorithms/centrality/subgraph_alg.pyi | 0 .../networkx/algorithms/chains.pyi | 0 .../networkx/algorithms/chordal.pyi | 3 +- .../networkx/algorithms/clique.pyi | 11 +- .../networkx/algorithms/cluster.pyi | 4 +- .../networkx/algorithms/coloring/__init__.pyi | 0 .../algorithms/coloring/greedy_coloring.pyi | 0 .../greedy_coloring_with_interchange.pyi | 0 .../algorithms/communicability_alg.pyi | 0 .../algorithms/community/__init__.pyi | 2 +- .../algorithms/community/asyn_fluidc.pyi | 0 .../algorithms/community/centrality.pyi | 0 .../community/community_generators.pyi | 20 + .../algorithms/community/community_utils.pyi | 0 .../networkx/algorithms/community/kclique.pyi | 0 .../algorithms/community/kernighan_lin.pyi | 4 +- .../community/label_propagation.pyi | 0 .../networkx/algorithms/community/quality.pyi | 0 .../algorithms/components/__init__.pyi | 6 +- .../algorithms/components/attracting.pyi | 0 .../algorithms/components/biconnected.pyi | 0 .../algorithms/components/connected.pyi | 0 .../algorithms/components/semiconnected.pyi | 0 .../components/strongly_connected.pyi | 0 .../components/weakly_connected.pyi | 0 .../algorithms/connectivity/__init__.pyi | 2 +- .../algorithms/connectivity/connectivity.pyi | 42 ++ .../networkx/algorithms/connectivity/cuts.pyi | 32 ++ .../connectivity/disjoint_paths.pyi | 28 ++ .../connectivity/edge_augmentation.pyi | 6 +- .../connectivity/edge_kcomponents.pyi | 3 - .../algorithms/connectivity/kcomponents.pyi | 3 +- .../algorithms/connectivity/kcutsets.pyi | 3 +- .../algorithms/connectivity/stoerwagner.pyi | 0 .../algorithms/connectivity/utils.pyi | 0 .../networkx/algorithms/core.pyi | 1 + .../networkx/algorithms/covering.pyi | 0 .../networkx/algorithms/cuts.pyi | 0 .../networkx/algorithms/cycles.pyi | 0 .../networkx/algorithms/dag.pyi | 0 .../networkx/algorithms/distance_measures.pyi | 0 .../networkx/algorithms/distance_regular.pyi | 0 .../networkx/algorithms/dominance.pyi | 0 .../networkx/algorithms/dominating.pyi | 0 .../networkx/algorithms/efficiency.pyi | 0 .../networkx/algorithms/euler.pyi | 0 .../networkx/algorithms/flow/__init__.pyi | 8 +- .../algorithms/flow/boykovkolmogorov.pyi | 10 +- .../algorithms/flow/capacityscaling.pyi | 4 +- .../networkx/algorithms/flow/dinitz_alg.pyi | 10 +- .../networkx/algorithms/flow/edmondskarp.pyi | 13 +- .../networkx/algorithms/flow/gomory_hu.pyi | 3 +- .../networkx/algorithms/flow/maxflow.pyi | 22 + .../networkx/algorithms/flow/mincost.pyi | 4 +- .../algorithms/flow/networksimplex.pyi | 0 .../networkx/algorithms/flow/preflowpush.pyi | 10 +- .../flow/shortestaugmentingpath.pyi | 14 +- .../networkx/algorithms/flow/utils.pyi | 0 .../networkx/algorithms/graphical.pyi | 0 .../networkx/algorithms/hierarchy.pyi | 0 .../networkx/algorithms/hybrid.pyi | 4 +- .../networkx/algorithms/isolate.pyi | 0 .../algorithms/isomorphism/__init__.pyi | 2 +- .../algorithms/isomorphism/isomorph.pyi | 7 +- .../algorithms/isomorphism/isomorphvf2.pyi | 8 +- .../algorithms/isomorphism/matchhelpers.pyi | 0 .../isomorphism/temporalisomorphvf2.pyi | 3 +- .../algorithms/isomorphism/vf2userfunc.pyi | 11 +- .../algorithms/link_analysis/__init__.pyi | 2 +- .../algorithms/link_analysis/hits_alg.pyi | 8 +- .../algorithms/link_analysis/pagerank_alg.pyi | 40 ++ .../networkx/algorithms/link_prediction.pyi | 8 +- .../algorithms/lowest_common_ancestors.pyi | 4 +- .../networkx/algorithms/matching.pyi | 0 .../networkx/algorithms/minors.pyi | 11 +- .../networkx/algorithms/mis.pyi | 0 .../algorithms/operators/__init__.pyi | 0 .../networkx/algorithms/operators/all.pyi | 0 .../networkx/algorithms/operators/binary.pyi | 0 .../networkx/algorithms/operators/product.pyi | 0 .../networkx/algorithms/operators/unary.pyi | 0 .../networkx/algorithms/reciprocity.pyi | 0 .../networkx/algorithms/richclub.pyi | 0 .../algorithms/shortest_paths/__init__.pyi | 4 +- .../algorithms/shortest_paths/astar.pyi | 12 + .../algorithms/shortest_paths/dense.pyi | 0 .../algorithms/shortest_paths/generic.pyi | 14 +- .../algorithms/shortest_paths/unweighted.pyi | 8 +- .../algorithms/shortest_paths/weighted.pyi | 72 +++ mypy-stubs/networkx/algorithms/similarity.pyi | 60 +++ .../networkx/algorithms/simple_paths.pyi | 0 .../networkx/algorithms/smetric.pyi | 0 .../networkx/algorithms/structuralholes.pyi | 0 .../networkx/algorithms/swap.pyi | 0 .../networkx/algorithms/threshold.pyi | 0 .../networkx/algorithms/tournament.pyi | 0 .../algorithms/traversal/__init__.pyi | 0 .../algorithms/traversal/beamsearch.pyi | 0 .../traversal/breadth_first_search.pyi | 0 .../traversal/depth_first_search.pyi | 23 + .../networkx/algorithms/traversal/edgedfs.pyi | 0 .../networkx/algorithms/tree/__init__.pyi | 2 +- .../networkx/algorithms/tree/branchings.pyi | 7 +- .../networkx/algorithms/tree/coding.pyi | 0 mypy-stubs/networkx/algorithms/tree/mst.pyi | 26 + .../networkx/algorithms/tree/operations.pyi | 0 .../networkx/algorithms/tree/recognition.pyi | 0 .../networkx/algorithms/triads.pyi | 0 .../networkx/algorithms/vitality.pyi | 7 +- .../networkx/algorithms/voronoi.pyi | 0 .../networkx/algorithms/wiener.pyi | 0 .../networkx/classes/__init__.pyi | 4 +- .../networkx/classes/coreviews.pyi | 0 .../networkx/classes/digraph.pyi | 3 +- .../networkx/classes/filters.pyi | 0 .../networkx/classes/function.pyi | 4 +- .../networkx/classes/graph.pyi | 4 +- .../networkx/classes/graphviews.pyi | 19 +- .../networkx/classes/multidigraph.pyi | 3 +- .../networkx/classes/multigraph.pyi | 7 +- .../networkx/classes/ordered.pyi | 3 +- .../networkx/classes/reportviews.pyi | 55 ++- {typeshed => mypy-stubs}/networkx/convert.pyi | 12 +- mypy-stubs/networkx/convert_matrix.pyi | 74 +++ .../networkx/drawing/__init__.pyi | 0 mypy-stubs/networkx/drawing/layout.pyi | 48 ++ .../networkx/drawing/nx_agraph.pyi | 13 +- .../networkx/drawing/nx_pydot.pyi | 0 mypy-stubs/networkx/drawing/nx_pylab.pyi | 82 ++++ .../networkx/exception.pyi | 0 .../networkx/generators/atlas.pyi | 0 .../networkx/generators/classic.pyi | 0 .../networkx/generators/community.pyi | 12 +- .../networkx/generators/degree_seq.pyi | 19 +- mypy-stubs/networkx/generators/directed.pyi | 27 + .../networkx/generators/duplication.pyi | 0 .../networkx/generators/ego.pyi | 9 +- .../networkx/generators/expanders.pyi | 0 mypy-stubs/networkx/generators/geometric.pyi | 51 ++ .../networkx/generators/intersection.pyi | 0 .../networkx/generators/joint_degree_seq.pyi | 0 .../networkx/generators/lattice.pyi | 16 +- .../networkx/generators/line.pyi | 3 +- .../networkx/generators/mycielski.pyi | 0 .../generators/nonisomorphic_trees.pyi | 0 .../networkx/generators/random_clustered.pyi | 4 +- .../networkx/generators/random_graphs.pyi | 17 +- .../networkx/generators/small.pyi | 0 .../networkx/generators/social.pyi | 0 .../networkx/generators/stochastic.pyi | 0 .../networkx/generators/trees.pyi | 0 .../networkx/generators/triads.pyi | 0 .../networkx/linalg/__init__.pyi | 4 +- .../networkx/linalg/algebraicconnectivity.pyi | 12 +- mypy-stubs/networkx/linalg/attrmatrix.pyi | 23 + .../networkx/linalg/graphmatrix.pyi | 9 +- .../networkx/linalg/laplacianmatrix.pyi | 17 + .../networkx/linalg/modularitymatrix.pyi | 12 + .../networkx/linalg/spectrum.pyi | 0 .../networkx/readwrite/__init__.pyi | 16 +- mypy-stubs/networkx/readwrite/adjlist.pyi | 25 + mypy-stubs/networkx/readwrite/edgelist.pyi | 44 ++ .../networkx/readwrite/gexf.pyi | 20 +- .../networkx/readwrite/gml.pyi | 0 .../networkx/readwrite/gpickle.pyi | 0 .../networkx/readwrite/graph6.pyi | 0 .../networkx/readwrite/graphml.pyi | 38 +- .../readwrite/json_graph/__init__.pyi | 6 +- .../readwrite/json_graph/adjacency.pyi | 4 +- .../readwrite/json_graph/cytoscape.pyi | 0 .../networkx/readwrite/json_graph/jit.pyi | 0 .../readwrite/json_graph/node_link.pyi | 4 +- .../networkx/readwrite/json_graph/tree.pyi | 0 .../networkx/readwrite/leda.pyi | 0 .../networkx/readwrite/multiline_adjlist.pyi | 27 + .../networkx/readwrite/nx_shp.pyi | 4 +- .../networkx/readwrite/nx_yaml.pyi | 0 .../networkx/readwrite/p2g.pyi | 0 .../networkx/readwrite/pajek.pyi | 0 .../networkx/readwrite/sparse6.pyi | 0 {typeshed => mypy-stubs}/networkx/relabel.pyi | 4 +- {typeshed => mypy-stubs}/networkx/release.pyi | 0 .../networkx/tests/__init__.pyi | 1 - .../networkx/tests/test.pyi | 0 .../networkx/utils/__init__.pyi | 8 +- .../networkx/utils/contextmanagers.pyi | 0 .../networkx/utils/decorators.pyi | 0 .../networkx/utils/heaps.pyi | 2 + .../networkx/utils/misc.pyi | 0 .../networkx/utils/random_sequence.pyi | 4 +- .../networkx/utils/rcm.pyi | 0 .../networkx/utils/union_find.pyi | 0 {typeshed => mypy-stubs}/networkx/version.pyi | 0 mypy-stubs/prov/__init__.pyi | 8 + mypy-stubs/prov/constants.py | 217 ++++++++ mypy-stubs/prov/dot.pyi | 41 ++ mypy-stubs/prov/graph.pyi | 28 ++ mypy-stubs/prov/identifier.pyi | 31 ++ mypy-stubs/prov/model.pyi | 462 ++++++++++++++++++ mypy-stubs/prov/serializers/provjson.pyi | 42 ++ mypy-stubs/prov/serializers/provn.pyi | 8 + mypy-stubs/prov/serializers/provrdf.pyi | 67 +++ mypy-stubs/prov/serializers/provxml.pyi | 22 + mypy-stubs/pydot.pyi | 152 ++++++ {typeshed => mypy-stubs}/rdflib/__init__.pyi | 3 - mypy-stubs/rdflib/collection.pyi | 19 + {typeshed => mypy-stubs}/rdflib/container.pyi | 0 {typeshed => mypy-stubs}/rdflib/events.pyi | 0 .../rdflib/exceptions.pyi | 14 +- {typeshed => mypy-stubs}/rdflib/graph.pyi | 264 +++++----- .../rdflib/namespace/_CSVW.pyi | 0 .../rdflib/namespace/_DC.pyi | 0 .../rdflib/namespace/_DCAT.pyi | 0 .../rdflib/namespace/_DCTERMS.pyi | 0 .../rdflib/namespace/_DOAP.pyi | 0 .../rdflib/namespace/_FOAF.pyi | 0 .../rdflib/namespace/_ODRL2.pyi | 0 .../rdflib/namespace/_ORG.pyi | 0 .../rdflib/namespace/_OWL.pyi | 0 .../rdflib/namespace/_PROF.pyi | 0 .../rdflib/namespace/_PROV.pyi | 0 .../rdflib/namespace/_QB.pyi | 0 .../rdflib/namespace/_RDF.pyi | 0 .../rdflib/namespace/_RDFS.pyi | 0 .../rdflib/namespace/_SDO.pyi | 0 .../rdflib/namespace/_SH.pyi | 0 .../rdflib/namespace/_SKOS.pyi | 0 .../rdflib/namespace/_SOSA.pyi | 0 .../rdflib/namespace/_SSN.pyi | 0 .../rdflib/namespace/_TIME.pyi | 0 .../rdflib/namespace/_VOID.pyi | 0 .../rdflib/namespace/_XSD.pyi | 0 .../rdflib/namespace/__init__.pyi | 56 +-- mypy-stubs/rdflib/parser.pyi | 5 + mypy-stubs/rdflib/paths.pyi | 29 ++ mypy-stubs/rdflib/plugin.pyi | 10 + .../rdflib/plugins/__init__.pyi | 0 .../rdflib/plugins/parsers/__init__.pyi | 0 .../rdflib/plugins/parsers/notation3.pyi | 6 +- mypy-stubs/rdflib/query.pyi | 42 ++ mypy-stubs/rdflib/resource.pyi | 33 ++ .../rdflib/serializer.pyi | 0 {typeshed => mypy-stubs}/rdflib/store.pyi | 6 +- mypy-stubs/rdflib/term.pyi | 49 ++ {typeshed => mypy-stubs}/rdflib/util.pyi | 0 {typeshed => mypy-stubs}/ruamel/__init__.py | 0 .../shellescape/__init__.pyi | 0 {typeshed => mypy-stubs}/shellescape/main.pyi | 0 {typeshed => mypy-stubs}/subprocess.pyi | 53 +- {typeshed => mypy-stubs}/urllib/__init__.py | 0 {typeshed => mypy-stubs}/urllib/parse.pyi | 0 mypy.ini | 6 + requirements.txt | 1 + test-requirements.txt | 1 + tests/test_dependencies.py | 2 +- tests/test_provenance.py | 22 +- typeshed/arcp/__init__.pyi | 6 - typeshed/arcp/generate.pyi | 10 - typeshed/arcp/parse.pyi | 25 - typeshed/argcomplete/__init__.pyi | 22 - typeshed/bagit.pyi | 97 ---- typeshed/cachecontrol/adapter.pyi | 30 -- typeshed/cachecontrol/cache.pyi | 19 - typeshed/cachecontrol/caches/file_cache.pyi | 30 -- typeshed/cachecontrol/controller.pyi | 26 - typeshed/cachecontrol/filewrapper.pyi | 8 - typeshed/cachecontrol/serialize.pyi | 12 - typeshed/cachecontrol/wrapper.pyi | 16 - typeshed/coloredlogs/__init__.pyi | 94 ---- typeshed/galaxy/__init__.pyi | 13 - typeshed/galaxy/exceptions/__init__.pyi | 143 ------ typeshed/galaxy/exceptions/error_codes.pyi | 17 - typeshed/galaxy/jobs/__init__.pyi | 4 - typeshed/galaxy/jobs/metrics/__init__.pyi | 38 -- .../galaxy/jobs/metrics/collectl/__init__.pyi | 4 - typeshed/galaxy/jobs/metrics/collectl/cli.pyi | 12 - .../jobs/metrics/collectl/processes.pyi | 24 - .../galaxy/jobs/metrics/collectl/stats.pyi | 15 - .../jobs/metrics/collectl/subsystems.pyi | 35 -- typeshed/galaxy/jobs/metrics/formatting.pyi | 8 - .../jobs/metrics/instrumenters/__init__.pyi | 16 - .../jobs/metrics/instrumenters/collectl.pyi | 22 - .../jobs/metrics/instrumenters/core.pyi | 18 - .../jobs/metrics/instrumenters/cpuinfo.pyi | 18 - .../galaxy/jobs/metrics/instrumenters/env.pyi | 18 - .../jobs/metrics/instrumenters/meminfo.pyi | 18 - .../jobs/metrics/instrumenters/uname.pyi | 18 - typeshed/galaxy/objectstore/__init__.pyi | 80 --- typeshed/galaxy/objectstore/azure_blob.pyi | 29 -- typeshed/galaxy/objectstore/pulsar.pyi | 24 - typeshed/galaxy/objectstore/rods.pyi | 32 -- typeshed/galaxy/objectstore/s3.pyi | 34 -- .../objectstore/s3_multipart_upload.pyi | 13 - typeshed/galaxy/tool_util/__init__.pyi | 4 - typeshed/galaxy/tool_util/cwl/__init__.pyi | 8 - .../galaxy/tool_util/cwl/cwltool_deps.pyi | 22 - typeshed/galaxy/tool_util/cwl/parser.pyi | 94 ---- .../galaxy/tool_util/cwl/representation.pyi | 12 - .../galaxy/tool_util/cwl/runtime_actions.pyi | 7 - typeshed/galaxy/tool_util/cwl/schema.pyi | 22 - typeshed/galaxy/tool_util/deps/__init__.pyi | 41 -- typeshed/galaxy/tool_util/deps/brew_exts.pyi | 74 --- typeshed/galaxy/tool_util/deps/brew_util.pyi | 18 - typeshed/galaxy/tool_util/deps/commands.pyi | 22 - .../galaxy/tool_util/deps/conda_compat.pyi | 21 - typeshed/galaxy/tool_util/deps/conda_util.pyi | 69 --- .../deps/container_resolvers/__init__.pyi | 14 - .../deps/container_resolvers/explicit.pyi | 9 - .../deps/container_resolvers/mulled.pyi | 55 --- typeshed/galaxy/tool_util/deps/containers.pyi | 80 --- .../galaxy/tool_util/deps/dependencies.pyi | 32 -- .../galaxy/tool_util/deps/docker_util.pyi | 41 -- .../galaxy/tool_util/deps/dockerfiles.pyi | 15 - .../galaxy/tool_util/deps/installable.pyi | 15 - .../galaxy/tool_util/deps/mulled/__init__.pyi | 4 - .../galaxy/tool_util/deps/mulled/_cli.pyi | 5 - .../tool_util/deps/mulled/mulled_build.pyi | 24 - .../deps/mulled/mulled_build_channel.pyi | 7 - .../deps/mulled/mulled_build_files.pyi | 10 - .../deps/mulled/mulled_build_tool.pyi | 8 - .../tool_util/deps/mulled/mulled_search.pyi | 23 - .../galaxy/tool_util/deps/mulled/util.pyi | 23 - .../galaxy/tool_util/deps/requirements.pyi | 75 --- .../tool_util/deps/resolvers/__init__.pyi | 62 --- .../resolvers/brewed_tool_shed_packages.pyi | 33 -- .../galaxy/tool_util/deps/resolvers/conda.pyi | 72 --- .../deps/resolvers/galaxy_packages.pyi | 35 -- .../tool_util/deps/resolvers/homebrew.pyi | 14 - .../tool_util/deps/resolvers/modules.pyi | 42 -- .../deps/resolvers/resolver_mixins.pyi | 18 - .../deps/resolvers/tool_shed_packages.pyi | 13 - .../resolvers/unlinked_tool_shed_packages.pyi | 25 - .../tool_util/deps/singularity_util.pyi | 7 - typeshed/galaxy/tool_util/deps/views.pyi | 32 -- typeshed/galaxy/tool_util/fetcher.pyi | 10 - typeshed/galaxy/tool_util/lint.pyi | 33 -- typeshed/galaxy/tool_util/lint_util.pyi | 5 - .../galaxy/tool_util/linters/__init__.pyi | 4 - .../galaxy/tool_util/linters/citations.pyi | 5 - typeshed/galaxy/tool_util/linters/command.pyi | 6 - typeshed/galaxy/tool_util/linters/cwl.pyi | 12 - typeshed/galaxy/tool_util/linters/general.pyi | 19 - typeshed/galaxy/tool_util/linters/help.pyi | 6 - typeshed/galaxy/tool_util/linters/inputs.pyi | 8 - typeshed/galaxy/tool_util/linters/outputs.pyi | 5 - typeshed/galaxy/tool_util/linters/stdio.pyi | 7 - typeshed/galaxy/tool_util/linters/tests.pyi | 7 - .../galaxy/tool_util/linters/xml_order.pyi | 10 - typeshed/galaxy/tool_util/loader.pyi | 8 - .../galaxy/tool_util/loader_directory.pyi | 15 - .../galaxy/tool_util/locations/__init__.pyi | 7 - .../galaxy/tool_util/locations/dockstore.pyi | 19 - typeshed/galaxy/tool_util/locations/file.pyi | 9 - typeshed/galaxy/tool_util/locations/http.pyi | 13 - typeshed/galaxy/tool_util/parser/__init__.pyi | 7 - typeshed/galaxy/tool_util/parser/cwl.pyi | 41 -- typeshed/galaxy/tool_util/parser/factory.pyi | 9 - .../galaxy/tool_util/parser/interface.pyi | 96 ---- .../tool_util/parser/output_actions.pyi | 215 -------- .../parser/output_collection_def.pyi | 29 -- .../tool_util/parser/output_objects.pyi | 68 --- typeshed/galaxy/tool_util/parser/util.pyi | 9 - typeshed/galaxy/tool_util/parser/xml.pyi | 89 ---- typeshed/galaxy/tool_util/parser/yaml.pyi | 56 --- typeshed/galaxy/tool_util/verify/__init__.pyi | 18 - .../tool_util/verify/asserts/__init__.pyi | 14 - .../tool_util/verify/asserts/tabular.pyi | 6 - .../galaxy/tool_util/verify/asserts/text.pyi | 9 - .../galaxy/tool_util/verify/asserts/xml.pyi | 15 - .../galaxy/tool_util/verify/test_data.pyi | 31 -- typeshed/galaxy/util/__init__.pyi | 130 ----- typeshed/galaxy/util/aliaspickler.pyi | 20 - typeshed/galaxy/util/bunch.pyi | 17 - typeshed/galaxy/util/checkers.pyi | 14 - typeshed/galaxy/util/compression_utils.pyi | 7 - typeshed/galaxy/util/dictifiable.pyi | 8 - typeshed/galaxy/util/expressions.pyi | 18 - typeshed/galaxy/util/filelock.pyi | 21 - typeshed/galaxy/util/hash_util.pyi | 14 - typeshed/galaxy/util/heartbeat.pyi | 30 -- typeshed/galaxy/util/image_util.pyi | 13 - typeshed/galaxy/util/inflection.pyi | 46 -- typeshed/galaxy/util/json.pyi | 12 - typeshed/galaxy/util/lazy_process.pyi | 22 - typeshed/galaxy/util/object_wrapper.pyi | 95 ---- typeshed/galaxy/util/odict.pyi | 27 - typeshed/galaxy/util/oset.pyi | 19 - typeshed/galaxy/util/plugin_config.pyi | 11 - typeshed/galaxy/util/properties.pyi | 19 - typeshed/galaxy/util/simplegraph.pyi | 26 - typeshed/galaxy/util/sleeper.pyi | 11 - typeshed/galaxy/util/sockets.pyi | 7 - typeshed/galaxy/util/specs.pyi | 9 - typeshed/galaxy/util/sqlite.pyi | 6 - typeshed/galaxy/util/submodules.pyi | 9 - typeshed/galaxy/util/topsort.pyi | 20 - typeshed/galaxy/util/xml_macros.pyi | 18 - typeshed/graphviz/dot.pyi | 39 -- typeshed/graphviz/files.pyi | 40 -- typeshed/graphviz/lang.pyi | 12 - typeshed/mistune.pyi | 196 -------- .../algorithms/assortativity/mixing.pyi | 12 - .../algorithms/bipartite/edgelist.pyi | 10 - .../networkx/algorithms/bipartite/matrix.pyi | 8 - .../algorithms/centrality/betweenness.pyi | 9 - .../centrality/betweenness_subset.pyi | 9 - .../centrality/current_flow_betweenness.pyi | 10 - .../current_flow_betweenness_subset.pyi | 9 - .../algorithms/centrality/eigenvector.pyi | 8 - .../networkx/algorithms/centrality/katz.pyi | 8 - .../algorithms/centrality/reaching.pyi | 8 - .../community/community_generators.pyi | 7 - .../algorithms/connectivity/connectivity.pyi | 15 - .../networkx/algorithms/connectivity/cuts.pyi | 13 - .../connectivity/disjoint_paths.pyi | 11 - typeshed/networkx/algorithms/flow/maxflow.pyi | 13 - .../algorithms/link_analysis/pagerank_alg.pyi | 10 - .../algorithms/shortest_paths/astar.pyi | 8 - .../algorithms/shortest_paths/weighted.pyi | 30 -- typeshed/networkx/algorithms/similarity.pyi | 11 - .../traversal/depth_first_search.pyi | 13 - typeshed/networkx/algorithms/tree/mst.pyi | 8 - typeshed/networkx/convert_matrix.pyi | 17 - typeshed/networkx/drawing/layout.pyi | 15 - typeshed/networkx/drawing/nx_pylab.pyi | 18 - typeshed/networkx/generators/directed.pyi | 11 - typeshed/networkx/generators/geometric.pyi | 12 - typeshed/networkx/linalg/attrmatrix.pyi | 8 - typeshed/networkx/linalg/laplacianmatrix.pyi | 9 - typeshed/networkx/linalg/modularitymatrix.pyi | 8 - typeshed/networkx/readwrite/adjlist.pyi | 10 - typeshed/networkx/readwrite/edgelist.pyi | 12 - .../networkx/readwrite/multiline_adjlist.pyi | 10 - typeshed/prov/__init__.pyi | 12 - typeshed/prov/constants.pyi | 94 ---- typeshed/prov/graph.pyi | 11 - typeshed/prov/identifier.pyi | 37 -- typeshed/prov/model.pyi | 257 ---------- typeshed/prov/serializers/__init__.pyi | 21 - typeshed/prov/serializers/provjson.pyi | 38 -- typeshed/prov/serializers/provn.pyi | 13 - typeshed/prov/serializers/provrdf.pyi | 34 -- typeshed/prov/serializers/provxml.pyi | 23 - typeshed/pydot.pyi | 135 ----- typeshed/rdflib/parser.pyi | 27 - typeshed/rdflib/paths.pyi | 67 --- typeshed/rdflib/plugin.pyi | 27 - typeshed/rdflib/query.pyi | 62 --- typeshed/rdflib/term.pyi | 98 ---- 525 files changed, 3768 insertions(+), 5902 deletions(-) create mode 100644 mypy-stubs/arcp/__init__.pyi create mode 100644 mypy-stubs/arcp/parse.pyi create mode 100644 mypy-stubs/argcomplete/__init__.pyi create mode 100644 mypy-stubs/bagit.pyi rename {typeshed => mypy-stubs}/black/__init__.pyi (100%) rename {typeshed => mypy-stubs}/cachecontrol/__init__.pyi (63%) create mode 100644 mypy-stubs/cachecontrol/cache.pyi rename {typeshed => mypy-stubs}/cachecontrol/caches/__init__.pyi (100%) create mode 100644 mypy-stubs/cachecontrol/caches/file_cache.pyi rename {typeshed => mypy-stubs}/cachecontrol/compat.pyi (100%) create mode 100644 mypy-stubs/cachecontrol/controller.pyi create mode 100644 mypy-stubs/cachecontrol/wrapper.pyi create mode 100644 mypy-stubs/coloredlogs/__init__.pyi rename {typeshed => mypy-stubs}/graphviz/__init__.pyi (100%) rename {typeshed => mypy-stubs}/graphviz/_compat.pyi (99%) rename {typeshed => mypy-stubs}/graphviz/backend.pyi (100%) create mode 100644 mypy-stubs/graphviz/dot.pyi create mode 100644 mypy-stubs/graphviz/files.pyi create mode 100644 mypy-stubs/graphviz/lang.pyi rename {typeshed => mypy-stubs}/graphviz/tools.pyi (100%) create mode 100644 mypy-stubs/mistune.pyi rename {typeshed => mypy-stubs}/networkx/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/approximation/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/approximation/clique.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/approximation/clustering_coefficient.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/approximation/connectivity.pyi (76%) rename {typeshed => mypy-stubs}/networkx/algorithms/approximation/dominating_set.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/approximation/independent_set.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/approximation/kcomponents.pyi (99%) rename {typeshed => mypy-stubs}/networkx/algorithms/approximation/matching.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/approximation/ramsey.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/approximation/steinertree.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/approximation/vertex_cover.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/assortativity/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/assortativity/connectivity.pyi (61%) rename {typeshed => mypy-stubs}/networkx/algorithms/assortativity/correlation.pyi (53%) create mode 100644 mypy-stubs/networkx/algorithms/assortativity/mixing.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/assortativity/neighbor_degree.pyi (54%) rename {typeshed => mypy-stubs}/networkx/algorithms/assortativity/pairs.pyi (64%) rename {typeshed => mypy-stubs}/networkx/algorithms/bipartite/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/bipartite/basic.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/bipartite/centrality.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/bipartite/cluster.pyi (99%) rename {typeshed => mypy-stubs}/networkx/algorithms/bipartite/covering.pyi (100%) create mode 100644 mypy-stubs/networkx/algorithms/bipartite/edgelist.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/bipartite/generators.pyi (74%) rename {typeshed => mypy-stubs}/networkx/algorithms/bipartite/matching.pyi (99%) create mode 100644 mypy-stubs/networkx/algorithms/bipartite/matrix.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/bipartite/projection.pyi (83%) rename {typeshed => mypy-stubs}/networkx/algorithms/bipartite/redundancy.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/bipartite/spectral.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/boundary.pyi (59%) rename {typeshed => mypy-stubs}/networkx/algorithms/bridges.pyi (100%) create mode 100644 mypy-stubs/networkx/algorithms/centrality/betweenness.pyi create mode 100644 mypy-stubs/networkx/algorithms/centrality/betweenness_subset.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/centrality/closeness.pyi (53%) create mode 100644 mypy-stubs/networkx/algorithms/centrality/current_flow_betweenness.pyi create mode 100644 mypy-stubs/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/centrality/current_flow_closeness.pyi (71%) rename {typeshed => mypy-stubs}/networkx/algorithms/centrality/degree_alg.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/centrality/dispersion.pyi (50%) create mode 100644 mypy-stubs/networkx/algorithms/centrality/eigenvector.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/centrality/flow_matrix.pyi (72%) rename {typeshed => mypy-stubs}/networkx/algorithms/centrality/harmonic.pyi (64%) create mode 100644 mypy-stubs/networkx/algorithms/centrality/katz.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/centrality/load.pyi (100%) create mode 100644 mypy-stubs/networkx/algorithms/centrality/reaching.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/centrality/subgraph_alg.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/chains.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/chordal.pyi (99%) rename {typeshed => mypy-stubs}/networkx/algorithms/clique.pyi (72%) rename {typeshed => mypy-stubs}/networkx/algorithms/cluster.pyi (78%) rename {typeshed => mypy-stubs}/networkx/algorithms/coloring/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/coloring/greedy_coloring.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/coloring/greedy_coloring_with_interchange.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/communicability_alg.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/community/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/community/asyn_fluidc.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/community/centrality.pyi (100%) create mode 100644 mypy-stubs/networkx/algorithms/community/community_generators.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/community/community_utils.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/community/kclique.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/community/kernighan_lin.pyi (61%) rename {typeshed => mypy-stubs}/networkx/algorithms/community/label_propagation.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/community/quality.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/components/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/components/attracting.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/components/biconnected.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/components/connected.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/components/semiconnected.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/components/strongly_connected.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/components/weakly_connected.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/connectivity/__init__.pyi (100%) create mode 100644 mypy-stubs/networkx/algorithms/connectivity/connectivity.pyi create mode 100644 mypy-stubs/networkx/algorithms/connectivity/cuts.pyi create mode 100644 mypy-stubs/networkx/algorithms/connectivity/disjoint_paths.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/connectivity/edge_augmentation.pyi (65%) rename {typeshed => mypy-stubs}/networkx/algorithms/connectivity/edge_kcomponents.pyi (89%) rename {typeshed => mypy-stubs}/networkx/algorithms/connectivity/kcomponents.pyi (99%) rename {typeshed => mypy-stubs}/networkx/algorithms/connectivity/kcutsets.pyi (99%) rename {typeshed => mypy-stubs}/networkx/algorithms/connectivity/stoerwagner.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/connectivity/utils.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/core.pyi (99%) rename {typeshed => mypy-stubs}/networkx/algorithms/covering.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/cuts.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/cycles.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/dag.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/distance_measures.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/distance_regular.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/dominance.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/dominating.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/efficiency.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/euler.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/flow/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/flow/boykovkolmogorov.pyi (51%) rename {typeshed => mypy-stubs}/networkx/algorithms/flow/capacityscaling.pyi (60%) rename {typeshed => mypy-stubs}/networkx/algorithms/flow/dinitz_alg.pyi (51%) rename {typeshed => mypy-stubs}/networkx/algorithms/flow/edmondskarp.pyi (56%) rename {typeshed => mypy-stubs}/networkx/algorithms/flow/gomory_hu.pyi (99%) create mode 100644 mypy-stubs/networkx/algorithms/flow/maxflow.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/flow/mincost.pyi (78%) rename {typeshed => mypy-stubs}/networkx/algorithms/flow/networksimplex.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/flow/preflowpush.pyi (50%) rename {typeshed => mypy-stubs}/networkx/algorithms/flow/shortestaugmentingpath.pyi (50%) rename {typeshed => mypy-stubs}/networkx/algorithms/flow/utils.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/graphical.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/hierarchy.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/hybrid.pyi (66%) rename {typeshed => mypy-stubs}/networkx/algorithms/isolate.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/isomorphism/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/isomorphism/isomorph.pyi (81%) rename {typeshed => mypy-stubs}/networkx/algorithms/isomorphism/isomorphvf2.pyi (87%) rename {typeshed => mypy-stubs}/networkx/algorithms/isomorphism/matchhelpers.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi (99%) rename {typeshed => mypy-stubs}/networkx/algorithms/isomorphism/vf2userfunc.pyi (72%) rename {typeshed => mypy-stubs}/networkx/algorithms/link_analysis/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/link_analysis/hits_alg.pyi (76%) create mode 100644 mypy-stubs/networkx/algorithms/link_analysis/pagerank_alg.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/link_prediction.pyi (71%) rename {typeshed => mypy-stubs}/networkx/algorithms/lowest_common_ancestors.pyi (75%) rename {typeshed => mypy-stubs}/networkx/algorithms/matching.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/minors.pyi (58%) rename {typeshed => mypy-stubs}/networkx/algorithms/mis.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/operators/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/operators/all.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/operators/binary.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/operators/product.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/operators/unary.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/reciprocity.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/richclub.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/shortest_paths/__init__.pyi (100%) create mode 100644 mypy-stubs/networkx/algorithms/shortest_paths/astar.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/shortest_paths/dense.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/shortest_paths/generic.pyi (57%) rename {typeshed => mypy-stubs}/networkx/algorithms/shortest_paths/unweighted.pyi (82%) create mode 100644 mypy-stubs/networkx/algorithms/shortest_paths/weighted.pyi create mode 100644 mypy-stubs/networkx/algorithms/similarity.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/simple_paths.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/smetric.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/structuralholes.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/swap.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/threshold.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/tournament.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/traversal/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/traversal/beamsearch.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/traversal/breadth_first_search.pyi (100%) create mode 100644 mypy-stubs/networkx/algorithms/traversal/depth_first_search.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/traversal/edgedfs.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/tree/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/tree/branchings.pyi (91%) rename {typeshed => mypy-stubs}/networkx/algorithms/tree/coding.pyi (100%) create mode 100644 mypy-stubs/networkx/algorithms/tree/mst.pyi rename {typeshed => mypy-stubs}/networkx/algorithms/tree/operations.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/tree/recognition.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/triads.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/vitality.pyi (54%) rename {typeshed => mypy-stubs}/networkx/algorithms/voronoi.pyi (100%) rename {typeshed => mypy-stubs}/networkx/algorithms/wiener.pyi (100%) rename {typeshed => mypy-stubs}/networkx/classes/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/classes/coreviews.pyi (100%) rename {typeshed => mypy-stubs}/networkx/classes/digraph.pyi (99%) rename {typeshed => mypy-stubs}/networkx/classes/filters.pyi (100%) rename {typeshed => mypy-stubs}/networkx/classes/function.pyi (94%) rename {typeshed => mypy-stubs}/networkx/classes/graph.pyi (95%) rename {typeshed => mypy-stubs}/networkx/classes/graphviews.pyi (78%) rename {typeshed => mypy-stubs}/networkx/classes/multidigraph.pyi (99%) rename {typeshed => mypy-stubs}/networkx/classes/multigraph.pyi (91%) rename {typeshed => mypy-stubs}/networkx/classes/ordered.pyi (99%) rename {typeshed => mypy-stubs}/networkx/classes/reportviews.pyi (73%) rename {typeshed => mypy-stubs}/networkx/convert.pyi (57%) create mode 100644 mypy-stubs/networkx/convert_matrix.pyi rename {typeshed => mypy-stubs}/networkx/drawing/__init__.pyi (100%) create mode 100644 mypy-stubs/networkx/drawing/layout.pyi rename {typeshed => mypy-stubs}/networkx/drawing/nx_agraph.pyi (59%) rename {typeshed => mypy-stubs}/networkx/drawing/nx_pydot.pyi (100%) create mode 100644 mypy-stubs/networkx/drawing/nx_pylab.pyi rename {typeshed => mypy-stubs}/networkx/exception.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/atlas.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/classic.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/community.pyi (53%) rename {typeshed => mypy-stubs}/networkx/generators/degree_seq.pyi (64%) create mode 100644 mypy-stubs/networkx/generators/directed.pyi rename {typeshed => mypy-stubs}/networkx/generators/duplication.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/ego.pyi (52%) rename {typeshed => mypy-stubs}/networkx/generators/expanders.pyi (100%) create mode 100644 mypy-stubs/networkx/generators/geometric.pyi rename {typeshed => mypy-stubs}/networkx/generators/intersection.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/joint_degree_seq.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/lattice.pyi (52%) rename {typeshed => mypy-stubs}/networkx/generators/line.pyi (99%) rename {typeshed => mypy-stubs}/networkx/generators/mycielski.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/nonisomorphic_trees.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/random_clustered.pyi (58%) rename {typeshed => mypy-stubs}/networkx/generators/random_graphs.pyi (71%) rename {typeshed => mypy-stubs}/networkx/generators/small.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/social.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/stochastic.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/trees.pyi (100%) rename {typeshed => mypy-stubs}/networkx/generators/triads.pyi (100%) rename {typeshed => mypy-stubs}/networkx/linalg/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/linalg/algebraicconnectivity.pyi (60%) create mode 100644 mypy-stubs/networkx/linalg/attrmatrix.pyi rename {typeshed => mypy-stubs}/networkx/linalg/graphmatrix.pyi (62%) create mode 100644 mypy-stubs/networkx/linalg/laplacianmatrix.pyi create mode 100644 mypy-stubs/networkx/linalg/modularitymatrix.pyi rename {typeshed => mypy-stubs}/networkx/linalg/spectrum.pyi (100%) rename {typeshed => mypy-stubs}/networkx/readwrite/__init__.pyi (100%) create mode 100644 mypy-stubs/networkx/readwrite/adjlist.pyi create mode 100644 mypy-stubs/networkx/readwrite/edgelist.pyi rename {typeshed => mypy-stubs}/networkx/readwrite/gexf.pyi (82%) rename {typeshed => mypy-stubs}/networkx/readwrite/gml.pyi (100%) rename {typeshed => mypy-stubs}/networkx/readwrite/gpickle.pyi (100%) rename {typeshed => mypy-stubs}/networkx/readwrite/graph6.pyi (100%) rename {typeshed => mypy-stubs}/networkx/readwrite/graphml.pyi (75%) rename {typeshed => mypy-stubs}/networkx/readwrite/json_graph/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/readwrite/json_graph/adjacency.pyi (67%) rename {typeshed => mypy-stubs}/networkx/readwrite/json_graph/cytoscape.pyi (100%) rename {typeshed => mypy-stubs}/networkx/readwrite/json_graph/jit.pyi (100%) rename {typeshed => mypy-stubs}/networkx/readwrite/json_graph/node_link.pyi (67%) rename {typeshed => mypy-stubs}/networkx/readwrite/json_graph/tree.pyi (100%) rename {typeshed => mypy-stubs}/networkx/readwrite/leda.pyi (100%) create mode 100644 mypy-stubs/networkx/readwrite/multiline_adjlist.pyi rename {typeshed => mypy-stubs}/networkx/readwrite/nx_shp.pyi (62%) rename {typeshed => mypy-stubs}/networkx/readwrite/nx_yaml.pyi (100%) rename {typeshed => mypy-stubs}/networkx/readwrite/p2g.pyi (100%) rename {typeshed => mypy-stubs}/networkx/readwrite/pajek.pyi (100%) rename {typeshed => mypy-stubs}/networkx/readwrite/sparse6.pyi (100%) rename {typeshed => mypy-stubs}/networkx/relabel.pyi (60%) rename {typeshed => mypy-stubs}/networkx/release.pyi (100%) rename {typeshed => mypy-stubs}/networkx/tests/__init__.pyi (99%) rename {typeshed => mypy-stubs}/networkx/tests/test.pyi (100%) rename {typeshed => mypy-stubs}/networkx/utils/__init__.pyi (100%) rename {typeshed => mypy-stubs}/networkx/utils/contextmanagers.pyi (100%) rename {typeshed => mypy-stubs}/networkx/utils/decorators.pyi (100%) rename {typeshed => mypy-stubs}/networkx/utils/heaps.pyi (99%) rename {typeshed => mypy-stubs}/networkx/utils/misc.pyi (100%) rename {typeshed => mypy-stubs}/networkx/utils/random_sequence.pyi (79%) rename {typeshed => mypy-stubs}/networkx/utils/rcm.pyi (100%) rename {typeshed => mypy-stubs}/networkx/utils/union_find.pyi (100%) rename {typeshed => mypy-stubs}/networkx/version.pyi (100%) create mode 100644 mypy-stubs/prov/__init__.pyi create mode 100644 mypy-stubs/prov/constants.py create mode 100644 mypy-stubs/prov/dot.pyi create mode 100644 mypy-stubs/prov/graph.pyi create mode 100644 mypy-stubs/prov/identifier.pyi create mode 100644 mypy-stubs/prov/model.pyi create mode 100644 mypy-stubs/prov/serializers/provjson.pyi create mode 100644 mypy-stubs/prov/serializers/provn.pyi create mode 100644 mypy-stubs/prov/serializers/provrdf.pyi create mode 100644 mypy-stubs/prov/serializers/provxml.pyi create mode 100644 mypy-stubs/pydot.pyi rename {typeshed => mypy-stubs}/rdflib/__init__.pyi (92%) create mode 100644 mypy-stubs/rdflib/collection.pyi rename {typeshed => mypy-stubs}/rdflib/container.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/events.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/exceptions.pyi (58%) rename {typeshed => mypy-stubs}/rdflib/graph.pyi (50%) rename {typeshed => mypy-stubs}/rdflib/namespace/_CSVW.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_DC.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_DCAT.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_DCTERMS.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_DOAP.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_FOAF.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_ODRL2.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_ORG.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_OWL.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_PROF.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_PROV.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_QB.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_RDF.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_RDFS.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_SDO.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_SH.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_SKOS.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_SOSA.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_SSN.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_TIME.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_VOID.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/_XSD.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/namespace/__init__.pyi (51%) create mode 100644 mypy-stubs/rdflib/parser.pyi create mode 100644 mypy-stubs/rdflib/paths.pyi create mode 100644 mypy-stubs/rdflib/plugin.pyi rename {typeshed => mypy-stubs}/rdflib/plugins/__init__.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/plugins/parsers/__init__.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/plugins/parsers/notation3.pyi (66%) create mode 100644 mypy-stubs/rdflib/query.pyi create mode 100644 mypy-stubs/rdflib/resource.pyi rename {typeshed => mypy-stubs}/rdflib/serializer.pyi (100%) rename {typeshed => mypy-stubs}/rdflib/store.pyi (93%) create mode 100644 mypy-stubs/rdflib/term.pyi rename {typeshed => mypy-stubs}/rdflib/util.pyi (100%) rename {typeshed => mypy-stubs}/ruamel/__init__.py (100%) rename {typeshed => mypy-stubs}/shellescape/__init__.pyi (100%) rename {typeshed => mypy-stubs}/shellescape/main.pyi (100%) rename {typeshed => mypy-stubs}/subprocess.pyi (97%) rename {typeshed => mypy-stubs}/urllib/__init__.py (100%) rename {typeshed => mypy-stubs}/urllib/parse.pyi (100%) delete mode 100644 typeshed/arcp/__init__.pyi delete mode 100644 typeshed/arcp/generate.pyi delete mode 100644 typeshed/arcp/parse.pyi delete mode 100644 typeshed/argcomplete/__init__.pyi delete mode 100644 typeshed/bagit.pyi delete mode 100644 typeshed/cachecontrol/adapter.pyi delete mode 100644 typeshed/cachecontrol/cache.pyi delete mode 100644 typeshed/cachecontrol/caches/file_cache.pyi delete mode 100644 typeshed/cachecontrol/controller.pyi delete mode 100644 typeshed/cachecontrol/filewrapper.pyi delete mode 100644 typeshed/cachecontrol/serialize.pyi delete mode 100644 typeshed/cachecontrol/wrapper.pyi delete mode 100644 typeshed/coloredlogs/__init__.pyi delete mode 100644 typeshed/galaxy/__init__.pyi delete mode 100644 typeshed/galaxy/exceptions/__init__.pyi delete mode 100644 typeshed/galaxy/exceptions/error_codes.pyi delete mode 100644 typeshed/galaxy/jobs/__init__.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/__init__.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/collectl/__init__.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/collectl/cli.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/collectl/processes.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/collectl/stats.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/collectl/subsystems.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/formatting.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/instrumenters/__init__.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/instrumenters/collectl.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/instrumenters/core.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/instrumenters/cpuinfo.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/instrumenters/env.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/instrumenters/meminfo.pyi delete mode 100644 typeshed/galaxy/jobs/metrics/instrumenters/uname.pyi delete mode 100644 typeshed/galaxy/objectstore/__init__.pyi delete mode 100644 typeshed/galaxy/objectstore/azure_blob.pyi delete mode 100644 typeshed/galaxy/objectstore/pulsar.pyi delete mode 100644 typeshed/galaxy/objectstore/rods.pyi delete mode 100644 typeshed/galaxy/objectstore/s3.pyi delete mode 100644 typeshed/galaxy/objectstore/s3_multipart_upload.pyi delete mode 100644 typeshed/galaxy/tool_util/__init__.pyi delete mode 100644 typeshed/galaxy/tool_util/cwl/__init__.pyi delete mode 100644 typeshed/galaxy/tool_util/cwl/cwltool_deps.pyi delete mode 100644 typeshed/galaxy/tool_util/cwl/parser.pyi delete mode 100644 typeshed/galaxy/tool_util/cwl/representation.pyi delete mode 100644 typeshed/galaxy/tool_util/cwl/runtime_actions.pyi delete mode 100644 typeshed/galaxy/tool_util/cwl/schema.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/__init__.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/brew_exts.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/brew_util.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/commands.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/conda_compat.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/conda_util.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/container_resolvers/__init__.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/container_resolvers/explicit.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/container_resolvers/mulled.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/containers.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/dependencies.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/docker_util.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/dockerfiles.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/installable.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/mulled/__init__.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/mulled/_cli.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/mulled/mulled_build.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/mulled/mulled_build_channel.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/mulled/mulled_build_files.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/mulled/mulled_build_tool.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/mulled/mulled_search.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/mulled/util.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/requirements.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/resolvers/__init__.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/resolvers/brewed_tool_shed_packages.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/resolvers/conda.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/resolvers/galaxy_packages.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/resolvers/homebrew.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/resolvers/modules.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/resolvers/resolver_mixins.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/resolvers/tool_shed_packages.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/resolvers/unlinked_tool_shed_packages.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/singularity_util.pyi delete mode 100644 typeshed/galaxy/tool_util/deps/views.pyi delete mode 100644 typeshed/galaxy/tool_util/fetcher.pyi delete mode 100644 typeshed/galaxy/tool_util/lint.pyi delete mode 100644 typeshed/galaxy/tool_util/lint_util.pyi delete mode 100644 typeshed/galaxy/tool_util/linters/__init__.pyi delete mode 100644 typeshed/galaxy/tool_util/linters/citations.pyi delete mode 100644 typeshed/galaxy/tool_util/linters/command.pyi delete mode 100644 typeshed/galaxy/tool_util/linters/cwl.pyi delete mode 100644 typeshed/galaxy/tool_util/linters/general.pyi delete mode 100644 typeshed/galaxy/tool_util/linters/help.pyi delete mode 100644 typeshed/galaxy/tool_util/linters/inputs.pyi delete mode 100644 typeshed/galaxy/tool_util/linters/outputs.pyi delete mode 100644 typeshed/galaxy/tool_util/linters/stdio.pyi delete mode 100644 typeshed/galaxy/tool_util/linters/tests.pyi delete mode 100644 typeshed/galaxy/tool_util/linters/xml_order.pyi delete mode 100644 typeshed/galaxy/tool_util/loader.pyi delete mode 100644 typeshed/galaxy/tool_util/loader_directory.pyi delete mode 100644 typeshed/galaxy/tool_util/locations/__init__.pyi delete mode 100644 typeshed/galaxy/tool_util/locations/dockstore.pyi delete mode 100644 typeshed/galaxy/tool_util/locations/file.pyi delete mode 100644 typeshed/galaxy/tool_util/locations/http.pyi delete mode 100644 typeshed/galaxy/tool_util/parser/__init__.pyi delete mode 100644 typeshed/galaxy/tool_util/parser/cwl.pyi delete mode 100644 typeshed/galaxy/tool_util/parser/factory.pyi delete mode 100644 typeshed/galaxy/tool_util/parser/interface.pyi delete mode 100644 typeshed/galaxy/tool_util/parser/output_actions.pyi delete mode 100644 typeshed/galaxy/tool_util/parser/output_collection_def.pyi delete mode 100644 typeshed/galaxy/tool_util/parser/output_objects.pyi delete mode 100644 typeshed/galaxy/tool_util/parser/util.pyi delete mode 100644 typeshed/galaxy/tool_util/parser/xml.pyi delete mode 100644 typeshed/galaxy/tool_util/parser/yaml.pyi delete mode 100644 typeshed/galaxy/tool_util/verify/__init__.pyi delete mode 100644 typeshed/galaxy/tool_util/verify/asserts/__init__.pyi delete mode 100644 typeshed/galaxy/tool_util/verify/asserts/tabular.pyi delete mode 100644 typeshed/galaxy/tool_util/verify/asserts/text.pyi delete mode 100644 typeshed/galaxy/tool_util/verify/asserts/xml.pyi delete mode 100644 typeshed/galaxy/tool_util/verify/test_data.pyi delete mode 100644 typeshed/galaxy/util/__init__.pyi delete mode 100644 typeshed/galaxy/util/aliaspickler.pyi delete mode 100644 typeshed/galaxy/util/bunch.pyi delete mode 100644 typeshed/galaxy/util/checkers.pyi delete mode 100644 typeshed/galaxy/util/compression_utils.pyi delete mode 100644 typeshed/galaxy/util/dictifiable.pyi delete mode 100644 typeshed/galaxy/util/expressions.pyi delete mode 100644 typeshed/galaxy/util/filelock.pyi delete mode 100644 typeshed/galaxy/util/hash_util.pyi delete mode 100644 typeshed/galaxy/util/heartbeat.pyi delete mode 100644 typeshed/galaxy/util/image_util.pyi delete mode 100644 typeshed/galaxy/util/inflection.pyi delete mode 100644 typeshed/galaxy/util/json.pyi delete mode 100644 typeshed/galaxy/util/lazy_process.pyi delete mode 100644 typeshed/galaxy/util/object_wrapper.pyi delete mode 100644 typeshed/galaxy/util/odict.pyi delete mode 100644 typeshed/galaxy/util/oset.pyi delete mode 100644 typeshed/galaxy/util/plugin_config.pyi delete mode 100644 typeshed/galaxy/util/properties.pyi delete mode 100644 typeshed/galaxy/util/simplegraph.pyi delete mode 100644 typeshed/galaxy/util/sleeper.pyi delete mode 100644 typeshed/galaxy/util/sockets.pyi delete mode 100644 typeshed/galaxy/util/specs.pyi delete mode 100644 typeshed/galaxy/util/sqlite.pyi delete mode 100644 typeshed/galaxy/util/submodules.pyi delete mode 100644 typeshed/galaxy/util/topsort.pyi delete mode 100644 typeshed/galaxy/util/xml_macros.pyi delete mode 100644 typeshed/graphviz/dot.pyi delete mode 100644 typeshed/graphviz/files.pyi delete mode 100644 typeshed/graphviz/lang.pyi delete mode 100644 typeshed/mistune.pyi delete mode 100644 typeshed/networkx/algorithms/assortativity/mixing.pyi delete mode 100644 typeshed/networkx/algorithms/bipartite/edgelist.pyi delete mode 100644 typeshed/networkx/algorithms/bipartite/matrix.pyi delete mode 100644 typeshed/networkx/algorithms/centrality/betweenness.pyi delete mode 100644 typeshed/networkx/algorithms/centrality/betweenness_subset.pyi delete mode 100644 typeshed/networkx/algorithms/centrality/current_flow_betweenness.pyi delete mode 100644 typeshed/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi delete mode 100644 typeshed/networkx/algorithms/centrality/eigenvector.pyi delete mode 100644 typeshed/networkx/algorithms/centrality/katz.pyi delete mode 100644 typeshed/networkx/algorithms/centrality/reaching.pyi delete mode 100644 typeshed/networkx/algorithms/community/community_generators.pyi delete mode 100644 typeshed/networkx/algorithms/connectivity/connectivity.pyi delete mode 100644 typeshed/networkx/algorithms/connectivity/cuts.pyi delete mode 100644 typeshed/networkx/algorithms/connectivity/disjoint_paths.pyi delete mode 100644 typeshed/networkx/algorithms/flow/maxflow.pyi delete mode 100644 typeshed/networkx/algorithms/link_analysis/pagerank_alg.pyi delete mode 100644 typeshed/networkx/algorithms/shortest_paths/astar.pyi delete mode 100644 typeshed/networkx/algorithms/shortest_paths/weighted.pyi delete mode 100644 typeshed/networkx/algorithms/similarity.pyi delete mode 100644 typeshed/networkx/algorithms/traversal/depth_first_search.pyi delete mode 100644 typeshed/networkx/algorithms/tree/mst.pyi delete mode 100644 typeshed/networkx/convert_matrix.pyi delete mode 100644 typeshed/networkx/drawing/layout.pyi delete mode 100644 typeshed/networkx/drawing/nx_pylab.pyi delete mode 100644 typeshed/networkx/generators/directed.pyi delete mode 100644 typeshed/networkx/generators/geometric.pyi delete mode 100644 typeshed/networkx/linalg/attrmatrix.pyi delete mode 100644 typeshed/networkx/linalg/laplacianmatrix.pyi delete mode 100644 typeshed/networkx/linalg/modularitymatrix.pyi delete mode 100644 typeshed/networkx/readwrite/adjlist.pyi delete mode 100644 typeshed/networkx/readwrite/edgelist.pyi delete mode 100644 typeshed/networkx/readwrite/multiline_adjlist.pyi delete mode 100644 typeshed/prov/__init__.pyi delete mode 100644 typeshed/prov/constants.pyi delete mode 100644 typeshed/prov/graph.pyi delete mode 100644 typeshed/prov/identifier.pyi delete mode 100644 typeshed/prov/model.pyi delete mode 100644 typeshed/prov/serializers/__init__.pyi delete mode 100644 typeshed/prov/serializers/provjson.pyi delete mode 100644 typeshed/prov/serializers/provn.pyi delete mode 100644 typeshed/prov/serializers/provrdf.pyi delete mode 100644 typeshed/prov/serializers/provxml.pyi delete mode 100644 typeshed/pydot.pyi delete mode 100644 typeshed/rdflib/parser.pyi delete mode 100644 typeshed/rdflib/paths.pyi delete mode 100644 typeshed/rdflib/plugin.pyi delete mode 100644 typeshed/rdflib/query.pyi delete mode 100644 typeshed/rdflib/term.pyi diff --git a/.gitignore b/.gitignore index afe30e282..90b180709 100644 --- a/.gitignore +++ b/.gitignore @@ -28,10 +28,8 @@ venv3/ # pycharm .idea/ -# typshed repo -typeshed/2and3/schema_salad -typeshed/2and3/ruamel/yaml - +# local stubs +mypy-stubs/ruamel/yaml #mypy .mypy_cache/ diff --git a/MANIFEST.in b/MANIFEST.in index ad1647692..08a85b4ec 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,7 +3,7 @@ include MANIFEST.in include LICENSE.txt include *requirements.txt mypy.ini tox.ini include gittaggers.py Makefile cwltool.py -recursive-include typeshed *.pyi +recursive-include mypy-stubs *.pyi *.py include tests/* include tests/tmp1/tmp2/tmp3/.gitkeep include tests/tmp4/alpha/* diff --git a/Makefile b/Makefile index 9f717cf11..b3bceda59 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ clean: check-python3 FORCE # Linting and code style related targets ## sorting imports using isort: https://github.com/timothycrosley/isort -sort_imports: $(PYSOURCES) +sort_imports: $(PYSOURCES) mypy-stubs isort $^ remove_unused_imports: $(PYSOURCES) @@ -110,14 +110,14 @@ diff_pydocstyle_report: pydocstyle_report.txt ## codespell : check for common mispellings codespell: - codespell -w $(shell git ls-files | grep -v cwltool/schemas | grep -v cwltool/jshint/ | grep -v typeshed) + codespell -w $(shell git ls-files | grep -v cwltool/schemas | grep -v cwltool/jshint/ | grep -v mypy-stubs) ## format : check/fix all code indentation and formatting (runs black) format: - black --exclude cwltool/schemas setup.py cwltool.py cwltool tests + black --exclude cwltool/schemas setup.py cwltool.py cwltool tests mypy-stubs format-check: - black --diff --check --exclude cwltool/schemas setup.py cwltool.py cwltool tests + black --diff --check --exclude cwltool/schemas setup.py cwltool.py cwltool tests mypy-stubs ## pylint : run static code analysis on Python code pylint: $(PYSOURCES) @@ -177,14 +177,14 @@ mypy3: mypy mypy: $(filter-out setup.py gittagger.py,$(PYSOURCES)) if ! test -f $(shell python -c 'import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__))')/py.typed ; \ then \ - rm -Rf typeshed/ruamel/yaml ; \ + rm -Rf mypy-stubs/ruamel/yaml ; \ ln -s $(shell python -c 'import ruamel.yaml; import os.path; print(os.path.dirname(ruamel.yaml.__file__))') \ - typeshed/ruamel/ ; \ + mypy-stubs/ruamel/ ; \ fi # if minimally required ruamel.yaml version is 0.15.99 or greater, than the above can be removed - MYPYPATH=$$MYPYPATH:typeshed mypy $^ + MYPYPATH=$$MYPYPATH:mypy-stubs mypy $^ mypyc: $(PYSOURCES) - MYPYPATH=typeshed CWLTOOL_USE_MYPYC=1 pip install --verbose -e . \ + MYPYPATH=mypy-stubs CWLTOOL_USE_MYPYC=1 pip install --verbose -e . \ && pytest -rs -vv ${PYTEST_EXTRA} shellcheck: FORCE diff --git a/cwltool.Dockerfile b/cwltool.Dockerfile index bc1a4b348..b20243c9a 100644 --- a/cwltool.Dockerfile +++ b/cwltool.Dockerfile @@ -9,10 +9,10 @@ RUN pip install toml -rmypy-requirements.txt "$(grep ruamel requirements.txt)" \ "$(grep schema.salad requirements.txt)" # schema-salad is needed to be installed (this time as pure Python) for # cwltool + mypyc -RUN CWLTOOL_USE_MYPYC=1 MYPYPATH=typeshed pip wheel --no-binary schema-salad --wheel-dir=/wheels .[deps] +RUN CWLTOOL_USE_MYPYC=1 MYPYPATH=mypy-stubs pip wheel --no-binary schema-salad --wheel-dir=/wheels .[deps] RUN rm /wheels/schema_salad* RUN pip install black -RUN SCHEMA_SALAD_USE_MYPYC=1 MYPYPATH=typeshed pip wheel --no-binary schema-salad \ +RUN SCHEMA_SALAD_USE_MYPYC=1 MYPYPATH=mypy-stubs pip wheel --no-binary schema-salad \ $(grep schema.salad requirements.txt) black --wheel-dir=/wheels RUN pip install --force-reinstall --no-index --no-warn-script-location --root=/pythonroot/ /wheels/*.whl # --force-reinstall to install our new mypyc compiled schema-salad package diff --git a/cwltool/cwlrdf.py b/cwltool/cwlrdf.py index 529bc9777..1bfe8adcc 100644 --- a/cwltool/cwlrdf.py +++ b/cwltool/cwlrdf.py @@ -1,8 +1,9 @@ import urllib from codecs import StreamWriter -from typing import Any, Dict, Optional, TextIO, Union, cast +from typing import Any, Dict, Iterator, Optional, TextIO, Union, cast from rdflib import Graph +from rdflib.query import ResultRow from ruamel.yaml.comments import CommentedMap from schema_salad.jsonld_context import makerdf from schema_salad.utils import ContextType @@ -26,7 +27,7 @@ def printrdf(wflow: Process, ctx: ContextType, style: str) -> str: rdf = gather(wflow, ctx).serialize(format=style, encoding="utf-8") if not rdf: return "" - return cast(str, rdf.decode("utf-8")) + return rdf.decode("utf-8") def lastpart(uri: Any) -> str: @@ -37,13 +38,16 @@ def lastpart(uri: Any) -> str: def dot_with_parameters(g: Graph, stdout: Union[TextIO, StreamWriter]) -> None: - qres = g.query( - """SELECT ?step ?run ?runtype + qres = cast( + Iterator[ResultRow], + g.query( + """SELECT ?step ?run ?runtype WHERE { ?step cwl:run ?run . ?run rdf:type ?runtype . }""" - ) + ), + ) # ResultRow because the query is of type SELECT for step, run, _ in qres: stdout.write( @@ -51,14 +55,17 @@ def dot_with_parameters(g: Graph, stdout: Union[TextIO, StreamWriter]) -> None: % (lastpart(step), f"{lastpart(step)} ({lastpart(run)})") ) - qres = g.query( - """SELECT ?step ?inp ?source + qres = cast( + Iterator[ResultRow], + g.query( + """SELECT ?step ?inp ?source WHERE { ?wf Workflow:steps ?step . ?step cwl:inputs ?inp . ?inp cwl:source ?source . }""" - ) + ), + ) # ResultRow because the query is of type SELECT for step, inp, source in qres: stdout.write('"%s" [shape=box]\n' % (lastpart(inp))) @@ -69,13 +76,16 @@ def dot_with_parameters(g: Graph, stdout: Union[TextIO, StreamWriter]) -> None: '"{}" -> "{}" [label="{}"]\n'.format(lastpart(inp), lastpart(step), "") ) - qres = g.query( - """SELECT ?step ?out + qres = cast( + Iterator[ResultRow], + g.query( + """SELECT ?step ?out WHERE { ?wf Workflow:steps ?step . ?step cwl:outputs ?out . }""" - ) + ), + ) # ResultRow because the query is of type SELECT for step, out in qres: stdout.write('"%s" [shape=box]\n' % (lastpart(out))) @@ -83,13 +93,16 @@ def dot_with_parameters(g: Graph, stdout: Union[TextIO, StreamWriter]) -> None: '"{}" -> "{}" [label="{}"]\n'.format(lastpart(step), lastpart(out), "") ) - qres = g.query( - """SELECT ?out ?source + qres = cast( + Iterator[ResultRow], + g.query( + """SELECT ?out ?source WHERE { ?wf cwl:outputs ?out . ?out cwl:source ?source . }""" - ) + ), + ) # ResultRow because the query is of type SELECT for out, source in qres: stdout.write('"%s" [shape=octagon]\n' % (lastpart(out))) @@ -97,13 +110,16 @@ def dot_with_parameters(g: Graph, stdout: Union[TextIO, StreamWriter]) -> None: '"{}" -> "{}" [label="{}"]\n'.format(lastpart(source), lastpart(out), "") ) - qres = g.query( - """SELECT ?inp + qres = cast( + Iterator[ResultRow], + g.query( + """SELECT ?inp WHERE { ?wf rdf:type cwl:Workflow . ?wf cwl:inputs ?inp . }""" - ) + ), + ) # ResultRow because the query is of type SELECT for (inp,) in qres: stdout.write('"%s" [shape=octagon]\n' % (lastpart(inp))) @@ -116,27 +132,33 @@ def dot_without_parameters(g: Graph, stdout: Union[TextIO, StreamWriter]) -> Non stdout.write("compound=true\n") subworkflows = set() - qres = g.query( - """SELECT ?run + qres = cast( + Iterator[ResultRow], + g.query( + """SELECT ?run WHERE { ?wf rdf:type cwl:Workflow . ?wf Workflow:steps ?step . ?step cwl:run ?run . ?run rdf:type cwl:Workflow . } ORDER BY ?wf""" - ) + ), + ) # ResultRow because the query is of type SELECT for (run,) in qres: subworkflows.add(run) - qres = g.query( - """SELECT ?wf ?step ?run ?runtype + qres = cast( + Iterator[ResultRow], + g.query( + """SELECT ?wf ?step ?run ?runtype WHERE { ?wf rdf:type cwl:Workflow . ?wf Workflow:steps ?step . ?step cwl:run ?run . ?run rdf:type ?runtype . } ORDER BY ?wf""" - ) + ), + ) # ResultRow because the query is of type SELECT currentwf = None # type: Optional[str] for wf, step, _run, runtype in qres: @@ -164,8 +186,10 @@ def dot_without_parameters(g: Graph, stdout: Union[TextIO, StreamWriter]) -> Non if currentwf is not None: stdout.write("}\n") - qres = g.query( - """SELECT DISTINCT ?src ?sink ?srcrun ?sinkrun + qres = cast( + Iterator[ResultRow], + g.query( + """SELECT DISTINCT ?src ?sink ?srcrun ?sinkrun WHERE { ?wf1 Workflow:steps ?src . ?wf2 Workflow:steps ?sink . @@ -175,7 +199,8 @@ def dot_without_parameters(g: Graph, stdout: Union[TextIO, StreamWriter]) -> Non ?src cwl:run ?srcrun . ?sink cwl:run ?sinkrun . }""" - ) + ), + ) # ResultRow because the query is of type SELECT for src, sink, srcrun, sinkrun in qres: attr = "" diff --git a/cwltool/cwlviewer.py b/cwltool/cwlviewer.py index 6ebe7e556..40527fa2a 100644 --- a/cwltool/cwlviewer.py +++ b/cwltool/cwlviewer.py @@ -1,5 +1,6 @@ """Visualize a CWL workflow.""" from pathlib import Path +from typing import Iterator, List, cast from urllib.parse import urlparse import pydot @@ -32,9 +33,12 @@ def _load_cwl_graph(self, rdf_description: str) -> rdflib.graph.Graph: def _set_inner_edges(self) -> None: with open(_get_inner_edges_query_path) as f: get_inner_edges_query = f.read() - inner_edges = self._rdf_graph.query( - get_inner_edges_query, initBindings={"root_graph": self._root_graph_uri} - ) + inner_edges = cast( + Iterator[rdflib.query.ResultRow], + self._rdf_graph.query( + get_inner_edges_query, initBindings={"root_graph": self._root_graph_uri} + ), + ) # ResultRow because the query is of type SELECT for inner_edge_row in inner_edges: source_label = ( inner_edge_row["source_label"] @@ -103,9 +107,12 @@ def _set_input_edges(self) -> None: inputs_subgraph.set("style", "dashed") inputs_subgraph.set("label", "Workflow Inputs") - input_edges = self._rdf_graph.query( - get_input_edges_query, initBindings={"root_graph": self._root_graph_uri} - ) + input_edges = cast( + Iterator[rdflib.query.ResultRow], + self._rdf_graph.query( + get_input_edges_query, initBindings={"root_graph": self._root_graph_uri} + ), + ) # ResultRow because the query is of type SELECT for input_row in input_edges: n = pydot.Node( "", @@ -130,9 +137,12 @@ def _set_output_edges(self) -> None: outputs_graph.set("style", "dashed") outputs_graph.set("label", "Workflow Outputs") outputs_graph.set("labelloc", "b") - output_edges = self._rdf_graph.query( - get_output_edges, initBindings={"root_graph": self._root_graph_uri} - ) + output_edges = cast( + Iterator[rdflib.query.ResultRow], + self._rdf_graph.query( + get_output_edges, initBindings={"root_graph": self._root_graph_uri} + ), + ) # ResultRow because the query is of type SELECT for output_edge_row in output_edges: n = pydot.Node( "", @@ -150,11 +160,14 @@ def _set_output_edges(self) -> None: def _get_root_graph_uri(self) -> rdflib.URIRef: with open(_get_root_query_path) as f: get_root_query = f.read() - root = list( - self._rdf_graph.query( - get_root_query, - ) - ) + root = cast( + List[rdflib.query.ResultRow], + list( + self._rdf_graph.query( + get_root_query, + ) + ), + ) # ResultRow because the query is of type SELECT if len(root) != 1: raise RuntimeError( "Cannot identify root workflow! Notice that only Workflows can be visualized" diff --git a/cwltool/provenance_profile.py b/cwltool/provenance_profile.py index 025f5581d..0252127bb 100644 --- a/cwltool/provenance_profile.py +++ b/cwltool/provenance_profile.py @@ -8,17 +8,27 @@ from socket import getfqdn from typing import ( Any, + Dict, List, MutableMapping, MutableSequence, Optional, + Sequence, Tuple, Union, cast, ) -from prov.identifier import Identifier -from prov.model import PROV, PROV_LABEL, PROV_TYPE, PROV_VALUE, ProvDocument, ProvEntity +from prov.identifier import Identifier, QualifiedName +from prov.model import ( + PROV, + PROV_LABEL, + PROV_TYPE, + PROV_VALUE, + ProvDocument, + ProvEntity, + ProvRecord, +) from schema_salad.sourceline import SourceLine from typing_extensions import TYPE_CHECKING @@ -59,7 +69,7 @@ def copy_job_order( if not isinstance(job, WorkflowJob): # direct command line tool execution return job_order_object - customised_job = {} # type: CWLObjectType + customised_job: CWLObjectType = {} # new job object for RO debug = _logger.isEnabledFor(logging.DEBUG) for each, i in enumerate(job.tool["inputs"]): @@ -101,7 +111,7 @@ def __init__( self.document = ProvDocument() self.host_provenance = host_provenance self.user_provenance = user_provenance - self.engine_uuid = research_object.engine_uuid # type: str + self.engine_uuid = research_object.engine_uuid self.add_to_manifest = self.research_object.add_to_manifest if self.orcid: _logger.debug("[provenance] Creator ORCID: %s", self.orcid) @@ -109,7 +119,7 @@ def __init__( if self.full_name: _logger.debug("[provenance] Creator Full name: %s", self.full_name) self.workflow_run_uuid = run_uuid or uuid.uuid4() - self.workflow_run_uri = self.workflow_run_uuid.urn # type: str + self.workflow_run_uri = self.workflow_run_uuid.urn self.generate_prov_doc() def __str__(self) -> str: @@ -181,7 +191,10 @@ def host_provenance(document: ProvDocument) -> None: # by a user account, as cwltool is a command line tool account = self.document.agent(ACCOUNT_UUID) if self.orcid or self.full_name: - person = {PROV_TYPE: PROV["Person"], "prov:type": SCHEMA["Person"]} + person: Dict[Union[str, Identifier], Any] = { + PROV_TYPE: PROV["Person"], + "prov:type": SCHEMA["Person"], + } if self.full_name: person["prov:label"] = self.full_name person["foaf:name"] = self.full_name @@ -300,7 +313,7 @@ def declare_file(self, value: CWLObjectType) -> Tuple[ProvEntity, ProvEntity, st if value["class"] != "File": raise ValueError("Must have class:File: %s" % value) # Need to determine file hash aka RO filename - entity = None # type: Optional[ProvEntity] + entity: Optional[ProvEntity] = None checksum = None if "checksum" in value: csum = cast(str, value["checksum"]) @@ -335,19 +348,25 @@ def declare_file(self, value: CWLObjectType) -> Tuple[ProvEntity, ProvEntity, st # secondaryFiles. Note that multiple uses of a file might thus record # different names for the same entity, so we'll # make/track a specialized entity by UUID - file_id = value.setdefault("@id", uuid.uuid4().urn) + file_id = cast(str, value.setdefault("@id", uuid.uuid4().urn)) # A specialized entity that has just these names file_entity = self.document.entity( file_id, [(PROV_TYPE, WFPROV["Artifact"]), (PROV_TYPE, WF4EVER["File"])], - ) # type: ProvEntity + ) if "basename" in value: - file_entity.add_attributes({CWLPROV["basename"]: value["basename"]}) + file_entity.add_attributes( + {CWLPROV["basename"]: cast(str, value["basename"])} + ) if "nameroot" in value: - file_entity.add_attributes({CWLPROV["nameroot"]: value["nameroot"]}) + file_entity.add_attributes( + {CWLPROV["nameroot"]: cast(str, value["nameroot"])} + ) if "nameext" in value: - file_entity.add_attributes({CWLPROV["nameext"]: value["nameext"]}) + file_entity.add_attributes( + {CWLPROV["nameext"]: cast(str, value["nameext"])} + ) self.document.specializationOf(file_entity, entity) # Check for secondaries @@ -406,8 +425,10 @@ def declare_directory(self, value: CWLObjectType) -> ProvEntity: # dir_bundle.identifier, {PROV["type"]: ORE["ResourceMap"], # ORE["describes"]: coll_b.identifier}) - coll_attribs = [(ORE["isDescribedBy"], dir_bundle.identifier)] - coll_b_attribs = [] # type: List[Tuple[Identifier, ProvEntity]] + coll_attribs: List[Tuple[Union[str, Identifier], Any]] = [ + (ORE["isDescribedBy"], dir_bundle.identifier) + ] + coll_b_attribs: List[Tuple[Union[str, Identifier], Any]] = [] # FIXME: .listing might not be populated yet - hopefully # a later call to this method will sort that @@ -433,7 +454,7 @@ def declare_directory(self, value: CWLObjectType) -> ProvEntity: m_entity.add_attributes( { - PROV["pairKey"]: entry["basename"], + PROV["pairKey"]: cast(str, entry["basename"]), PROV["pairEntity"]: entity, } ) @@ -444,7 +465,7 @@ def declare_directory(self, value: CWLObjectType) -> ProvEntity: m_b.add_asserted_type(ORE["Proxy"]) m_b.add_attributes( { - RO["entryName"]: entry["basename"], + RO["entryName"]: cast(str, entry["basename"]), ORE["proxyIn"]: coll, ORE["proxyFor"]: entity, } @@ -485,7 +506,7 @@ def declare_string(self, value: str) -> Tuple[ProvEntity, str]: data_id = "data:%s" % PurePosixPath(data_file).stem entity = self.document.entity( data_id, {PROV_TYPE: WFPROV["Artifact"], PROV_VALUE: str(value)} - ) # type: ProvEntity + ) return entity, checksum def declare_artefact(self, value: Any) -> ProvEntity: @@ -525,7 +546,7 @@ def declare_artefact(self, value: Any) -> ProvEntity: # Already processed this value, but it might not be in this PROV entities = self.document.get_record(value["@id"]) if entities: - return entities[0] + return cast(List[ProvEntity], entities)[0] # else, unknown in PROV, re-add below as if it's fresh # Base case - we found a File we need to update @@ -556,7 +577,7 @@ def declare_artefact(self, value: Any) -> ProvEntity: coll.add_asserted_type(CWLPROV[value["class"]]) # Let's iterate and recurse - coll_attribs = [] # type: List[Tuple[Identifier, ProvEntity]] + coll_attribs: List[Tuple[Union[str, Identifier], Any]] = [] for (key, val) in value.items(): v_ent = self.declare_artefact(val) self.document.membership(coll, v_ent) @@ -709,20 +730,22 @@ def prospective_prov(self, job: JobsType) -> None: ) # TODO: Declare roles/parameters as well - def activity_has_provenance(self, activity, prov_ids): - # type: (str, List[Identifier]) -> None + def activity_has_provenance( + self, activity: str, prov_ids: Sequence[Identifier] + ) -> None: """Add http://www.w3.org/TR/prov-aq/ relations to nested PROV files.""" # NOTE: The below will only work if the corresponding metadata/provenance arcp URI # is a pre-registered namespace in the PROV Document - attribs = [(PROV["has_provenance"], prov_id) for prov_id in prov_ids] + attribs: List[Tuple[Union[str, Identifier], Any]] = [ + (PROV["has_provenance"], prov_id) for prov_id in prov_ids + ] self.document.activity(activity, other_attributes=attribs) # Tip: we can't use https://www.w3.org/TR/prov-links/#term-mention # as prov:mentionOf() is only for entities, not activities uris = [i.uri for i in prov_ids] self.research_object.add_annotation(activity, uris, PROV["has_provenance"].uri) - def finalize_prov_profile(self, name): - # type: (Optional[str]) -> List[Identifier] + def finalize_prov_profile(self, name: Optional[str]) -> List[QualifiedName]: """Transfer the provenance related files to the RO.""" # NOTE: Relative posix path if name is None: diff --git a/cwltool/software_requirements.py b/cwltool/software_requirements.py index b91946160..37eafd0b6 100644 --- a/cwltool/software_requirements.py +++ b/cwltool/software_requirements.py @@ -135,10 +135,8 @@ def get_container_from_software_requirements( ) -> Optional[str]: if use_biocontainers: ensure_galaxy_lib_available() - from galaxy.tool_util.deps.containers import ( - DOCKER_CONTAINER_TYPE, - ContainerRegistry, - ) + from galaxy.tool_util.deps.container_classes import DOCKER_CONTAINER_TYPE + from galaxy.tool_util.deps.containers import ContainerRegistry from galaxy.tool_util.deps.dependencies import AppInfo, ToolInfo app_info = AppInfo( @@ -153,7 +151,7 @@ def get_container_from_software_requirements( [DOCKER_CONTAINER_TYPE], tool_info ) if container_description: - return container_description.identifier + return cast(Optional[str], container_description.identifier) return None diff --git a/mypy-stubs/arcp/__init__.pyi b/mypy-stubs/arcp/__init__.pyi new file mode 100644 index 000000000..794fdbf6c --- /dev/null +++ b/mypy-stubs/arcp/__init__.pyi @@ -0,0 +1,6 @@ +from .parse import is_arcp_uri as is_arcp_uri +from .parse import parse_arcp as parse_arcp + +ARCP: str +NI: str +NIH: str diff --git a/mypy-stubs/arcp/parse.pyi b/mypy-stubs/arcp/parse.pyi new file mode 100644 index 000000000..560671663 --- /dev/null +++ b/mypy-stubs/arcp/parse.pyi @@ -0,0 +1,25 @@ +from typing import Any, Tuple, Union +from urllib.parse import ParseResult +from uuid import NAMESPACE_URL, UUID + +SCHEME: str + +def is_arcp_uri(uri: str) -> bool: ... +def parse_arcp(uri: str) -> "ARCPParseResult": ... +def urlparse(uri: str) -> Union["ARCPParseResult", ParseResult]: ... + +class ARCPParseResult(ParseResult): + def __init__(self, *args: Any) -> None: ... + @property + def prefix(self) -> str: ... + @property + def name(self) -> str: ... + @property + def uuid(self) -> UUID: ... + @property + def ni(self) -> str | None: ... + def ni_uri(self, authority: str = ...) -> str | None: ... + def nih_uri(self) -> str | None: ... + def ni_well_known(self, base: str = ...) -> str | None: ... + @property + def hash(self) -> Tuple[str, str] | None: ... diff --git a/mypy-stubs/argcomplete/__init__.pyi b/mypy-stubs/argcomplete/__init__.pyi new file mode 100644 index 000000000..f9204a07b --- /dev/null +++ b/mypy-stubs/argcomplete/__init__.pyi @@ -0,0 +1,18 @@ +import argparse +from typing import Any, Optional + +class CompletionFinder: + def __call__( + self, + argument_parser: argparse.ArgumentParser, + always_complete_options: bool = ..., + exit_method: Any = ..., + output_stream: Optional[Any] = ..., + exclude: Optional[Any] = ..., + validator: Optional[Any] = ..., + print_suppressed: bool = ..., + append_space: Optional[Any] = ..., + default_completer: Any = ..., + ) -> None: ... + +autocomplete: CompletionFinder diff --git a/mypy-stubs/bagit.pyi b/mypy-stubs/bagit.pyi new file mode 100644 index 000000000..2b0f5b9f2 --- /dev/null +++ b/mypy-stubs/bagit.pyi @@ -0,0 +1,50 @@ +import argparse +from typing import Any, Dict, Iterator, List, Optional, Tuple + +from _typeshed import Incomplete + +TRANSLATION_CATALOG: Any +MODULE_NAME: Any +LOGGER: Any +VERSION: Any +PROJECT_URL: str +STANDARD_BAG_INFO_HEADERS: Any +CHECKSUM_ALGOS: Any +DEFAULT_CHECKSUMS: Any +HASH_BLOCK_SIZE: Any +open_text_file: Any +UNICODE_BYTE_ORDER_MARK: str + +class Bag: + valid_files: Any = ... + valid_directories: Any = ... + tags: Any = ... + info: Dict[str, str] = ... + entries: Any = ... + normalized_filesystem_names: Any = ... + normalized_manifest_names: Any = ... + algorithms: Any = ... + tag_file_name: Any = ... + path: Any = ... + def __init__(self, path: Optional[Any] = ...) -> None: ... + @property + def algs(self) -> List[str]: ... + @property + def version(self) -> str: ... + def manifest_files(self) -> Iterator[str]: ... + def tagmanifest_files(self) -> None: ... + def compare_manifests_with_fs(self) -> Tuple[List[str], List[str]]: ... + def compare_fetch_with_fs(self) -> List[str]: ... + def payload_files(self) -> Iterator[str]: ... + def payload_entries(self) -> Dict[str, str]: ... + def save(self, processes: int = ..., manifests: bool = ...) -> None: ... + def tagfile_entries(self) -> Dict[str, str]: ... + def missing_optional_tagfiles(self) -> Iterator[str]: ... + def fetch_entries(self) -> Iterator[Tuple[str, str, str]]: ... + def files_to_be_fetched(self) -> Iterator[str]: ... + def has_oxum(self) -> bool: ... + def validate( + self, processes: int = ..., fast: bool = ..., completeness_only: bool = ... + ) -> bool: ... + def is_valid(self, fast: bool = ..., completeness_only: bool = ...) -> bool: ... + def validate_fetch(self) -> None: ... diff --git a/typeshed/black/__init__.pyi b/mypy-stubs/black/__init__.pyi similarity index 100% rename from typeshed/black/__init__.pyi rename to mypy-stubs/black/__init__.pyi diff --git a/typeshed/cachecontrol/__init__.pyi b/mypy-stubs/cachecontrol/__init__.pyi similarity index 63% rename from typeshed/cachecontrol/__init__.pyi rename to mypy-stubs/cachecontrol/__init__.pyi index 3a894cc06..d8c9745da 100644 --- a/typeshed/cachecontrol/__init__.pyi +++ b/mypy-stubs/cachecontrol/__init__.pyi @@ -6,7 +6,4 @@ from typing import Any from .wrapper import CacheControl as CacheControl -# from .adapter import CacheControlAdapter as CacheControlAdapter -# from .controller import CacheController as CacheController - __email__ = ... # type: Any diff --git a/mypy-stubs/cachecontrol/cache.pyi b/mypy-stubs/cachecontrol/cache.pyi new file mode 100644 index 000000000..04b98f2ea --- /dev/null +++ b/mypy-stubs/cachecontrol/cache.pyi @@ -0,0 +1,5 @@ +class BaseCache: + def get(self, key: str) -> str | None: ... + def set(self, key: str, value: str) -> None: ... + def delete(self, key: str) -> None: ... + def close(self) -> None: ... diff --git a/typeshed/cachecontrol/caches/__init__.pyi b/mypy-stubs/cachecontrol/caches/__init__.pyi similarity index 100% rename from typeshed/cachecontrol/caches/__init__.pyi rename to mypy-stubs/cachecontrol/caches/__init__.pyi diff --git a/mypy-stubs/cachecontrol/caches/file_cache.pyi b/mypy-stubs/cachecontrol/caches/file_cache.pyi new file mode 100644 index 000000000..229c143ba --- /dev/null +++ b/mypy-stubs/cachecontrol/caches/file_cache.pyi @@ -0,0 +1,31 @@ +from os import PathLike +from typing import ContextManager + +from ..cache import BaseCache as BaseCache +from ..controller import CacheController as CacheController + +class _LockClass: + path: str + +_lock_class = ContextManager[_LockClass] + +class FileCache(BaseCache): + directory: str | PathLike[str] + forever: bool + filemode: str + dirmode: str + lock_class: _lock_class + def __init__( + self, + directory: str | PathLike[str], + forever: bool = ..., + filemode: int = ..., + dirmode: int = ..., + use_dir_lock: bool | None = ..., + lock_class: _lock_class | None = ..., + ) -> None: ... + @staticmethod + def encode(x: str) -> str: ... + def get(self, key: str) -> None | str: ... + def set(self, key: str, value: str) -> None: ... + def delete(self, key: str) -> None: ... diff --git a/typeshed/cachecontrol/compat.pyi b/mypy-stubs/cachecontrol/compat.pyi similarity index 100% rename from typeshed/cachecontrol/compat.pyi rename to mypy-stubs/cachecontrol/compat.pyi diff --git a/mypy-stubs/cachecontrol/controller.pyi b/mypy-stubs/cachecontrol/controller.pyi new file mode 100644 index 000000000..5118fab02 --- /dev/null +++ b/mypy-stubs/cachecontrol/controller.pyi @@ -0,0 +1,17 @@ +from _typeshed import Incomplete + +logger: Incomplete +URI: Incomplete + +class CacheController: + cache: Incomplete + cache_etags: Incomplete + serializer: Incomplete + cacheable_status_codes: Incomplete + def __init__( + self, + cache: Incomplete | None = ..., + cache_etags: bool = ..., + serializer: Incomplete | None = ..., + status_codes: Incomplete | None = ..., + ) -> None: ... diff --git a/mypy-stubs/cachecontrol/wrapper.pyi b/mypy-stubs/cachecontrol/wrapper.pyi new file mode 100644 index 000000000..a4da67289 --- /dev/null +++ b/mypy-stubs/cachecontrol/wrapper.pyi @@ -0,0 +1,13 @@ +from _typeshed import Incomplete +from requests import Session + +def CacheControl( + sess: Session, + cache: Incomplete | None = ..., + cache_etags: bool = ..., + serializer: Incomplete | None = ..., + heuristic: Incomplete | None = ..., + controller_class: Incomplete | None = ..., + adapter_class: Incomplete | None = ..., + cacheable_methods: Incomplete | None = ..., +) -> Session: ... diff --git a/mypy-stubs/coloredlogs/__init__.pyi b/mypy-stubs/coloredlogs/__init__.pyi new file mode 100644 index 000000000..7a698c508 --- /dev/null +++ b/mypy-stubs/coloredlogs/__init__.pyi @@ -0,0 +1,7 @@ +import logging +from typing import Any + +def install(level: int | str | None = ..., **kw: Any) -> None: ... + +class BasicFormatter(logging.Formatter): ... +class ColoredFormatter(BasicFormatter): ... diff --git a/typeshed/graphviz/__init__.pyi b/mypy-stubs/graphviz/__init__.pyi similarity index 100% rename from typeshed/graphviz/__init__.pyi rename to mypy-stubs/graphviz/__init__.pyi diff --git a/typeshed/graphviz/_compat.pyi b/mypy-stubs/graphviz/_compat.pyi similarity index 99% rename from typeshed/graphviz/_compat.pyi rename to mypy-stubs/graphviz/_compat.pyi index ce4b27131..4308df0ad 100644 --- a/typeshed/graphviz/_compat.pyi +++ b/mypy-stubs/graphviz/_compat.pyi @@ -11,4 +11,5 @@ text_type = unicode def iteritems(d): ... def makedirs(name, mode: int = ..., exist_ok: bool = ...): ... def stderr_write_binary(data): ... + text_type = str diff --git a/typeshed/graphviz/backend.pyi b/mypy-stubs/graphviz/backend.pyi similarity index 100% rename from typeshed/graphviz/backend.pyi rename to mypy-stubs/graphviz/backend.pyi diff --git a/mypy-stubs/graphviz/dot.pyi b/mypy-stubs/graphviz/dot.pyi new file mode 100644 index 000000000..01b81ea0f --- /dev/null +++ b/mypy-stubs/graphviz/dot.pyi @@ -0,0 +1,78 @@ +# Stubs for graphviz.dot (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +from . import files + +class Dot(files.File): + name: Any = ... + comment: Any = ... + graph_attr: Any = ... + node_attr: Any = ... + edge_attr: Any = ... + body: Any = ... + strict: Any = ... + def __init__( + self, + name: Optional[Any] = ..., + comment: Optional[Any] = ..., + filename: Optional[Any] = ..., + directory: Optional[Any] = ..., + format: Optional[Any] = ..., + engine: Optional[Any] = ..., + encoding: Any = ..., + graph_attr: Optional[Any] = ..., + node_attr: Optional[Any] = ..., + edge_attr: Optional[Any] = ..., + body: Optional[Any] = ..., + strict: bool = ..., + ) -> None: ... + def clear(self, keep_attrs: bool = ...): ... + def __iter__(self, subgraph: bool = ...): ... + source: Any = ... + def node( + self, + name, + label: Optional[Any] = ..., + _attributes: Optional[Any] = ..., + **attrs + ): ... + def edge( + self, + tail_name, + head_name, + label: Optional[Any] = ..., + _attributes: Optional[Any] = ..., + **attrs + ): ... + def edges(self, tail_head_iter): ... + def attr( + self, kw: Optional[Any] = ..., _attributes: Optional[Any] = ..., **attrs + ): ... + def subgraph( + self, + graph: Optional[Any] = ..., + name: Optional[Any] = ..., + comment: Optional[Any] = ..., + graph_attr: Optional[Any] = ..., + node_attr: Optional[Any] = ..., + edge_attr: Optional[Any] = ..., + body: Optional[Any] = ..., + ): ... + +class SubgraphContext: + parent: Any = ... + graph: Any = ... + def __init__(self, parent, kwargs) -> None: ... + def __enter__(self): ... + def __exit__(self, type_, value, traceback): ... + +class Graph(Dot): + @property + def directed(self): ... + +class Digraph(Dot): + @property + def directed(self): ... diff --git a/mypy-stubs/graphviz/files.pyi b/mypy-stubs/graphviz/files.pyi new file mode 100644 index 000000000..b0b8bdedc --- /dev/null +++ b/mypy-stubs/graphviz/files.pyi @@ -0,0 +1,73 @@ +# Stubs for graphviz.files (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class Base: + @property + def format(self): ... + @format.setter + def format(self, format): ... + @property + def engine(self): ... + @engine.setter + def engine(self, engine): ... + @property + def encoding(self): ... + @encoding.setter + def encoding(self, encoding): ... + def copy(self): ... + +class File(Base): + directory: str = ... + filename: Any = ... + format: Any = ... + engine: Any = ... + encoding: Any = ... + def __init__( + self, + filename: Optional[Any] = ..., + directory: Optional[Any] = ..., + format: Optional[Any] = ..., + engine: Optional[Any] = ..., + encoding: Any = ..., + ) -> None: ... + def pipe(self, format: Optional[Any] = ...): ... + @property + def filepath(self): ... + def save(self, filename: Optional[Any] = ..., directory: Optional[Any] = ...): ... + def render( + self, + filename: Optional[Any] = ..., + directory: Optional[Any] = ..., + view: bool = ..., + cleanup: bool = ..., + ): ... + def view( + self, + filename: Optional[Any] = ..., + directory: Optional[Any] = ..., + cleanup: bool = ..., + ): ... + +class Source(File): + @classmethod + def from_file( + cls, + filename, + directory: Optional[Any] = ..., + format: Optional[Any] = ..., + engine: Optional[Any] = ..., + encoding: Any = ..., + ): ... + source: Any = ... + def __init__( + self, + source, + filename: Optional[Any] = ..., + directory: Optional[Any] = ..., + format: Optional[Any] = ..., + engine: Optional[Any] = ..., + encoding: Any = ..., + ) -> None: ... diff --git a/mypy-stubs/graphviz/lang.pyi b/mypy-stubs/graphviz/lang.pyi new file mode 100644 index 000000000..9613c5c50 --- /dev/null +++ b/mypy-stubs/graphviz/lang.pyi @@ -0,0 +1,22 @@ +# Stubs for graphviz.lang (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def quote( + identifier, html: Any = ..., valid_id: Any = ..., dot_keywords: Any = ... +): ... +def quote_edge(identifier): ... +def a_list( + label: Optional[Any] = ..., + kwargs: Optional[Any] = ..., + attributes: Optional[Any] = ..., +): ... +def attr_list( + label: Optional[Any] = ..., + kwargs: Optional[Any] = ..., + attributes: Optional[Any] = ..., +): ... + +class NoHtml: ... diff --git a/typeshed/graphviz/tools.pyi b/mypy-stubs/graphviz/tools.pyi similarity index 100% rename from typeshed/graphviz/tools.pyi rename to mypy-stubs/graphviz/tools.pyi diff --git a/mypy-stubs/mistune.pyi b/mypy-stubs/mistune.pyi new file mode 100644 index 000000000..b4fe10213 --- /dev/null +++ b/mypy-stubs/mistune.pyi @@ -0,0 +1,197 @@ +__author__ = "Aleksandr Slepchenkov" +__email__ = "Sl.aleksandr28@gmail.com" + +from typing import ( + Any, + Dict, + Iterable, + List, + Match, + Optional, + Pattern, + Sequence, + Tuple, + Type, +) + +Tokens = List[Dict[str, Any]] +# There are too much levels of optional unions of lists of text in cell and align 385 and 396 lines in mistune + +def escape(text: str, quote: bool = ..., smart_amp: bool = ...) -> str: ... + +class BlockGrammar: + def_links: Pattern[str] + def_footnotes: Pattern[str] + newline: Pattern[str] + block_code: Pattern[str] + fences: Pattern[str] + hrule: Pattern[str] + heading: Pattern[str] + lheading: Pattern[str] + block_quote: Pattern[str] + list_block: Pattern[str] + list_item: Pattern[str] + list_bullet: Pattern[str] + paragraph: Pattern[str] + block_html: Pattern[str] + table: Pattern[str] + nptable: Pattern[str] + text: Pattern[str] + +class BlockLexer: + grammar_class: Type[BlockGrammar] + default_rules: List[str] + list_rules: Tuple[str] + footnote_rules: Tuple[str] + tokens: Tokens + def_links: Dict[str, Dict[str, str]] + def_footnotes: Dict[str, int] + rules = ... # type: BlockGrammar + def __init__(self, rules: Optional[BlockGrammar] = ..., **kwargs: Any) -> None: ... + def __call__(self, text: str, rules: Optional[Sequence[str]] = ...) -> Tokens: ... + def parse(self, text: str, rules: Optional[Sequence[str]] = ...) -> Tokens: ... + def parse_newline(self, m: Match[str]) -> None: ... + def parse_block_code(self, m: Match[str]) -> None: ... + def parse_fences(self, m: Match[str]) -> None: ... + def parse_heading(self, m: Match[str]) -> None: ... + def parse_lheading(self, m: Match[str]) -> None: ... + def parse_hrule(self, m: Match[str]) -> None: ... + def parse_list_block(self, m: Match[str]) -> None: ... + def parse_block_quote(self, m: Match[str]) -> None: ... + def parse_def_links(self, m: Match[str]) -> None: ... + def parse_def_footnotes(self, m: Match[str]) -> None: ... + def parse_table(self, m: Match[str]) -> None: ... + def parse_nptable(self, m: Match[str]) -> None: ... + def parse_block_html(self, m: Match[str]) -> None: ... + def parse_paragraph(self, m: Match[str]) -> None: ... + def parse_text(self, m: Match[str]) -> None: ... + +class InlineGrammar: + escape: Pattern[str] + inline_html: Pattern[str] + autolink: Pattern[str] + link: Pattern[str] + reflink: Pattern[str] + nolink: Pattern[str] + url: Pattern[str] + double_emphasis: Pattern[str] + emphasis: Pattern[str] + code: Pattern[str] + linebreak: Pattern[str] + strikethrough: Pattern[str] + footnote: Pattern[str] + text: Pattern[str] + def hard_wrap(self) -> None: ... + +class InlineLexer: + grammar_class: Type[InlineGrammar] + default_rules: List[str] + inline_html_rules: List[str] + renderer: Renderer + links: Dict[str, Dict[str, str]] + footnotes: Dict[str, int] + footnote_index: int + _in_link: bool + _in_footnote: bool + _parse_inline_html: bool + rules: InlineGrammar + def __init__( + self, renderer: Renderer, rules: Optional[InlineGrammar] = ..., **kwargs: Any + ) -> None: ... + def __call__(self, text: str, rules: Optional[Sequence[str]] = ...) -> str: ... + def setup( + self, + links: Optional[Dict[str, Dict[str, str]]], + footnotes: Optional[Dict[str, int]], + ) -> None: ... + line_match: Match[str] + line_started: bool + def output(self, text: str, rules: Optional[Sequence[str]] = ...) -> str: ... + def output_escape(self, m: Match[str]) -> str: ... + def output_autolink(self, m: Match[str]) -> str: ... + def output_url(self, m: Match[str]) -> str: ... + def output_inline_html(self, m: Match[str]) -> str: ... + def output_footnote(self, m: Match[str]) -> Optional[str]: ... + def output_link(self, m: Match[str]) -> str: ... + def output_reflink(self, m: Match[str]) -> Optional[str]: ... + def output_nolink(self, m: Match[str]) -> Optional[str]: ... + def output_double_emphasis(self, m: Match[str]) -> str: ... + def output_emphasis(self, m: Match[str]) -> str: ... + def output_code(self, m: Match[str]) -> str: ... + def output_linebreak(self, m: Match[str]) -> str: ... + def output_strikethrough(self, m: Match[str]) -> str: ... + def output_text(self, m: Match[str]) -> str: ... + +class Renderer: + options: Dict[str, str] + def __init__(self, **kwargs: Any) -> None: ... + def placeholder(self) -> str: ... + def block_code( + self, code: str, lang: Any = ... + ) -> str: ... # It seems that lang should be string, however other types are valid as well + def block_quote(self, text: str) -> str: ... + def block_html(self, html: str) -> str: ... + def header(self, text: str, level: int, raw: Optional[str] = ...) -> str: ... + def hrule(self) -> str: ... + def list( + self, body: Any, ordered: bool = ... + ) -> str: ... # body - same reason as for lang above, and for other Any in this class + def list_item(self, text: Any) -> str: ... + def paragraph(self, text: str) -> str: ... + def table(self, header: Any, body: Any) -> str: ... + def table_row(self, content: Any) -> str: ... + def table_cell(self, content: Any, **flags: Dict[str, Any]) -> str: ... + def double_emphasis(self, text: Any) -> str: ... + def emphasis(self, text: Any) -> str: ... + def codespan(self, text: str) -> str: ... + def linebreak(self) -> str: ... + def strikethrough(self, text: Any) -> str: ... + def text(self, text: Any) -> str: ... + def escape(self, text: Any) -> str: ... + def autolink(self, link: Any, is_email: bool = ...) -> str: ... + def link(self, link: Any, title: Any, text: Any) -> str: ... + def image(self, src: Any, title: Any, text: Any) -> str: ... + def inline_html(self, html: Any) -> str: ... + def newline(self) -> str: ... + def footnote_ref(self, key: Any, index: int) -> str: ... + def footnote_item(self, key: Any, text: str) -> str: ... + def footnotes(self, text: Any) -> str: ... + +class Markdown: + renderer = ... # type: Renderer + inline = ... # type: InlineLexer + block = ... # type: BlockLexer + footnotes = ... # type: List[Dict[str, Any]] + tokens = ... # type: Tokens + def __init__( + self, + renderer: Optional[Renderer] = ..., + inline: Optional[InlineLexer] = ..., + block: Optional[BlockLexer] = ..., + **kwargs: Any + ) -> None: ... + def __call__(self, text: str) -> str: ... + def render(self, text: str) -> str: ... + def parse(self, text: str) -> str: ... + token = ... # type: Dict[str, Any] + def pop(self) -> Optional[Dict[str, Any]]: ... + def peek(self) -> Optional[Dict[str, Any]]: ... + def output(self, text: str, rules: Optional[Sequence[str]] = ...) -> str: ... + def tok(self) -> str: ... + def tok_text(self) -> str: ... + def output_newline(self) -> str: ... + def output_hrule(self) -> str: ... + def output_heading(self) -> str: ... + def output_code(self) -> str: ... + def output_table(self) -> str: ... + def output_block_quote(self) -> str: ... + def output_list(self) -> str: ... + def output_list_item(self) -> str: ... + def output_loose_item(self) -> str: ... + def output_footnote(self) -> str: ... + def output_close_html(self) -> str: ... + def output_open_html(self) -> str: ... + def output_paragraph(self) -> str: ... + def output_text(self) -> str: ... + +def markdown(text: str, escape: bool = ..., **kwargs: Any) -> str: ... diff --git a/typeshed/networkx/__init__.pyi b/mypy-stubs/networkx/__init__.pyi similarity index 100% rename from typeshed/networkx/__init__.pyi rename to mypy-stubs/networkx/__init__.pyi diff --git a/typeshed/networkx/algorithms/__init__.pyi b/mypy-stubs/networkx/algorithms/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/__init__.pyi rename to mypy-stubs/networkx/algorithms/__init__.pyi index bf5ef35b0..d4579ee00 100644 --- a/typeshed/networkx/algorithms/__init__.pyi +++ b/mypy-stubs/networkx/algorithms/__init__.pyi @@ -5,18 +5,18 @@ from networkx.algorithms.assortativity import * from networkx.algorithms.boundary import * from networkx.algorithms.bridges import * -from networkx.algorithms.chains import * from networkx.algorithms.centrality import * +from networkx.algorithms.chains import * from networkx.algorithms.chordal import * -from networkx.algorithms.cluster import * from networkx.algorithms.clique import * +from networkx.algorithms.cluster import * +from networkx.algorithms.coloring import * from networkx.algorithms.communicability_alg import * from networkx.algorithms.components import * -from networkx.algorithms.coloring import * from networkx.algorithms.core import * from networkx.algorithms.covering import * -from networkx.algorithms.cycles import * from networkx.algorithms.cuts import * +from networkx.algorithms.cycles import * from networkx.algorithms.dag import * from networkx.algorithms.distance_measures import * from networkx.algorithms.distance_regular import * @@ -27,10 +27,10 @@ from networkx.algorithms.euler import * from networkx.algorithms.graphical import * from networkx.algorithms.hierarchy import * from networkx.algorithms.hybrid import * +from networkx.algorithms.isolate import * from networkx.algorithms.link_analysis import * from networkx.algorithms.link_prediction import * from networkx.algorithms.lowest_common_ancestors import * -from networkx.algorithms.isolate import * from networkx.algorithms.matching import * from networkx.algorithms.minors import * from networkx.algorithms.mis import * @@ -42,13 +42,13 @@ from networkx.algorithms.similarity import * from networkx.algorithms.simple_paths import * from networkx.algorithms.smetric import * from networkx.algorithms.structuralholes import * -from networkx.algorithms.triads import * from networkx.algorithms.swap import * from networkx.algorithms.traversal import * -from networkx.algorithms.vitality import * -from networkx.algorithms.voronoi import * -from networkx.algorithms.wiener import * from networkx.algorithms.tree.coding import * +from networkx.algorithms.tree.mst import * from networkx.algorithms.tree.operations import * from networkx.algorithms.tree.recognition import * -from networkx.algorithms.tree.mst import * +from networkx.algorithms.triads import * +from networkx.algorithms.vitality import * +from networkx.algorithms.voronoi import * +from networkx.algorithms.wiener import * diff --git a/typeshed/networkx/algorithms/approximation/__init__.pyi b/mypy-stubs/networkx/algorithms/approximation/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/approximation/__init__.pyi rename to mypy-stubs/networkx/algorithms/approximation/__init__.pyi index b320de64d..24da5b4c0 100644 --- a/typeshed/networkx/algorithms/approximation/__init__.pyi +++ b/mypy-stubs/networkx/algorithms/approximation/__init__.pyi @@ -2,12 +2,12 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from networkx.algorithms.approximation.clustering_coefficient import * from networkx.algorithms.approximation.clique import * +from networkx.algorithms.approximation.clustering_coefficient import * from networkx.algorithms.approximation.connectivity import * from networkx.algorithms.approximation.dominating_set import * -from networkx.algorithms.approximation.kcomponents import * from networkx.algorithms.approximation.independent_set import * +from networkx.algorithms.approximation.kcomponents import * from networkx.algorithms.approximation.matching import * from networkx.algorithms.approximation.ramsey import * from networkx.algorithms.approximation.steinertree import * diff --git a/typeshed/networkx/algorithms/approximation/clique.pyi b/mypy-stubs/networkx/algorithms/approximation/clique.pyi similarity index 100% rename from typeshed/networkx/algorithms/approximation/clique.pyi rename to mypy-stubs/networkx/algorithms/approximation/clique.pyi diff --git a/typeshed/networkx/algorithms/approximation/clustering_coefficient.pyi b/mypy-stubs/networkx/algorithms/approximation/clustering_coefficient.pyi similarity index 100% rename from typeshed/networkx/algorithms/approximation/clustering_coefficient.pyi rename to mypy-stubs/networkx/algorithms/approximation/clustering_coefficient.pyi diff --git a/typeshed/networkx/algorithms/approximation/connectivity.pyi b/mypy-stubs/networkx/algorithms/approximation/connectivity.pyi similarity index 76% rename from typeshed/networkx/algorithms/approximation/connectivity.pyi rename to mypy-stubs/networkx/algorithms/approximation/connectivity.pyi index d10a99c6e..e7723ca0f 100644 --- a/typeshed/networkx/algorithms/approximation/connectivity.pyi +++ b/mypy-stubs/networkx/algorithms/approximation/connectivity.pyi @@ -6,4 +6,6 @@ from typing import Any, Optional def local_node_connectivity(G, source, target, cutoff: Optional[Any] = ...): ... def node_connectivity(G, s: Optional[Any] = ..., t: Optional[Any] = ...): ... -def all_pairs_node_connectivity(G, nbunch: Optional[Any] = ..., cutoff: Optional[Any] = ...): ... +def all_pairs_node_connectivity( + G, nbunch: Optional[Any] = ..., cutoff: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/algorithms/approximation/dominating_set.pyi b/mypy-stubs/networkx/algorithms/approximation/dominating_set.pyi similarity index 100% rename from typeshed/networkx/algorithms/approximation/dominating_set.pyi rename to mypy-stubs/networkx/algorithms/approximation/dominating_set.pyi diff --git a/typeshed/networkx/algorithms/approximation/independent_set.pyi b/mypy-stubs/networkx/algorithms/approximation/independent_set.pyi similarity index 100% rename from typeshed/networkx/algorithms/approximation/independent_set.pyi rename to mypy-stubs/networkx/algorithms/approximation/independent_set.pyi diff --git a/typeshed/networkx/algorithms/approximation/kcomponents.pyi b/mypy-stubs/networkx/algorithms/approximation/kcomponents.pyi similarity index 99% rename from typeshed/networkx/algorithms/approximation/kcomponents.pyi rename to mypy-stubs/networkx/algorithms/approximation/kcomponents.pyi index 61b5efe0a..0fb63e819 100644 --- a/typeshed/networkx/algorithms/approximation/kcomponents.pyi +++ b/mypy-stubs/networkx/algorithms/approximation/kcomponents.pyi @@ -2,10 +2,11 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -import networkx as nx from collections import Mapping from typing import Any +import networkx as nx + def k_components(G, min_density: float = ...): ... class _AntiGraph(nx.Graph): @@ -14,22 +15,27 @@ class _AntiGraph(nx.Graph): edge_attr_dict_factory: Any = ... def __getitem__(self, n): ... def neighbors(self, n): ... + class AntiAtlasView(Mapping): def __init__(self, graph, node) -> None: ... def __len__(self): ... def __iter__(self): ... def __getitem__(self, nbr): ... + class AntiAdjacencyView(AntiAtlasView): def __init__(self, graph) -> None: ... def __len__(self): ... def __iter__(self): ... def __getitem__(self, node): ... + @property def adj(self): ... def subgraph(self, nodes): ... + class AntiDegreeView(nx.reportviews.DegreeView): def __iter__(self): ... def __getitem__(self, n): ... + @property def degree(self): ... def adjacency(self): ... diff --git a/typeshed/networkx/algorithms/approximation/matching.pyi b/mypy-stubs/networkx/algorithms/approximation/matching.pyi similarity index 100% rename from typeshed/networkx/algorithms/approximation/matching.pyi rename to mypy-stubs/networkx/algorithms/approximation/matching.pyi diff --git a/typeshed/networkx/algorithms/approximation/ramsey.pyi b/mypy-stubs/networkx/algorithms/approximation/ramsey.pyi similarity index 100% rename from typeshed/networkx/algorithms/approximation/ramsey.pyi rename to mypy-stubs/networkx/algorithms/approximation/ramsey.pyi diff --git a/typeshed/networkx/algorithms/approximation/steinertree.pyi b/mypy-stubs/networkx/algorithms/approximation/steinertree.pyi similarity index 100% rename from typeshed/networkx/algorithms/approximation/steinertree.pyi rename to mypy-stubs/networkx/algorithms/approximation/steinertree.pyi diff --git a/typeshed/networkx/algorithms/approximation/vertex_cover.pyi b/mypy-stubs/networkx/algorithms/approximation/vertex_cover.pyi similarity index 100% rename from typeshed/networkx/algorithms/approximation/vertex_cover.pyi rename to mypy-stubs/networkx/algorithms/approximation/vertex_cover.pyi diff --git a/typeshed/networkx/algorithms/assortativity/__init__.pyi b/mypy-stubs/networkx/algorithms/assortativity/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/assortativity/__init__.pyi rename to mypy-stubs/networkx/algorithms/assortativity/__init__.pyi diff --git a/typeshed/networkx/algorithms/assortativity/connectivity.pyi b/mypy-stubs/networkx/algorithms/assortativity/connectivity.pyi similarity index 61% rename from typeshed/networkx/algorithms/assortativity/connectivity.pyi rename to mypy-stubs/networkx/algorithms/assortativity/connectivity.pyi index 7f3ea3d7a..c9bf01116 100644 --- a/typeshed/networkx/algorithms/assortativity/connectivity.pyi +++ b/mypy-stubs/networkx/algorithms/assortativity/connectivity.pyi @@ -4,5 +4,12 @@ from typing import Any, Optional -def average_degree_connectivity(G, source: str = ..., target: str = ..., nodes: Optional[Any] = ..., weight: Optional[Any] = ...): ... +def average_degree_connectivity( + G, + source: str = ..., + target: str = ..., + nodes: Optional[Any] = ..., + weight: Optional[Any] = ..., +): ... + k_nearest_neighbors = average_degree_connectivity diff --git a/typeshed/networkx/algorithms/assortativity/correlation.pyi b/mypy-stubs/networkx/algorithms/assortativity/correlation.pyi similarity index 53% rename from typeshed/networkx/algorithms/assortativity/correlation.pyi rename to mypy-stubs/networkx/algorithms/assortativity/correlation.pyi index 23a19a4d9..35774b514 100644 --- a/typeshed/networkx/algorithms/assortativity/correlation.pyi +++ b/mypy-stubs/networkx/algorithms/assortativity/correlation.pyi @@ -4,7 +4,19 @@ from typing import Any, Optional -def degree_assortativity_coefficient(G, x: str = ..., y: str = ..., weight: Optional[Any] = ..., nodes: Optional[Any] = ...): ... -def degree_pearson_correlation_coefficient(G, x: str = ..., y: str = ..., weight: Optional[Any] = ..., nodes: Optional[Any] = ...): ... +def degree_assortativity_coefficient( + G, + x: str = ..., + y: str = ..., + weight: Optional[Any] = ..., + nodes: Optional[Any] = ..., +): ... +def degree_pearson_correlation_coefficient( + G, + x: str = ..., + y: str = ..., + weight: Optional[Any] = ..., + nodes: Optional[Any] = ..., +): ... def attribute_assortativity_coefficient(G, attribute, nodes: Optional[Any] = ...): ... def numeric_assortativity_coefficient(G, attribute, nodes: Optional[Any] = ...): ... diff --git a/mypy-stubs/networkx/algorithms/assortativity/mixing.pyi b/mypy-stubs/networkx/algorithms/assortativity/mixing.pyi new file mode 100644 index 000000000..2b938b7ba --- /dev/null +++ b/mypy-stubs/networkx/algorithms/assortativity/mixing.pyi @@ -0,0 +1,36 @@ +# Stubs for networkx.algorithms.assortativity.mixing (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def attribute_mixing_dict( + G, attribute, nodes: Optional[Any] = ..., normalized: bool = ... +): ... +def attribute_mixing_matrix( + G, + attribute, + nodes: Optional[Any] = ..., + mapping: Optional[Any] = ..., + normalized: bool = ..., +): ... +def degree_mixing_dict( + G, + x: str = ..., + y: str = ..., + weight: Optional[Any] = ..., + nodes: Optional[Any] = ..., + normalized: bool = ..., +): ... +def degree_mixing_matrix( + G, + x: str = ..., + y: str = ..., + weight: Optional[Any] = ..., + nodes: Optional[Any] = ..., + normalized: bool = ..., +): ... +def numeric_mixing_matrix( + G, attribute, nodes: Optional[Any] = ..., normalized: bool = ... +): ... +def mixing_dict(xy, normalized: bool = ...): ... diff --git a/typeshed/networkx/algorithms/assortativity/neighbor_degree.pyi b/mypy-stubs/networkx/algorithms/assortativity/neighbor_degree.pyi similarity index 54% rename from typeshed/networkx/algorithms/assortativity/neighbor_degree.pyi rename to mypy-stubs/networkx/algorithms/assortativity/neighbor_degree.pyi index 21ddd0b30..212c18e66 100644 --- a/typeshed/networkx/algorithms/assortativity/neighbor_degree.pyi +++ b/mypy-stubs/networkx/algorithms/assortativity/neighbor_degree.pyi @@ -4,4 +4,10 @@ from typing import Any, Optional -def average_neighbor_degree(G, source: str = ..., target: str = ..., nodes: Optional[Any] = ..., weight: Optional[Any] = ...): ... +def average_neighbor_degree( + G, + source: str = ..., + target: str = ..., + nodes: Optional[Any] = ..., + weight: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/algorithms/assortativity/pairs.pyi b/mypy-stubs/networkx/algorithms/assortativity/pairs.pyi similarity index 64% rename from typeshed/networkx/algorithms/assortativity/pairs.pyi rename to mypy-stubs/networkx/algorithms/assortativity/pairs.pyi index 701f6d989..d5c9cd8d7 100644 --- a/typeshed/networkx/algorithms/assortativity/pairs.pyi +++ b/mypy-stubs/networkx/algorithms/assortativity/pairs.pyi @@ -5,4 +5,10 @@ from typing import Any, Optional def node_attribute_xy(G, attribute, nodes: Optional[Any] = ...): ... -def node_degree_xy(G, x: str = ..., y: str = ..., weight: Optional[Any] = ..., nodes: Optional[Any] = ...): ... +def node_degree_xy( + G, + x: str = ..., + y: str = ..., + weight: Optional[Any] = ..., + nodes: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/algorithms/bipartite/__init__.pyi b/mypy-stubs/networkx/algorithms/bipartite/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/bipartite/__init__.pyi rename to mypy-stubs/networkx/algorithms/bipartite/__init__.pyi index 7dfa994f4..34c5b33f9 100644 --- a/typeshed/networkx/algorithms/bipartite/__init__.pyi +++ b/mypy-stubs/networkx/algorithms/bipartite/__init__.pyi @@ -7,9 +7,9 @@ from networkx.algorithms.bipartite.centrality import * from networkx.algorithms.bipartite.cluster import * from networkx.algorithms.bipartite.covering import * from networkx.algorithms.bipartite.edgelist import * +from networkx.algorithms.bipartite.generators import * from networkx.algorithms.bipartite.matching import * from networkx.algorithms.bipartite.matrix import * from networkx.algorithms.bipartite.projection import * from networkx.algorithms.bipartite.redundancy import * from networkx.algorithms.bipartite.spectral import * -from networkx.algorithms.bipartite.generators import * diff --git a/typeshed/networkx/algorithms/bipartite/basic.pyi b/mypy-stubs/networkx/algorithms/bipartite/basic.pyi similarity index 100% rename from typeshed/networkx/algorithms/bipartite/basic.pyi rename to mypy-stubs/networkx/algorithms/bipartite/basic.pyi diff --git a/typeshed/networkx/algorithms/bipartite/centrality.pyi b/mypy-stubs/networkx/algorithms/bipartite/centrality.pyi similarity index 100% rename from typeshed/networkx/algorithms/bipartite/centrality.pyi rename to mypy-stubs/networkx/algorithms/bipartite/centrality.pyi diff --git a/typeshed/networkx/algorithms/bipartite/cluster.pyi b/mypy-stubs/networkx/algorithms/bipartite/cluster.pyi similarity index 99% rename from typeshed/networkx/algorithms/bipartite/cluster.pyi rename to mypy-stubs/networkx/algorithms/bipartite/cluster.pyi index c420e043b..ec4796faf 100644 --- a/typeshed/networkx/algorithms/bipartite/cluster.pyi +++ b/mypy-stubs/networkx/algorithms/bipartite/cluster.pyi @@ -5,6 +5,7 @@ from typing import Any, Optional def latapy_clustering(G, nodes: Optional[Any] = ..., mode: str = ...): ... + clustering = latapy_clustering def average_clustering(G, nodes: Optional[Any] = ..., mode: str = ...): ... diff --git a/typeshed/networkx/algorithms/bipartite/covering.pyi b/mypy-stubs/networkx/algorithms/bipartite/covering.pyi similarity index 100% rename from typeshed/networkx/algorithms/bipartite/covering.pyi rename to mypy-stubs/networkx/algorithms/bipartite/covering.pyi diff --git a/mypy-stubs/networkx/algorithms/bipartite/edgelist.pyi b/mypy-stubs/networkx/algorithms/bipartite/edgelist.pyi new file mode 100644 index 000000000..c3ee3d82d --- /dev/null +++ b/mypy-stubs/networkx/algorithms/bipartite/edgelist.pyi @@ -0,0 +1,33 @@ +# Stubs for networkx.algorithms.bipartite.edgelist (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def write_edgelist( + G, + path, + comments: str = ..., + delimiter: str = ..., + data: bool = ..., + encoding: str = ..., +): ... +def generate_edgelist(G, delimiter: str = ..., data: bool = ...): ... +def parse_edgelist( + lines, + comments: str = ..., + delimiter: Optional[Any] = ..., + create_using: Optional[Any] = ..., + nodetype: Optional[Any] = ..., + data: bool = ..., +): ... +def read_edgelist( + path, + comments: str = ..., + delimiter: Optional[Any] = ..., + create_using: Optional[Any] = ..., + nodetype: Optional[Any] = ..., + data: bool = ..., + edgetype: Optional[Any] = ..., + encoding: str = ..., +): ... diff --git a/typeshed/networkx/algorithms/bipartite/generators.pyi b/mypy-stubs/networkx/algorithms/bipartite/generators.pyi similarity index 74% rename from typeshed/networkx/algorithms/bipartite/generators.pyi rename to mypy-stubs/networkx/algorithms/bipartite/generators.pyi index f8dd9ba2f..e1a85a260 100644 --- a/typeshed/networkx/algorithms/bipartite/generators.pyi +++ b/mypy-stubs/networkx/algorithms/bipartite/generators.pyi @@ -5,10 +5,14 @@ from typing import Any, Optional def complete_bipartite_graph(n1, n2, create_using: Optional[Any] = ...): ... -def configuration_model(aseq, bseq, create_using: Optional[Any] = ..., seed: Optional[Any] = ...): ... +def configuration_model( + aseq, bseq, create_using: Optional[Any] = ..., seed: Optional[Any] = ... +): ... def havel_hakimi_graph(aseq, bseq, create_using: Optional[Any] = ...): ... def reverse_havel_hakimi_graph(aseq, bseq, create_using: Optional[Any] = ...): ... def alternating_havel_hakimi_graph(aseq, bseq, create_using: Optional[Any] = ...): ... -def preferential_attachment_graph(aseq, p, create_using: Optional[Any] = ..., seed: Optional[Any] = ...): ... +def preferential_attachment_graph( + aseq, p, create_using: Optional[Any] = ..., seed: Optional[Any] = ... +): ... def random_graph(n, m, p, seed: Optional[Any] = ..., directed: bool = ...): ... def gnmk_random_graph(n, m, k, seed: Optional[Any] = ..., directed: bool = ...): ... diff --git a/typeshed/networkx/algorithms/bipartite/matching.pyi b/mypy-stubs/networkx/algorithms/bipartite/matching.pyi similarity index 99% rename from typeshed/networkx/algorithms/bipartite/matching.pyi rename to mypy-stubs/networkx/algorithms/bipartite/matching.pyi index dd6a81b68..8652e20e6 100644 --- a/typeshed/networkx/algorithms/bipartite/matching.pyi +++ b/mypy-stubs/networkx/algorithms/bipartite/matching.pyi @@ -7,4 +7,5 @@ from typing import Any, Optional def hopcroft_karp_matching(G, top_nodes: Optional[Any] = ...): ... def eppstein_matching(G, top_nodes: Optional[Any] = ...): ... def to_vertex_cover(G, matching, top_nodes: Optional[Any] = ...): ... + maximum_matching = hopcroft_karp_matching diff --git a/mypy-stubs/networkx/algorithms/bipartite/matrix.pyi b/mypy-stubs/networkx/algorithms/bipartite/matrix.pyi new file mode 100644 index 000000000..56588c7b1 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/bipartite/matrix.pyi @@ -0,0 +1,17 @@ +# Stubs for networkx.algorithms.bipartite.matrix (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def biadjacency_matrix( + G, + row_order, + column_order: Optional[Any] = ..., + dtype: Optional[Any] = ..., + weight: str = ..., + format: str = ..., +): ... +def from_biadjacency_matrix( + A, create_using: Optional[Any] = ..., edge_attribute: str = ... +): ... diff --git a/typeshed/networkx/algorithms/bipartite/projection.pyi b/mypy-stubs/networkx/algorithms/bipartite/projection.pyi similarity index 83% rename from typeshed/networkx/algorithms/bipartite/projection.pyi rename to mypy-stubs/networkx/algorithms/bipartite/projection.pyi index f5b72a9f0..9f7825752 100644 --- a/typeshed/networkx/algorithms/bipartite/projection.pyi +++ b/mypy-stubs/networkx/algorithms/bipartite/projection.pyi @@ -8,5 +8,7 @@ def projected_graph(B, nodes, multigraph: bool = ...): ... def weighted_projected_graph(B, nodes, ratio: bool = ...): ... def collaboration_weighted_projected_graph(B, nodes): ... def overlap_weighted_projected_graph(B, nodes, jaccard: bool = ...): ... -def generic_weighted_projected_graph(B, nodes, weight_function: Optional[Any] = ...): ... +def generic_weighted_projected_graph( + B, nodes, weight_function: Optional[Any] = ... +): ... def project(B, nodes, create_using: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/bipartite/redundancy.pyi b/mypy-stubs/networkx/algorithms/bipartite/redundancy.pyi similarity index 100% rename from typeshed/networkx/algorithms/bipartite/redundancy.pyi rename to mypy-stubs/networkx/algorithms/bipartite/redundancy.pyi diff --git a/typeshed/networkx/algorithms/bipartite/spectral.pyi b/mypy-stubs/networkx/algorithms/bipartite/spectral.pyi similarity index 100% rename from typeshed/networkx/algorithms/bipartite/spectral.pyi rename to mypy-stubs/networkx/algorithms/bipartite/spectral.pyi diff --git a/typeshed/networkx/algorithms/boundary.pyi b/mypy-stubs/networkx/algorithms/boundary.pyi similarity index 59% rename from typeshed/networkx/algorithms/boundary.pyi rename to mypy-stubs/networkx/algorithms/boundary.pyi index 679e9977a..44991875c 100644 --- a/typeshed/networkx/algorithms/boundary.pyi +++ b/mypy-stubs/networkx/algorithms/boundary.pyi @@ -4,5 +4,12 @@ from typing import Any, Optional -def edge_boundary(G, nbunch1, nbunch2: Optional[Any] = ..., data: bool = ..., keys: bool = ..., default: Optional[Any] = ...): ... +def edge_boundary( + G, + nbunch1, + nbunch2: Optional[Any] = ..., + data: bool = ..., + keys: bool = ..., + default: Optional[Any] = ..., +): ... def node_boundary(G, nbunch1, nbunch2: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/bridges.pyi b/mypy-stubs/networkx/algorithms/bridges.pyi similarity index 100% rename from typeshed/networkx/algorithms/bridges.pyi rename to mypy-stubs/networkx/algorithms/bridges.pyi diff --git a/mypy-stubs/networkx/algorithms/centrality/betweenness.pyi b/mypy-stubs/networkx/algorithms/centrality/betweenness.pyi new file mode 100644 index 000000000..5a4be1a4a --- /dev/null +++ b/mypy-stubs/networkx/algorithms/centrality/betweenness.pyi @@ -0,0 +1,28 @@ +# Stubs for networkx.algorithms.centrality.betweenness (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def betweenness_centrality( + G, + k: Optional[Any] = ..., + normalized: bool = ..., + weight: Optional[Any] = ..., + endpoints: bool = ..., + seed: Optional[Any] = ..., +): ... +def edge_betweenness_centrality( + G, + k: Optional[Any] = ..., + normalized: bool = ..., + weight: Optional[Any] = ..., + seed: Optional[Any] = ..., +): ... +def edge_betweenness( + G, + k: Optional[Any] = ..., + normalized: bool = ..., + weight: Optional[Any] = ..., + seed: Optional[Any] = ..., +): ... diff --git a/mypy-stubs/networkx/algorithms/centrality/betweenness_subset.pyi b/mypy-stubs/networkx/algorithms/centrality/betweenness_subset.pyi new file mode 100644 index 000000000..fa6316801 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/centrality/betweenness_subset.pyi @@ -0,0 +1,15 @@ +# Stubs for networkx.algorithms.centrality.betweenness_subset (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def betweenness_centrality_subset( + G, sources, targets, normalized: bool = ..., weight: Optional[Any] = ... +): ... +def edge_betweenness_centrality_subset( + G, sources, targets, normalized: bool = ..., weight: Optional[Any] = ... +): ... +def betweenness_centrality_source( + G, normalized: bool = ..., weight: Optional[Any] = ..., sources: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/algorithms/centrality/closeness.pyi b/mypy-stubs/networkx/algorithms/centrality/closeness.pyi similarity index 53% rename from typeshed/networkx/algorithms/centrality/closeness.pyi rename to mypy-stubs/networkx/algorithms/centrality/closeness.pyi index fbbe89e9d..e1abeecfc 100644 --- a/typeshed/networkx/algorithms/centrality/closeness.pyi +++ b/mypy-stubs/networkx/algorithms/centrality/closeness.pyi @@ -4,4 +4,10 @@ from typing import Any, Optional -def closeness_centrality(G, u: Optional[Any] = ..., distance: Optional[Any] = ..., wf_improved: bool = ..., reverse: bool = ...): ... +def closeness_centrality( + G, + u: Optional[Any] = ..., + distance: Optional[Any] = ..., + wf_improved: bool = ..., + reverse: bool = ..., +): ... diff --git a/mypy-stubs/networkx/algorithms/centrality/current_flow_betweenness.pyi b/mypy-stubs/networkx/algorithms/centrality/current_flow_betweenness.pyi new file mode 100644 index 000000000..4e01428dd --- /dev/null +++ b/mypy-stubs/networkx/algorithms/centrality/current_flow_betweenness.pyi @@ -0,0 +1,31 @@ +# Stubs for networkx.algorithms.centrality.current_flow_betweenness (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +from networkx.algorithms.centrality.flow_matrix import * + +def approximate_current_flow_betweenness_centrality( + G, + normalized: bool = ..., + weight: Optional[Any] = ..., + dtype: Any = ..., + solver: str = ..., + epsilon: float = ..., + kmax: int = ..., +): ... +def current_flow_betweenness_centrality( + G, + normalized: bool = ..., + weight: Optional[Any] = ..., + dtype: Any = ..., + solver: str = ..., +): ... +def edge_current_flow_betweenness_centrality( + G, + normalized: bool = ..., + weight: Optional[Any] = ..., + dtype: Any = ..., + solver: str = ..., +): ... diff --git a/mypy-stubs/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi b/mypy-stubs/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi new file mode 100644 index 000000000..7b9c3eaec --- /dev/null +++ b/mypy-stubs/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi @@ -0,0 +1,26 @@ +# Stubs for networkx.algorithms.centrality.current_flow_betweenness_subset (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +from networkx.algorithms.centrality.flow_matrix import * + +def current_flow_betweenness_centrality_subset( + G, + sources, + targets, + normalized: bool = ..., + weight: Optional[Any] = ..., + dtype: Any = ..., + solver: str = ..., +): ... +def edge_current_flow_betweenness_centrality_subset( + G, + sources, + targets, + normalized: bool = ..., + weight: Optional[Any] = ..., + dtype: Any = ..., + solver: str = ..., +): ... diff --git a/typeshed/networkx/algorithms/centrality/current_flow_closeness.pyi b/mypy-stubs/networkx/algorithms/centrality/current_flow_closeness.pyi similarity index 71% rename from typeshed/networkx/algorithms/centrality/current_flow_closeness.pyi rename to mypy-stubs/networkx/algorithms/centrality/current_flow_closeness.pyi index eddf4d444..1555cf8f4 100644 --- a/typeshed/networkx/algorithms/centrality/current_flow_closeness.pyi +++ b/mypy-stubs/networkx/algorithms/centrality/current_flow_closeness.pyi @@ -2,8 +2,12 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from networkx.algorithms.centrality.flow_matrix import * from typing import Any, Optional -def current_flow_closeness_centrality(G, weight: Optional[Any] = ..., dtype: Any = ..., solver: str = ...): ... +from networkx.algorithms.centrality.flow_matrix import * + +def current_flow_closeness_centrality( + G, weight: Optional[Any] = ..., dtype: Any = ..., solver: str = ... +): ... + information_centrality = current_flow_closeness_centrality diff --git a/typeshed/networkx/algorithms/centrality/degree_alg.pyi b/mypy-stubs/networkx/algorithms/centrality/degree_alg.pyi similarity index 100% rename from typeshed/networkx/algorithms/centrality/degree_alg.pyi rename to mypy-stubs/networkx/algorithms/centrality/degree_alg.pyi diff --git a/typeshed/networkx/algorithms/centrality/dispersion.pyi b/mypy-stubs/networkx/algorithms/centrality/dispersion.pyi similarity index 50% rename from typeshed/networkx/algorithms/centrality/dispersion.pyi rename to mypy-stubs/networkx/algorithms/centrality/dispersion.pyi index 79657bcd7..032d455de 100644 --- a/typeshed/networkx/algorithms/centrality/dispersion.pyi +++ b/mypy-stubs/networkx/algorithms/centrality/dispersion.pyi @@ -4,4 +4,12 @@ from typing import Any, Optional -def dispersion(G, u: Optional[Any] = ..., v: Optional[Any] = ..., normalized: bool = ..., alpha: float = ..., b: float = ..., c: float = ...): ... +def dispersion( + G, + u: Optional[Any] = ..., + v: Optional[Any] = ..., + normalized: bool = ..., + alpha: float = ..., + b: float = ..., + c: float = ..., +): ... diff --git a/mypy-stubs/networkx/algorithms/centrality/eigenvector.pyi b/mypy-stubs/networkx/algorithms/centrality/eigenvector.pyi new file mode 100644 index 000000000..df5313cd8 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/centrality/eigenvector.pyi @@ -0,0 +1,16 @@ +# Stubs for networkx.algorithms.centrality.eigenvector (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def eigenvector_centrality( + G, + max_iter: int = ..., + tol: float = ..., + nstart: Optional[Any] = ..., + weight: Optional[Any] = ..., +): ... +def eigenvector_centrality_numpy( + G, weight: Optional[Any] = ..., max_iter: int = ..., tol: int = ... +): ... diff --git a/typeshed/networkx/algorithms/centrality/flow_matrix.pyi b/mypy-stubs/networkx/algorithms/centrality/flow_matrix.pyi similarity index 72% rename from typeshed/networkx/algorithms/centrality/flow_matrix.pyi rename to mypy-stubs/networkx/algorithms/centrality/flow_matrix.pyi index 3aaa39261..1a6009919 100644 --- a/typeshed/networkx/algorithms/centrality/flow_matrix.pyi +++ b/mypy-stubs/networkx/algorithms/centrality/flow_matrix.pyi @@ -4,7 +4,9 @@ from typing import Any, Optional -def flow_matrix_row(G, weight: Optional[Any] = ..., dtype: Any = ..., solver: str = ...): ... +def flow_matrix_row( + G, weight: Optional[Any] = ..., dtype: Any = ..., solver: str = ... +): ... class InverseLaplacian: dtype: Any = ... @@ -12,7 +14,9 @@ class InverseLaplacian: w: Any = ... C: Any = ... L1: Any = ... - def __init__(self, L, width: Optional[Any] = ..., dtype: Optional[Any] = ...) -> None: ... + def __init__( + self, L, width: Optional[Any] = ..., dtype: Optional[Any] = ... + ) -> None: ... def init_solver(self, L): ... def solve(self, r): ... def solve_inverse(self, r): ... @@ -38,4 +42,10 @@ class CGInverseLaplacian(InverseLaplacian): def solve(self, rhs): ... def solve_inverse(self, r): ... -def laplacian_sparse_matrix(G, nodelist: Optional[Any] = ..., weight: Optional[Any] = ..., dtype: Optional[Any] = ..., format: str = ...): ... +def laplacian_sparse_matrix( + G, + nodelist: Optional[Any] = ..., + weight: Optional[Any] = ..., + dtype: Optional[Any] = ..., + format: str = ..., +): ... diff --git a/typeshed/networkx/algorithms/centrality/harmonic.pyi b/mypy-stubs/networkx/algorithms/centrality/harmonic.pyi similarity index 64% rename from typeshed/networkx/algorithms/centrality/harmonic.pyi rename to mypy-stubs/networkx/algorithms/centrality/harmonic.pyi index 723e2c919..521de798a 100644 --- a/typeshed/networkx/algorithms/centrality/harmonic.pyi +++ b/mypy-stubs/networkx/algorithms/centrality/harmonic.pyi @@ -4,4 +4,6 @@ from typing import Any, Optional -def harmonic_centrality(G, nbunch: Optional[Any] = ..., distance: Optional[Any] = ...): ... +def harmonic_centrality( + G, nbunch: Optional[Any] = ..., distance: Optional[Any] = ... +): ... diff --git a/mypy-stubs/networkx/algorithms/centrality/katz.pyi b/mypy-stubs/networkx/algorithms/centrality/katz.pyi new file mode 100644 index 000000000..b576d4295 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/centrality/katz.pyi @@ -0,0 +1,23 @@ +# Stubs for networkx.algorithms.centrality.katz (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def katz_centrality( + G, + alpha: float = ..., + beta: float = ..., + max_iter: int = ..., + tol: float = ..., + nstart: Optional[Any] = ..., + normalized: bool = ..., + weight: Optional[Any] = ..., +): ... +def katz_centrality_numpy( + G, + alpha: float = ..., + beta: float = ..., + normalized: bool = ..., + weight: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/algorithms/centrality/load.pyi b/mypy-stubs/networkx/algorithms/centrality/load.pyi similarity index 100% rename from typeshed/networkx/algorithms/centrality/load.pyi rename to mypy-stubs/networkx/algorithms/centrality/load.pyi diff --git a/mypy-stubs/networkx/algorithms/centrality/reaching.pyi b/mypy-stubs/networkx/algorithms/centrality/reaching.pyi new file mode 100644 index 000000000..c6f4cd02f --- /dev/null +++ b/mypy-stubs/networkx/algorithms/centrality/reaching.pyi @@ -0,0 +1,16 @@ +# Stubs for networkx.algorithms.centrality.reaching (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def global_reaching_centrality( + G, weight: Optional[Any] = ..., normalized: bool = ... +): ... +def local_reaching_centrality( + G, + v, + paths: Optional[Any] = ..., + weight: Optional[Any] = ..., + normalized: bool = ..., +): ... diff --git a/typeshed/networkx/algorithms/centrality/subgraph_alg.pyi b/mypy-stubs/networkx/algorithms/centrality/subgraph_alg.pyi similarity index 100% rename from typeshed/networkx/algorithms/centrality/subgraph_alg.pyi rename to mypy-stubs/networkx/algorithms/centrality/subgraph_alg.pyi diff --git a/typeshed/networkx/algorithms/chains.pyi b/mypy-stubs/networkx/algorithms/chains.pyi similarity index 100% rename from typeshed/networkx/algorithms/chains.pyi rename to mypy-stubs/networkx/algorithms/chains.pyi diff --git a/typeshed/networkx/algorithms/chordal.pyi b/mypy-stubs/networkx/algorithms/chordal.pyi similarity index 99% rename from typeshed/networkx/algorithms/chordal.pyi rename to mypy-stubs/networkx/algorithms/chordal.pyi index 5bc34ff02..4c6042db7 100644 --- a/typeshed/networkx/algorithms/chordal.pyi +++ b/mypy-stubs/networkx/algorithms/chordal.pyi @@ -2,9 +2,10 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -import networkx as nx from typing import Any +import networkx as nx + class NetworkXTreewidthBoundExceeded(nx.NetworkXException): ... def is_chordal(G): ... diff --git a/typeshed/networkx/algorithms/clique.pyi b/mypy-stubs/networkx/algorithms/clique.pyi similarity index 72% rename from typeshed/networkx/algorithms/clique.pyi rename to mypy-stubs/networkx/algorithms/clique.pyi index df7cda816..ef1a7faa6 100644 --- a/typeshed/networkx/algorithms/clique.pyi +++ b/mypy-stubs/networkx/algorithms/clique.pyi @@ -8,9 +8,16 @@ def enumerate_all_cliques(G): ... def find_cliques(G): ... def find_cliques_recursive(G): ... def make_max_clique_graph(G, create_using: Optional[Any] = ...): ... -def make_clique_bipartite(G, fpos: Optional[Any] = ..., create_using: Optional[Any] = ..., name: Optional[Any] = ...): ... +def make_clique_bipartite( + G, + fpos: Optional[Any] = ..., + create_using: Optional[Any] = ..., + name: Optional[Any] = ..., +): ... def graph_clique_number(G, cliques: Optional[Any] = ...): ... def graph_number_of_cliques(G, cliques: Optional[Any] = ...): ... def node_clique_number(G, nodes: Optional[Any] = ..., cliques: Optional[Any] = ...): ... def number_of_cliques(G, nodes: Optional[Any] = ..., cliques: Optional[Any] = ...): ... -def cliques_containing_node(G, nodes: Optional[Any] = ..., cliques: Optional[Any] = ...): ... +def cliques_containing_node( + G, nodes: Optional[Any] = ..., cliques: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/algorithms/cluster.pyi b/mypy-stubs/networkx/algorithms/cluster.pyi similarity index 78% rename from typeshed/networkx/algorithms/cluster.pyi rename to mypy-stubs/networkx/algorithms/cluster.pyi index f9eb6b227..3e87622eb 100644 --- a/typeshed/networkx/algorithms/cluster.pyi +++ b/mypy-stubs/networkx/algorithms/cluster.pyi @@ -5,7 +5,9 @@ from typing import Any, Optional def triangles(G, nodes: Optional[Any] = ...): ... -def average_clustering(G, nodes: Optional[Any] = ..., weight: Optional[Any] = ..., count_zeros: bool = ...): ... +def average_clustering( + G, nodes: Optional[Any] = ..., weight: Optional[Any] = ..., count_zeros: bool = ... +): ... def clustering(G, nodes: Optional[Any] = ..., weight: Optional[Any] = ...): ... def transitivity(G): ... def square_clustering(G, nodes: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/coloring/__init__.pyi b/mypy-stubs/networkx/algorithms/coloring/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/coloring/__init__.pyi rename to mypy-stubs/networkx/algorithms/coloring/__init__.pyi diff --git a/typeshed/networkx/algorithms/coloring/greedy_coloring.pyi b/mypy-stubs/networkx/algorithms/coloring/greedy_coloring.pyi similarity index 100% rename from typeshed/networkx/algorithms/coloring/greedy_coloring.pyi rename to mypy-stubs/networkx/algorithms/coloring/greedy_coloring.pyi diff --git a/typeshed/networkx/algorithms/coloring/greedy_coloring_with_interchange.pyi b/mypy-stubs/networkx/algorithms/coloring/greedy_coloring_with_interchange.pyi similarity index 100% rename from typeshed/networkx/algorithms/coloring/greedy_coloring_with_interchange.pyi rename to mypy-stubs/networkx/algorithms/coloring/greedy_coloring_with_interchange.pyi diff --git a/typeshed/networkx/algorithms/communicability_alg.pyi b/mypy-stubs/networkx/algorithms/communicability_alg.pyi similarity index 100% rename from typeshed/networkx/algorithms/communicability_alg.pyi rename to mypy-stubs/networkx/algorithms/communicability_alg.pyi diff --git a/typeshed/networkx/algorithms/community/__init__.pyi b/mypy-stubs/networkx/algorithms/community/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/community/__init__.pyi rename to mypy-stubs/networkx/algorithms/community/__init__.pyi index 66a855768..5b7c52e00 100644 --- a/typeshed/networkx/algorithms/community/__init__.pyi +++ b/mypy-stubs/networkx/algorithms/community/__init__.pyi @@ -5,8 +5,8 @@ from networkx.algorithms.community.asyn_fluidc import * from networkx.algorithms.community.centrality import * from networkx.algorithms.community.community_generators import * +from networkx.algorithms.community.community_utils import * from networkx.algorithms.community.kclique import * from networkx.algorithms.community.kernighan_lin import * from networkx.algorithms.community.label_propagation import * from networkx.algorithms.community.quality import * -from networkx.algorithms.community.community_utils import * diff --git a/typeshed/networkx/algorithms/community/asyn_fluidc.pyi b/mypy-stubs/networkx/algorithms/community/asyn_fluidc.pyi similarity index 100% rename from typeshed/networkx/algorithms/community/asyn_fluidc.pyi rename to mypy-stubs/networkx/algorithms/community/asyn_fluidc.pyi diff --git a/typeshed/networkx/algorithms/community/centrality.pyi b/mypy-stubs/networkx/algorithms/community/centrality.pyi similarity index 100% rename from typeshed/networkx/algorithms/community/centrality.pyi rename to mypy-stubs/networkx/algorithms/community/centrality.pyi diff --git a/mypy-stubs/networkx/algorithms/community/community_generators.pyi b/mypy-stubs/networkx/algorithms/community/community_generators.pyi new file mode 100644 index 000000000..37248edb1 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/community/community_generators.pyi @@ -0,0 +1,20 @@ +# Stubs for networkx.algorithms.community.community_generators (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def LFR_benchmark_graph( + n, + tau1, + tau2, + mu, + average_degree: Optional[Any] = ..., + min_degree: Optional[Any] = ..., + max_degree: Optional[Any] = ..., + min_community: Optional[Any] = ..., + max_community: Optional[Any] = ..., + tol: float = ..., + max_iters: int = ..., + seed: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/algorithms/community/community_utils.pyi b/mypy-stubs/networkx/algorithms/community/community_utils.pyi similarity index 100% rename from typeshed/networkx/algorithms/community/community_utils.pyi rename to mypy-stubs/networkx/algorithms/community/community_utils.pyi diff --git a/typeshed/networkx/algorithms/community/kclique.pyi b/mypy-stubs/networkx/algorithms/community/kclique.pyi similarity index 100% rename from typeshed/networkx/algorithms/community/kclique.pyi rename to mypy-stubs/networkx/algorithms/community/kclique.pyi diff --git a/typeshed/networkx/algorithms/community/kernighan_lin.pyi b/mypy-stubs/networkx/algorithms/community/kernighan_lin.pyi similarity index 61% rename from typeshed/networkx/algorithms/community/kernighan_lin.pyi rename to mypy-stubs/networkx/algorithms/community/kernighan_lin.pyi index 167b4cded..a68349552 100644 --- a/typeshed/networkx/algorithms/community/kernighan_lin.pyi +++ b/mypy-stubs/networkx/algorithms/community/kernighan_lin.pyi @@ -4,4 +4,6 @@ from typing import Any, Optional -def kernighan_lin_bisection(G, partition: Optional[Any] = ..., max_iter: int = ..., weight: str = ...): ... +def kernighan_lin_bisection( + G, partition: Optional[Any] = ..., max_iter: int = ..., weight: str = ... +): ... diff --git a/typeshed/networkx/algorithms/community/label_propagation.pyi b/mypy-stubs/networkx/algorithms/community/label_propagation.pyi similarity index 100% rename from typeshed/networkx/algorithms/community/label_propagation.pyi rename to mypy-stubs/networkx/algorithms/community/label_propagation.pyi diff --git a/typeshed/networkx/algorithms/community/quality.pyi b/mypy-stubs/networkx/algorithms/community/quality.pyi similarity index 100% rename from typeshed/networkx/algorithms/community/quality.pyi rename to mypy-stubs/networkx/algorithms/community/quality.pyi diff --git a/typeshed/networkx/algorithms/components/__init__.pyi b/mypy-stubs/networkx/algorithms/components/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/components/__init__.pyi rename to mypy-stubs/networkx/algorithms/components/__init__.pyi index 9f197dbe9..8894f98d2 100644 --- a/typeshed/networkx/algorithms/components/__init__.pyi +++ b/mypy-stubs/networkx/algorithms/components/__init__.pyi @@ -2,9 +2,9 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from .connected import * -from .strongly_connected import * -from .weakly_connected import * from .attracting import * from .biconnected import * +from .connected import * from .semiconnected import * +from .strongly_connected import * +from .weakly_connected import * diff --git a/typeshed/networkx/algorithms/components/attracting.pyi b/mypy-stubs/networkx/algorithms/components/attracting.pyi similarity index 100% rename from typeshed/networkx/algorithms/components/attracting.pyi rename to mypy-stubs/networkx/algorithms/components/attracting.pyi diff --git a/typeshed/networkx/algorithms/components/biconnected.pyi b/mypy-stubs/networkx/algorithms/components/biconnected.pyi similarity index 100% rename from typeshed/networkx/algorithms/components/biconnected.pyi rename to mypy-stubs/networkx/algorithms/components/biconnected.pyi diff --git a/typeshed/networkx/algorithms/components/connected.pyi b/mypy-stubs/networkx/algorithms/components/connected.pyi similarity index 100% rename from typeshed/networkx/algorithms/components/connected.pyi rename to mypy-stubs/networkx/algorithms/components/connected.pyi diff --git a/typeshed/networkx/algorithms/components/semiconnected.pyi b/mypy-stubs/networkx/algorithms/components/semiconnected.pyi similarity index 100% rename from typeshed/networkx/algorithms/components/semiconnected.pyi rename to mypy-stubs/networkx/algorithms/components/semiconnected.pyi diff --git a/typeshed/networkx/algorithms/components/strongly_connected.pyi b/mypy-stubs/networkx/algorithms/components/strongly_connected.pyi similarity index 100% rename from typeshed/networkx/algorithms/components/strongly_connected.pyi rename to mypy-stubs/networkx/algorithms/components/strongly_connected.pyi diff --git a/typeshed/networkx/algorithms/components/weakly_connected.pyi b/mypy-stubs/networkx/algorithms/components/weakly_connected.pyi similarity index 100% rename from typeshed/networkx/algorithms/components/weakly_connected.pyi rename to mypy-stubs/networkx/algorithms/components/weakly_connected.pyi diff --git a/typeshed/networkx/algorithms/connectivity/__init__.pyi b/mypy-stubs/networkx/algorithms/connectivity/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/connectivity/__init__.pyi rename to mypy-stubs/networkx/algorithms/connectivity/__init__.pyi index d77737ef1..3ca76bd89 100644 --- a/typeshed/networkx/algorithms/connectivity/__init__.pyi +++ b/mypy-stubs/networkx/algorithms/connectivity/__init__.pyi @@ -4,9 +4,9 @@ from .connectivity import * from .cuts import * +from .disjoint_paths import * from .edge_augmentation import * from .edge_kcomponents import * -from .disjoint_paths import * from .kcomponents import * from .kcutsets import * from .stoerwagner import * diff --git a/mypy-stubs/networkx/algorithms/connectivity/connectivity.pyi b/mypy-stubs/networkx/algorithms/connectivity/connectivity.pyi new file mode 100644 index 000000000..9d8780294 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/connectivity/connectivity.pyi @@ -0,0 +1,42 @@ +# Stubs for networkx.algorithms.connectivity.connectivity (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +from networkx.algorithms.flow import edmonds_karp + +default_flow_func = edmonds_karp + +def local_node_connectivity( + G, + s, + t, + flow_func: Optional[Any] = ..., + auxiliary: Optional[Any] = ..., + residual: Optional[Any] = ..., + cutoff: Optional[Any] = ..., +): ... +def node_connectivity( + G, s: Optional[Any] = ..., t: Optional[Any] = ..., flow_func: Optional[Any] = ... +): ... +def average_node_connectivity(G, flow_func: Optional[Any] = ...): ... +def all_pairs_node_connectivity( + G, nbunch: Optional[Any] = ..., flow_func: Optional[Any] = ... +): ... +def local_edge_connectivity( + G, + s, + t, + flow_func: Optional[Any] = ..., + auxiliary: Optional[Any] = ..., + residual: Optional[Any] = ..., + cutoff: Optional[Any] = ..., +): ... +def edge_connectivity( + G, + s: Optional[Any] = ..., + t: Optional[Any] = ..., + flow_func: Optional[Any] = ..., + cutoff: Optional[Any] = ..., +): ... diff --git a/mypy-stubs/networkx/algorithms/connectivity/cuts.pyi b/mypy-stubs/networkx/algorithms/connectivity/cuts.pyi new file mode 100644 index 000000000..8e9f371c5 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/connectivity/cuts.pyi @@ -0,0 +1,32 @@ +# Stubs for networkx.algorithms.connectivity.cuts (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +from networkx.algorithms.flow import edmonds_karp + +default_flow_func = edmonds_karp + +def minimum_st_edge_cut( + G, + s, + t, + flow_func: Optional[Any] = ..., + auxiliary: Optional[Any] = ..., + residual: Optional[Any] = ..., +): ... +def minimum_st_node_cut( + G, + s, + t, + flow_func: Optional[Any] = ..., + auxiliary: Optional[Any] = ..., + residual: Optional[Any] = ..., +): ... +def minimum_node_cut( + G, s: Optional[Any] = ..., t: Optional[Any] = ..., flow_func: Optional[Any] = ... +): ... +def minimum_edge_cut( + G, s: Optional[Any] = ..., t: Optional[Any] = ..., flow_func: Optional[Any] = ... +): ... diff --git a/mypy-stubs/networkx/algorithms/connectivity/disjoint_paths.pyi b/mypy-stubs/networkx/algorithms/connectivity/disjoint_paths.pyi new file mode 100644 index 000000000..197aefd81 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/connectivity/disjoint_paths.pyi @@ -0,0 +1,28 @@ +# Stubs for networkx.algorithms.connectivity.disjoint_paths (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +from networkx.algorithms.flow import edmonds_karp + +default_flow_func = edmonds_karp + +def edge_disjoint_paths( + G, + s, + t, + flow_func: Optional[Any] = ..., + cutoff: Optional[Any] = ..., + auxiliary: Optional[Any] = ..., + residual: Optional[Any] = ..., +): ... +def node_disjoint_paths( + G, + s, + t, + flow_func: Optional[Any] = ..., + cutoff: Optional[Any] = ..., + auxiliary: Optional[Any] = ..., + residual: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/algorithms/connectivity/edge_augmentation.pyi b/mypy-stubs/networkx/algorithms/connectivity/edge_augmentation.pyi similarity index 65% rename from typeshed/networkx/algorithms/connectivity/edge_augmentation.pyi rename to mypy-stubs/networkx/algorithms/connectivity/edge_augmentation.pyi index 8688890f4..cb446bd5a 100644 --- a/typeshed/networkx/algorithms/connectivity/edge_augmentation.pyi +++ b/mypy-stubs/networkx/algorithms/connectivity/edge_augmentation.pyi @@ -7,6 +7,8 @@ from typing import Any, Optional def is_k_edge_connected(G, k): ... def is_locally_k_edge_connected(G, s, t, k): ... -def k_edge_augmentation(G, k, avail: Optional[Any] = ..., weight: Optional[Any] = ..., partial: bool = ...): ... +def k_edge_augmentation( + G, k, avail: Optional[Any] = ..., weight: Optional[Any] = ..., partial: bool = ... +): ... -MetaEdge = namedtuple('MetaEdge', ) +# MetaEdge = namedtuple('MetaEdge', ) diff --git a/typeshed/networkx/algorithms/connectivity/edge_kcomponents.pyi b/mypy-stubs/networkx/algorithms/connectivity/edge_kcomponents.pyi similarity index 89% rename from typeshed/networkx/algorithms/connectivity/edge_kcomponents.pyi rename to mypy-stubs/networkx/algorithms/connectivity/edge_kcomponents.pyi index bda3e5928..5aaa19809 100644 --- a/typeshed/networkx/algorithms/connectivity/edge_kcomponents.pyi +++ b/mypy-stubs/networkx/algorithms/connectivity/edge_kcomponents.pyi @@ -9,9 +9,6 @@ def k_edge_subgraphs(G, k): ... def bridge_components(G): ... class EdgeComponentAuxGraph: - @classmethod - A: Any = ... - H: Any = ... def construct(EdgeComponentAuxGraph, G): ... def k_edge_components(self, k): ... def k_edge_subgraphs(self, k): ... diff --git a/typeshed/networkx/algorithms/connectivity/kcomponents.pyi b/mypy-stubs/networkx/algorithms/connectivity/kcomponents.pyi similarity index 99% rename from typeshed/networkx/algorithms/connectivity/kcomponents.pyi rename to mypy-stubs/networkx/algorithms/connectivity/kcomponents.pyi index 951ecba38..ebf249683 100644 --- a/typeshed/networkx/algorithms/connectivity/kcomponents.pyi +++ b/mypy-stubs/networkx/algorithms/connectivity/kcomponents.pyi @@ -2,9 +2,10 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from networkx.algorithms.flow import edmonds_karp from typing import Any, Optional +from networkx.algorithms.flow import edmonds_karp + default_flow_func = edmonds_karp def k_components(G, flow_func: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/connectivity/kcutsets.pyi b/mypy-stubs/networkx/algorithms/connectivity/kcutsets.pyi similarity index 99% rename from typeshed/networkx/algorithms/connectivity/kcutsets.pyi rename to mypy-stubs/networkx/algorithms/connectivity/kcutsets.pyi index 7fc0d3bf0..0cba1963c 100644 --- a/typeshed/networkx/algorithms/connectivity/kcutsets.pyi +++ b/mypy-stubs/networkx/algorithms/connectivity/kcutsets.pyi @@ -2,9 +2,10 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from networkx.algorithms.flow import edmonds_karp from typing import Any, Optional +from networkx.algorithms.flow import edmonds_karp + default_flow_func = edmonds_karp def all_node_cuts(G, k: Optional[Any] = ..., flow_func: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/connectivity/stoerwagner.pyi b/mypy-stubs/networkx/algorithms/connectivity/stoerwagner.pyi similarity index 100% rename from typeshed/networkx/algorithms/connectivity/stoerwagner.pyi rename to mypy-stubs/networkx/algorithms/connectivity/stoerwagner.pyi diff --git a/typeshed/networkx/algorithms/connectivity/utils.pyi b/mypy-stubs/networkx/algorithms/connectivity/utils.pyi similarity index 100% rename from typeshed/networkx/algorithms/connectivity/utils.pyi rename to mypy-stubs/networkx/algorithms/connectivity/utils.pyi diff --git a/typeshed/networkx/algorithms/core.pyi b/mypy-stubs/networkx/algorithms/core.pyi similarity index 99% rename from typeshed/networkx/algorithms/core.pyi rename to mypy-stubs/networkx/algorithms/core.pyi index 9e133591a..3c01a6a7c 100644 --- a/typeshed/networkx/algorithms/core.pyi +++ b/mypy-stubs/networkx/algorithms/core.pyi @@ -5,6 +5,7 @@ from typing import Any, Optional def core_number(G): ... + find_cores = core_number def k_core(G, k: Optional[Any] = ..., core_number: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/covering.pyi b/mypy-stubs/networkx/algorithms/covering.pyi similarity index 100% rename from typeshed/networkx/algorithms/covering.pyi rename to mypy-stubs/networkx/algorithms/covering.pyi diff --git a/typeshed/networkx/algorithms/cuts.pyi b/mypy-stubs/networkx/algorithms/cuts.pyi similarity index 100% rename from typeshed/networkx/algorithms/cuts.pyi rename to mypy-stubs/networkx/algorithms/cuts.pyi diff --git a/typeshed/networkx/algorithms/cycles.pyi b/mypy-stubs/networkx/algorithms/cycles.pyi similarity index 100% rename from typeshed/networkx/algorithms/cycles.pyi rename to mypy-stubs/networkx/algorithms/cycles.pyi diff --git a/typeshed/networkx/algorithms/dag.pyi b/mypy-stubs/networkx/algorithms/dag.pyi similarity index 100% rename from typeshed/networkx/algorithms/dag.pyi rename to mypy-stubs/networkx/algorithms/dag.pyi diff --git a/typeshed/networkx/algorithms/distance_measures.pyi b/mypy-stubs/networkx/algorithms/distance_measures.pyi similarity index 100% rename from typeshed/networkx/algorithms/distance_measures.pyi rename to mypy-stubs/networkx/algorithms/distance_measures.pyi diff --git a/typeshed/networkx/algorithms/distance_regular.pyi b/mypy-stubs/networkx/algorithms/distance_regular.pyi similarity index 100% rename from typeshed/networkx/algorithms/distance_regular.pyi rename to mypy-stubs/networkx/algorithms/distance_regular.pyi diff --git a/typeshed/networkx/algorithms/dominance.pyi b/mypy-stubs/networkx/algorithms/dominance.pyi similarity index 100% rename from typeshed/networkx/algorithms/dominance.pyi rename to mypy-stubs/networkx/algorithms/dominance.pyi diff --git a/typeshed/networkx/algorithms/dominating.pyi b/mypy-stubs/networkx/algorithms/dominating.pyi similarity index 100% rename from typeshed/networkx/algorithms/dominating.pyi rename to mypy-stubs/networkx/algorithms/dominating.pyi diff --git a/typeshed/networkx/algorithms/efficiency.pyi b/mypy-stubs/networkx/algorithms/efficiency.pyi similarity index 100% rename from typeshed/networkx/algorithms/efficiency.pyi rename to mypy-stubs/networkx/algorithms/efficiency.pyi diff --git a/typeshed/networkx/algorithms/euler.pyi b/mypy-stubs/networkx/algorithms/euler.pyi similarity index 100% rename from typeshed/networkx/algorithms/euler.pyi rename to mypy-stubs/networkx/algorithms/euler.pyi diff --git a/typeshed/networkx/algorithms/flow/__init__.pyi b/mypy-stubs/networkx/algorithms/flow/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/flow/__init__.pyi rename to mypy-stubs/networkx/algorithms/flow/__init__.pyi index 5fd243bb6..c8b739a9c 100644 --- a/typeshed/networkx/algorithms/flow/__init__.pyi +++ b/mypy-stubs/networkx/algorithms/flow/__init__.pyi @@ -2,14 +2,14 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from .maxflow import * -from .mincost import * from .boykovkolmogorov import * +from .capacityscaling import * from .dinitz_alg import * from .edmondskarp import * from .gomory_hu import * +from .maxflow import * +from .mincost import * +from .networksimplex import * from .preflowpush import * from .shortestaugmentingpath import * -from .capacityscaling import * -from .networksimplex import * from .utils import build_flow_dict, build_residual_network diff --git a/typeshed/networkx/algorithms/flow/boykovkolmogorov.pyi b/mypy-stubs/networkx/algorithms/flow/boykovkolmogorov.pyi similarity index 51% rename from typeshed/networkx/algorithms/flow/boykovkolmogorov.pyi rename to mypy-stubs/networkx/algorithms/flow/boykovkolmogorov.pyi index 094456a60..cea4e5e87 100644 --- a/typeshed/networkx/algorithms/flow/boykovkolmogorov.pyi +++ b/mypy-stubs/networkx/algorithms/flow/boykovkolmogorov.pyi @@ -4,4 +4,12 @@ from typing import Any, Optional -def boykov_kolmogorov(G, s, t, capacity: str = ..., residual: Optional[Any] = ..., value_only: bool = ..., cutoff: Optional[Any] = ...): ... +def boykov_kolmogorov( + G, + s, + t, + capacity: str = ..., + residual: Optional[Any] = ..., + value_only: bool = ..., + cutoff: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/algorithms/flow/capacityscaling.pyi b/mypy-stubs/networkx/algorithms/flow/capacityscaling.pyi similarity index 60% rename from typeshed/networkx/algorithms/flow/capacityscaling.pyi rename to mypy-stubs/networkx/algorithms/flow/capacityscaling.pyi index 121428e84..62151938e 100644 --- a/typeshed/networkx/algorithms/flow/capacityscaling.pyi +++ b/mypy-stubs/networkx/algorithms/flow/capacityscaling.pyi @@ -4,4 +4,6 @@ from typing import Any -def capacity_scaling(G, demand: str = ..., capacity: str = ..., weight: str = ..., heap: Any = ...): ... +def capacity_scaling( + G, demand: str = ..., capacity: str = ..., weight: str = ..., heap: Any = ... +): ... diff --git a/typeshed/networkx/algorithms/flow/dinitz_alg.pyi b/mypy-stubs/networkx/algorithms/flow/dinitz_alg.pyi similarity index 51% rename from typeshed/networkx/algorithms/flow/dinitz_alg.pyi rename to mypy-stubs/networkx/algorithms/flow/dinitz_alg.pyi index a0cbd8d1f..ccfb48e4d 100644 --- a/typeshed/networkx/algorithms/flow/dinitz_alg.pyi +++ b/mypy-stubs/networkx/algorithms/flow/dinitz_alg.pyi @@ -4,4 +4,12 @@ from typing import Any, Optional -def dinitz(G, s, t, capacity: str = ..., residual: Optional[Any] = ..., value_only: bool = ..., cutoff: Optional[Any] = ...): ... +def dinitz( + G, + s, + t, + capacity: str = ..., + residual: Optional[Any] = ..., + value_only: bool = ..., + cutoff: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/algorithms/flow/edmondskarp.pyi b/mypy-stubs/networkx/algorithms/flow/edmondskarp.pyi similarity index 56% rename from typeshed/networkx/algorithms/flow/edmondskarp.pyi rename to mypy-stubs/networkx/algorithms/flow/edmondskarp.pyi index ab4876551..96d92b927 100644 --- a/typeshed/networkx/algorithms/flow/edmondskarp.pyi +++ b/mypy-stubs/networkx/algorithms/flow/edmondskarp.pyi @@ -2,7 +2,16 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from networkx.algorithms.flow.utils import * from typing import Any, Optional -def edmonds_karp(G, s, t, capacity: str = ..., residual: Optional[Any] = ..., value_only: bool = ..., cutoff: Optional[Any] = ...): ... +from networkx.algorithms.flow.utils import * + +def edmonds_karp( + G, + s, + t, + capacity: str = ..., + residual: Optional[Any] = ..., + value_only: bool = ..., + cutoff: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/algorithms/flow/gomory_hu.pyi b/mypy-stubs/networkx/algorithms/flow/gomory_hu.pyi similarity index 99% rename from typeshed/networkx/algorithms/flow/gomory_hu.pyi rename to mypy-stubs/networkx/algorithms/flow/gomory_hu.pyi index da26cd17f..a548e83c7 100644 --- a/typeshed/networkx/algorithms/flow/gomory_hu.pyi +++ b/mypy-stubs/networkx/algorithms/flow/gomory_hu.pyi @@ -2,9 +2,10 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from .edmondskarp import edmonds_karp from typing import Any, Optional +from .edmondskarp import edmonds_karp + default_flow_func = edmonds_karp def gomory_hu_tree(G, capacity: str = ..., flow_func: Optional[Any] = ...): ... diff --git a/mypy-stubs/networkx/algorithms/flow/maxflow.pyi b/mypy-stubs/networkx/algorithms/flow/maxflow.pyi new file mode 100644 index 000000000..e0ebab1f7 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/flow/maxflow.pyi @@ -0,0 +1,22 @@ +# Stubs for networkx.algorithms.flow.maxflow (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +from .preflowpush import preflow_push + +default_flow_func = preflow_push + +def maximum_flow( + flowG, _s, _t, capacity: str = ..., flow_func: Optional[Any] = ..., **kwargs +): ... +def maximum_flow_value( + flowG, _s, _t, capacity: str = ..., flow_func: Optional[Any] = ..., **kwargs +): ... +def minimum_cut( + flowG, _s, _t, capacity: str = ..., flow_func: Optional[Any] = ..., **kwargs +): ... +def minimum_cut_value( + flowG, _s, _t, capacity: str = ..., flow_func: Optional[Any] = ..., **kwargs +): ... diff --git a/typeshed/networkx/algorithms/flow/mincost.pyi b/mypy-stubs/networkx/algorithms/flow/mincost.pyi similarity index 78% rename from typeshed/networkx/algorithms/flow/mincost.pyi rename to mypy-stubs/networkx/algorithms/flow/mincost.pyi index 8de9f4835..93c4e6904 100644 --- a/typeshed/networkx/algorithms/flow/mincost.pyi +++ b/mypy-stubs/networkx/algorithms/flow/mincost.pyi @@ -2,7 +2,9 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -def min_cost_flow_cost(G, demand: str = ..., capacity: str = ..., weight: str = ...): ... +def min_cost_flow_cost( + G, demand: str = ..., capacity: str = ..., weight: str = ... +): ... def min_cost_flow(G, demand: str = ..., capacity: str = ..., weight: str = ...): ... def cost_of_flow(G, flowDict, weight: str = ...): ... def max_flow_min_cost(G, s, t, capacity: str = ..., weight: str = ...): ... diff --git a/typeshed/networkx/algorithms/flow/networksimplex.pyi b/mypy-stubs/networkx/algorithms/flow/networksimplex.pyi similarity index 100% rename from typeshed/networkx/algorithms/flow/networksimplex.pyi rename to mypy-stubs/networkx/algorithms/flow/networksimplex.pyi diff --git a/typeshed/networkx/algorithms/flow/preflowpush.pyi b/mypy-stubs/networkx/algorithms/flow/preflowpush.pyi similarity index 50% rename from typeshed/networkx/algorithms/flow/preflowpush.pyi rename to mypy-stubs/networkx/algorithms/flow/preflowpush.pyi index 4d8566093..181bf72b7 100644 --- a/typeshed/networkx/algorithms/flow/preflowpush.pyi +++ b/mypy-stubs/networkx/algorithms/flow/preflowpush.pyi @@ -4,4 +4,12 @@ from typing import Any, Optional -def preflow_push(G, s, t, capacity: str = ..., residual: Optional[Any] = ..., global_relabel_freq: int = ..., value_only: bool = ...): ... +def preflow_push( + G, + s, + t, + capacity: str = ..., + residual: Optional[Any] = ..., + global_relabel_freq: int = ..., + value_only: bool = ..., +): ... diff --git a/typeshed/networkx/algorithms/flow/shortestaugmentingpath.pyi b/mypy-stubs/networkx/algorithms/flow/shortestaugmentingpath.pyi similarity index 50% rename from typeshed/networkx/algorithms/flow/shortestaugmentingpath.pyi rename to mypy-stubs/networkx/algorithms/flow/shortestaugmentingpath.pyi index 9c2d2d253..5112e85c7 100644 --- a/typeshed/networkx/algorithms/flow/shortestaugmentingpath.pyi +++ b/mypy-stubs/networkx/algorithms/flow/shortestaugmentingpath.pyi @@ -2,7 +2,17 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from .utils import * from typing import Any, Optional -def shortest_augmenting_path(G, s, t, capacity: str = ..., residual: Optional[Any] = ..., value_only: bool = ..., two_phase: bool = ..., cutoff: Optional[Any] = ...): ... +from .utils import * + +def shortest_augmenting_path( + G, + s, + t, + capacity: str = ..., + residual: Optional[Any] = ..., + value_only: bool = ..., + two_phase: bool = ..., + cutoff: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/algorithms/flow/utils.pyi b/mypy-stubs/networkx/algorithms/flow/utils.pyi similarity index 100% rename from typeshed/networkx/algorithms/flow/utils.pyi rename to mypy-stubs/networkx/algorithms/flow/utils.pyi diff --git a/typeshed/networkx/algorithms/graphical.pyi b/mypy-stubs/networkx/algorithms/graphical.pyi similarity index 100% rename from typeshed/networkx/algorithms/graphical.pyi rename to mypy-stubs/networkx/algorithms/graphical.pyi diff --git a/typeshed/networkx/algorithms/hierarchy.pyi b/mypy-stubs/networkx/algorithms/hierarchy.pyi similarity index 100% rename from typeshed/networkx/algorithms/hierarchy.pyi rename to mypy-stubs/networkx/algorithms/hierarchy.pyi diff --git a/typeshed/networkx/algorithms/hybrid.pyi b/mypy-stubs/networkx/algorithms/hybrid.pyi similarity index 66% rename from typeshed/networkx/algorithms/hybrid.pyi rename to mypy-stubs/networkx/algorithms/hybrid.pyi index e6a6f14a6..020479b17 100644 --- a/typeshed/networkx/algorithms/hybrid.pyi +++ b/mypy-stubs/networkx/algorithms/hybrid.pyi @@ -2,5 +2,7 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -def kl_connected_subgraph(G, k, l, low_memory: bool = ..., same_as_graph: bool = ...): ... +def kl_connected_subgraph( + G, k, l, low_memory: bool = ..., same_as_graph: bool = ... +): ... def is_kl_connected(G, k, l, low_memory: bool = ...): ... diff --git a/typeshed/networkx/algorithms/isolate.pyi b/mypy-stubs/networkx/algorithms/isolate.pyi similarity index 100% rename from typeshed/networkx/algorithms/isolate.pyi rename to mypy-stubs/networkx/algorithms/isolate.pyi diff --git a/typeshed/networkx/algorithms/isomorphism/__init__.pyi b/mypy-stubs/networkx/algorithms/isomorphism/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/isomorphism/__init__.pyi rename to mypy-stubs/networkx/algorithms/isomorphism/__init__.pyi index df1779d1a..00c077680 100644 --- a/typeshed/networkx/algorithms/isomorphism/__init__.pyi +++ b/mypy-stubs/networkx/algorithms/isomorphism/__init__.pyi @@ -3,6 +3,6 @@ # NOTE: This dynamically typed stub was automatically generated by stubgen. from networkx.algorithms.isomorphism.isomorph import * -from networkx.algorithms.isomorphism.vf2userfunc import * from networkx.algorithms.isomorphism.matchhelpers import * from networkx.algorithms.isomorphism.temporalisomorphvf2 import * +from networkx.algorithms.isomorphism.vf2userfunc import * diff --git a/typeshed/networkx/algorithms/isomorphism/isomorph.pyi b/mypy-stubs/networkx/algorithms/isomorphism/isomorph.pyi similarity index 81% rename from typeshed/networkx/algorithms/isomorphism/isomorph.pyi rename to mypy-stubs/networkx/algorithms/isomorphism/isomorph.pyi index e7d971eab..25e42d410 100644 --- a/typeshed/networkx/algorithms/isomorphism/isomorph.pyi +++ b/mypy-stubs/networkx/algorithms/isomorphism/isomorph.pyi @@ -5,12 +5,17 @@ from typing import Any, Optional def could_be_isomorphic(G1, G2): ... + graph_could_be_isomorphic = could_be_isomorphic def fast_could_be_isomorphic(G1, G2): ... + fast_graph_could_be_isomorphic = fast_could_be_isomorphic def faster_could_be_isomorphic(G1, G2): ... + faster_graph_could_be_isomorphic = faster_could_be_isomorphic -def is_isomorphic(G1, G2, node_match: Optional[Any] = ..., edge_match: Optional[Any] = ...): ... +def is_isomorphic( + G1, G2, node_match: Optional[Any] = ..., edge_match: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/algorithms/isomorphism/isomorphvf2.pyi b/mypy-stubs/networkx/algorithms/isomorphism/isomorphvf2.pyi similarity index 87% rename from typeshed/networkx/algorithms/isomorphism/isomorphvf2.pyi rename to mypy-stubs/networkx/algorithms/isomorphism/isomorphvf2.pyi index caec90325..30a2d51e1 100644 --- a/typeshed/networkx/algorithms/isomorphism/isomorphvf2.pyi +++ b/mypy-stubs/networkx/algorithms/isomorphism/isomorphvf2.pyi @@ -48,7 +48,9 @@ class GMState: G1_node: Any = ... G2_node: Any = ... depth: Any = ... - def __init__(self, GM, G1_node: Optional[Any] = ..., G2_node: Optional[Any] = ...) -> None: ... + def __init__( + self, GM, G1_node: Optional[Any] = ..., G2_node: Optional[Any] = ... + ) -> None: ... def restore(self): ... class DiGMState: @@ -56,5 +58,7 @@ class DiGMState: G1_node: Any = ... G2_node: Any = ... depth: Any = ... - def __init__(self, GM, G1_node: Optional[Any] = ..., G2_node: Optional[Any] = ...) -> None: ... + def __init__( + self, GM, G1_node: Optional[Any] = ..., G2_node: Optional[Any] = ... + ) -> None: ... def restore(self): ... diff --git a/typeshed/networkx/algorithms/isomorphism/matchhelpers.pyi b/mypy-stubs/networkx/algorithms/isomorphism/matchhelpers.pyi similarity index 100% rename from typeshed/networkx/algorithms/isomorphism/matchhelpers.pyi rename to mypy-stubs/networkx/algorithms/isomorphism/matchhelpers.pyi diff --git a/typeshed/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi b/mypy-stubs/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi similarity index 99% rename from typeshed/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi rename to mypy-stubs/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi index 7fcbb8c68..d79e96c22 100644 --- a/typeshed/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi +++ b/mypy-stubs/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi @@ -2,9 +2,10 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from .isomorphvf2 import DiGraphMatcher, GraphMatcher from typing import Any, Optional +from .isomorphvf2 import DiGraphMatcher, GraphMatcher + class TimeRespectingGraphMatcher(GraphMatcher): temporal_attribute_name: Any = ... delta: Any = ... diff --git a/typeshed/networkx/algorithms/isomorphism/vf2userfunc.pyi b/mypy-stubs/networkx/algorithms/isomorphism/vf2userfunc.pyi similarity index 72% rename from typeshed/networkx/algorithms/isomorphism/vf2userfunc.pyi rename to mypy-stubs/networkx/algorithms/isomorphism/vf2userfunc.pyi index 6a0d2353f..43f5ec19b 100644 --- a/typeshed/networkx/algorithms/isomorphism/vf2userfunc.pyi +++ b/mypy-stubs/networkx/algorithms/isomorphism/vf2userfunc.pyi @@ -2,15 +2,18 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from . import isomorphvf2 as vf2 from typing import Any, Optional +from . import isomorphvf2 as vf2 + class GraphMatcher(vf2.GraphMatcher): node_match: Any = ... edge_match: Any = ... G1_adj: Any = ... G2_adj: Any = ... - def __init__(self, G1, G2, node_match: Optional[Any] = ..., edge_match: Optional[Any] = ...) -> None: ... + def __init__( + self, G1, G2, node_match: Optional[Any] = ..., edge_match: Optional[Any] = ... + ) -> None: ... semantic_feasibility: Any = ... class DiGraphMatcher(vf2.DiGraphMatcher): @@ -18,7 +21,9 @@ class DiGraphMatcher(vf2.DiGraphMatcher): edge_match: Any = ... G1_adj: Any = ... G2_adj: Any = ... - def __init__(self, G1, G2, node_match: Optional[Any] = ..., edge_match: Optional[Any] = ...) -> None: ... + def __init__( + self, G1, G2, node_match: Optional[Any] = ..., edge_match: Optional[Any] = ... + ) -> None: ... def semantic_feasibility(self, G1_node, G2_node): ... class MultiGraphMatcher(GraphMatcher): ... diff --git a/typeshed/networkx/algorithms/link_analysis/__init__.pyi b/mypy-stubs/networkx/algorithms/link_analysis/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/link_analysis/__init__.pyi rename to mypy-stubs/networkx/algorithms/link_analysis/__init__.pyi index f2bc2c751..5c7882e12 100644 --- a/typeshed/networkx/algorithms/link_analysis/__init__.pyi +++ b/mypy-stubs/networkx/algorithms/link_analysis/__init__.pyi @@ -2,5 +2,5 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from networkx.algorithms.link_analysis.pagerank_alg import * from networkx.algorithms.link_analysis.hits_alg import * +from networkx.algorithms.link_analysis.pagerank_alg import * diff --git a/typeshed/networkx/algorithms/link_analysis/hits_alg.pyi b/mypy-stubs/networkx/algorithms/link_analysis/hits_alg.pyi similarity index 76% rename from typeshed/networkx/algorithms/link_analysis/hits_alg.pyi rename to mypy-stubs/networkx/algorithms/link_analysis/hits_alg.pyi index f1b971c03..b48e767ad 100644 --- a/typeshed/networkx/algorithms/link_analysis/hits_alg.pyi +++ b/mypy-stubs/networkx/algorithms/link_analysis/hits_alg.pyi @@ -4,7 +4,13 @@ from typing import Any, Optional -def hits(G, max_iter: int = ..., tol: float = ..., nstart: Optional[Any] = ..., normalized: bool = ...): ... +def hits( + G, + max_iter: int = ..., + tol: float = ..., + nstart: Optional[Any] = ..., + normalized: bool = ..., +): ... def authority_matrix(G, nodelist: Optional[Any] = ...): ... def hub_matrix(G, nodelist: Optional[Any] = ...): ... def hits_numpy(G, normalized: bool = ...): ... diff --git a/mypy-stubs/networkx/algorithms/link_analysis/pagerank_alg.pyi b/mypy-stubs/networkx/algorithms/link_analysis/pagerank_alg.pyi new file mode 100644 index 000000000..9beccabd6 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/link_analysis/pagerank_alg.pyi @@ -0,0 +1,40 @@ +# Stubs for networkx.algorithms.link_analysis.pagerank_alg (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def pagerank( + G, + alpha: float = ..., + personalization: Optional[Any] = ..., + max_iter: int = ..., + tol: float = ..., + nstart: Optional[Any] = ..., + weight: str = ..., + dangling: Optional[Any] = ..., +): ... +def google_matrix( + G, + alpha: float = ..., + personalization: Optional[Any] = ..., + nodelist: Optional[Any] = ..., + weight: str = ..., + dangling: Optional[Any] = ..., +): ... +def pagerank_numpy( + G, + alpha: float = ..., + personalization: Optional[Any] = ..., + weight: str = ..., + dangling: Optional[Any] = ..., +): ... +def pagerank_scipy( + G, + alpha: float = ..., + personalization: Optional[Any] = ..., + max_iter: int = ..., + tol: float = ..., + weight: str = ..., + dangling: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/algorithms/link_prediction.pyi b/mypy-stubs/networkx/algorithms/link_prediction.pyi similarity index 71% rename from typeshed/networkx/algorithms/link_prediction.pyi rename to mypy-stubs/networkx/algorithms/link_prediction.pyi index 57ce8989b..1d9a5813b 100644 --- a/typeshed/networkx/algorithms/link_prediction.pyi +++ b/mypy-stubs/networkx/algorithms/link_prediction.pyi @@ -9,5 +9,9 @@ def jaccard_coefficient(G, ebunch: Optional[Any] = ...): ... def adamic_adar_index(G, ebunch: Optional[Any] = ...): ... def preferential_attachment(G, ebunch: Optional[Any] = ...): ... def cn_soundarajan_hopcroft(G, ebunch: Optional[Any] = ..., community: str = ...): ... -def ra_index_soundarajan_hopcroft(G, ebunch: Optional[Any] = ..., community: str = ...): ... -def within_inter_cluster(G, ebunch: Optional[Any] = ..., delta: float = ..., community: str = ...): ... +def ra_index_soundarajan_hopcroft( + G, ebunch: Optional[Any] = ..., community: str = ... +): ... +def within_inter_cluster( + G, ebunch: Optional[Any] = ..., delta: float = ..., community: str = ... +): ... diff --git a/typeshed/networkx/algorithms/lowest_common_ancestors.pyi b/mypy-stubs/networkx/algorithms/lowest_common_ancestors.pyi similarity index 75% rename from typeshed/networkx/algorithms/lowest_common_ancestors.pyi rename to mypy-stubs/networkx/algorithms/lowest_common_ancestors.pyi index e643a3190..edcf10148 100644 --- a/typeshed/networkx/algorithms/lowest_common_ancestors.pyi +++ b/mypy-stubs/networkx/algorithms/lowest_common_ancestors.pyi @@ -4,6 +4,8 @@ from typing import Any, Optional -def tree_all_pairs_lowest_common_ancestor(G, root: Optional[Any] = ..., pairs: Optional[Any] = ...): ... +def tree_all_pairs_lowest_common_ancestor( + G, root: Optional[Any] = ..., pairs: Optional[Any] = ... +): ... def lowest_common_ancestor(G, node1, node2, default: Optional[Any] = ...): ... def all_pairs_lowest_common_ancestor(G, pairs: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/matching.pyi b/mypy-stubs/networkx/algorithms/matching.pyi similarity index 100% rename from typeshed/networkx/algorithms/matching.pyi rename to mypy-stubs/networkx/algorithms/matching.pyi diff --git a/typeshed/networkx/algorithms/minors.pyi b/mypy-stubs/networkx/algorithms/minors.pyi similarity index 58% rename from typeshed/networkx/algorithms/minors.pyi rename to mypy-stubs/networkx/algorithms/minors.pyi index 8f2e60625..b7e296112 100644 --- a/typeshed/networkx/algorithms/minors.pyi +++ b/mypy-stubs/networkx/algorithms/minors.pyi @@ -4,8 +4,17 @@ from typing import Any, Optional -def quotient_graph(G, partition, edge_relation: Optional[Any] = ..., node_data: Optional[Any] = ..., edge_data: Optional[Any] = ..., relabel: bool = ..., create_using: Optional[Any] = ...): ... +def quotient_graph( + G, + partition, + edge_relation: Optional[Any] = ..., + node_data: Optional[Any] = ..., + edge_data: Optional[Any] = ..., + relabel: bool = ..., + create_using: Optional[Any] = ..., +): ... def contracted_nodes(G, u, v, self_loops: bool = ...): ... + identified_nodes = contracted_nodes def contracted_edge(G, edge, self_loops: bool = ...): ... diff --git a/typeshed/networkx/algorithms/mis.pyi b/mypy-stubs/networkx/algorithms/mis.pyi similarity index 100% rename from typeshed/networkx/algorithms/mis.pyi rename to mypy-stubs/networkx/algorithms/mis.pyi diff --git a/typeshed/networkx/algorithms/operators/__init__.pyi b/mypy-stubs/networkx/algorithms/operators/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/operators/__init__.pyi rename to mypy-stubs/networkx/algorithms/operators/__init__.pyi diff --git a/typeshed/networkx/algorithms/operators/all.pyi b/mypy-stubs/networkx/algorithms/operators/all.pyi similarity index 100% rename from typeshed/networkx/algorithms/operators/all.pyi rename to mypy-stubs/networkx/algorithms/operators/all.pyi diff --git a/typeshed/networkx/algorithms/operators/binary.pyi b/mypy-stubs/networkx/algorithms/operators/binary.pyi similarity index 100% rename from typeshed/networkx/algorithms/operators/binary.pyi rename to mypy-stubs/networkx/algorithms/operators/binary.pyi diff --git a/typeshed/networkx/algorithms/operators/product.pyi b/mypy-stubs/networkx/algorithms/operators/product.pyi similarity index 100% rename from typeshed/networkx/algorithms/operators/product.pyi rename to mypy-stubs/networkx/algorithms/operators/product.pyi diff --git a/typeshed/networkx/algorithms/operators/unary.pyi b/mypy-stubs/networkx/algorithms/operators/unary.pyi similarity index 100% rename from typeshed/networkx/algorithms/operators/unary.pyi rename to mypy-stubs/networkx/algorithms/operators/unary.pyi diff --git a/typeshed/networkx/algorithms/reciprocity.pyi b/mypy-stubs/networkx/algorithms/reciprocity.pyi similarity index 100% rename from typeshed/networkx/algorithms/reciprocity.pyi rename to mypy-stubs/networkx/algorithms/reciprocity.pyi diff --git a/typeshed/networkx/algorithms/richclub.pyi b/mypy-stubs/networkx/algorithms/richclub.pyi similarity index 100% rename from typeshed/networkx/algorithms/richclub.pyi rename to mypy-stubs/networkx/algorithms/richclub.pyi diff --git a/typeshed/networkx/algorithms/shortest_paths/__init__.pyi b/mypy-stubs/networkx/algorithms/shortest_paths/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/shortest_paths/__init__.pyi rename to mypy-stubs/networkx/algorithms/shortest_paths/__init__.pyi index 060ec4cff..0f156904d 100644 --- a/typeshed/networkx/algorithms/shortest_paths/__init__.pyi +++ b/mypy-stubs/networkx/algorithms/shortest_paths/__init__.pyi @@ -2,8 +2,8 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. +from networkx.algorithms.shortest_paths.astar import * +from networkx.algorithms.shortest_paths.dense import * from networkx.algorithms.shortest_paths.generic import * from networkx.algorithms.shortest_paths.unweighted import * from networkx.algorithms.shortest_paths.weighted import * -from networkx.algorithms.shortest_paths.astar import * -from networkx.algorithms.shortest_paths.dense import * diff --git a/mypy-stubs/networkx/algorithms/shortest_paths/astar.pyi b/mypy-stubs/networkx/algorithms/shortest_paths/astar.pyi new file mode 100644 index 000000000..abe9be2dc --- /dev/null +++ b/mypy-stubs/networkx/algorithms/shortest_paths/astar.pyi @@ -0,0 +1,12 @@ +# Stubs for networkx.algorithms.shortest_paths.astar (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def astar_path( + G, source, target, heuristic: Optional[Any] = ..., weight: str = ... +): ... +def astar_path_length( + G, source, target, heuristic: Optional[Any] = ..., weight: str = ... +): ... diff --git a/typeshed/networkx/algorithms/shortest_paths/dense.pyi b/mypy-stubs/networkx/algorithms/shortest_paths/dense.pyi similarity index 100% rename from typeshed/networkx/algorithms/shortest_paths/dense.pyi rename to mypy-stubs/networkx/algorithms/shortest_paths/dense.pyi diff --git a/typeshed/networkx/algorithms/shortest_paths/generic.pyi b/mypy-stubs/networkx/algorithms/shortest_paths/generic.pyi similarity index 57% rename from typeshed/networkx/algorithms/shortest_paths/generic.pyi rename to mypy-stubs/networkx/algorithms/shortest_paths/generic.pyi index 4d79c613d..c177663eb 100644 --- a/typeshed/networkx/algorithms/shortest_paths/generic.pyi +++ b/mypy-stubs/networkx/algorithms/shortest_paths/generic.pyi @@ -5,7 +5,17 @@ from typing import Any, Optional def has_path(G, source, target): ... -def shortest_path(G, source: Optional[Any] = ..., target: Optional[Any] = ..., weight: Optional[Any] = ...): ... -def shortest_path_length(G, source: Optional[Any] = ..., target: Optional[Any] = ..., weight: Optional[Any] = ...): ... +def shortest_path( + G, + source: Optional[Any] = ..., + target: Optional[Any] = ..., + weight: Optional[Any] = ..., +): ... +def shortest_path_length( + G, + source: Optional[Any] = ..., + target: Optional[Any] = ..., + weight: Optional[Any] = ..., +): ... def average_shortest_path_length(G, weight: Optional[Any] = ...): ... def all_shortest_paths(G, source, target, weight: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/shortest_paths/unweighted.pyi b/mypy-stubs/networkx/algorithms/shortest_paths/unweighted.pyi similarity index 82% rename from typeshed/networkx/algorithms/shortest_paths/unweighted.pyi rename to mypy-stubs/networkx/algorithms/shortest_paths/unweighted.pyi index 1d403755b..50b441237 100644 --- a/typeshed/networkx/algorithms/shortest_paths/unweighted.pyi +++ b/mypy-stubs/networkx/algorithms/shortest_paths/unweighted.pyi @@ -11,4 +11,10 @@ def bidirectional_shortest_path(G, source, target): ... def single_source_shortest_path(G, source, cutoff: Optional[Any] = ...): ... def single_target_shortest_path(G, target, cutoff: Optional[Any] = ...): ... def all_pairs_shortest_path(G, cutoff: Optional[Any] = ...): ... -def predecessor(G, source, target: Optional[Any] = ..., cutoff: Optional[Any] = ..., return_seen: Optional[Any] = ...): ... +def predecessor( + G, + source, + target: Optional[Any] = ..., + cutoff: Optional[Any] = ..., + return_seen: Optional[Any] = ..., +): ... diff --git a/mypy-stubs/networkx/algorithms/shortest_paths/weighted.pyi b/mypy-stubs/networkx/algorithms/shortest_paths/weighted.pyi new file mode 100644 index 000000000..52e388360 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/shortest_paths/weighted.pyi @@ -0,0 +1,72 @@ +# Stubs for networkx.algorithms.shortest_paths.weighted (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def dijkstra_path(G, source, target, weight: str = ...): ... +def dijkstra_path_length(G, source, target, weight: str = ...): ... +def single_source_dijkstra_path( + G, source, cutoff: Optional[Any] = ..., weight: str = ... +): ... +def single_source_dijkstra_path_length( + G, source, cutoff: Optional[Any] = ..., weight: str = ... +): ... +def single_source_dijkstra( + G, + source, + target: Optional[Any] = ..., + cutoff: Optional[Any] = ..., + weight: str = ..., +): ... +def multi_source_dijkstra_path( + G, sources, cutoff: Optional[Any] = ..., weight: str = ... +): ... +def multi_source_dijkstra_path_length( + G, sources, cutoff: Optional[Any] = ..., weight: str = ... +): ... +def multi_source_dijkstra( + G, + sources, + target: Optional[Any] = ..., + cutoff: Optional[Any] = ..., + weight: str = ..., +): ... +def dijkstra_predecessor_and_distance( + G, source, cutoff: Optional[Any] = ..., weight: str = ... +): ... +def all_pairs_dijkstra(G, cutoff: Optional[Any] = ..., weight: str = ...): ... +def all_pairs_dijkstra_path_length( + G, cutoff: Optional[Any] = ..., weight: str = ... +): ... +def all_pairs_dijkstra_path(G, cutoff: Optional[Any] = ..., weight: str = ...): ... +def bellman_ford_predecessor_and_distance( + G, + source, + target: Optional[Any] = ..., + cutoff: Optional[Any] = ..., + weight: str = ..., +): ... +def bellman_ford_path(G, source, target, weight: str = ...): ... +def bellman_ford_path_length(G, source, target, weight: str = ...): ... +def single_source_bellman_ford_path( + G, source, cutoff: Optional[Any] = ..., weight: str = ... +): ... +def single_source_bellman_ford_path_length( + G, source, cutoff: Optional[Any] = ..., weight: str = ... +): ... +def single_source_bellman_ford( + G, + source, + target: Optional[Any] = ..., + cutoff: Optional[Any] = ..., + weight: str = ..., +): ... +def all_pairs_bellman_ford_path_length( + G, cutoff: Optional[Any] = ..., weight: str = ... +): ... +def all_pairs_bellman_ford_path(G, cutoff: Optional[Any] = ..., weight: str = ...): ... +def goldberg_radzik(G, source, weight: str = ...): ... +def negative_edge_cycle(G, weight: str = ...): ... +def bidirectional_dijkstra(G, source, target, weight: str = ...): ... +def johnson(G, weight: str = ...): ... diff --git a/mypy-stubs/networkx/algorithms/similarity.pyi b/mypy-stubs/networkx/algorithms/similarity.pyi new file mode 100644 index 000000000..ce5ab447b --- /dev/null +++ b/mypy-stubs/networkx/algorithms/similarity.pyi @@ -0,0 +1,60 @@ +# Stubs for networkx.algorithms.similarity (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from operator import * +from typing import Any, Optional + +def graph_edit_distance( + G1, + G2, + node_match: Optional[Any] = ..., + edge_match: Optional[Any] = ..., + node_subst_cost: Optional[Any] = ..., + node_del_cost: Optional[Any] = ..., + node_ins_cost: Optional[Any] = ..., + edge_subst_cost: Optional[Any] = ..., + edge_del_cost: Optional[Any] = ..., + edge_ins_cost: Optional[Any] = ..., + upper_bound: Optional[Any] = ..., +): ... +def optimal_edit_paths( + G1, + G2, + node_match: Optional[Any] = ..., + edge_match: Optional[Any] = ..., + node_subst_cost: Optional[Any] = ..., + node_del_cost: Optional[Any] = ..., + node_ins_cost: Optional[Any] = ..., + edge_subst_cost: Optional[Any] = ..., + edge_del_cost: Optional[Any] = ..., + edge_ins_cost: Optional[Any] = ..., + upper_bound: Optional[Any] = ..., +): ... +def optimize_graph_edit_distance( + G1, + G2, + node_match: Optional[Any] = ..., + edge_match: Optional[Any] = ..., + node_subst_cost: Optional[Any] = ..., + node_del_cost: Optional[Any] = ..., + node_ins_cost: Optional[Any] = ..., + edge_subst_cost: Optional[Any] = ..., + edge_del_cost: Optional[Any] = ..., + edge_ins_cost: Optional[Any] = ..., + upper_bound: Optional[Any] = ..., +): ... +def optimize_edit_paths( + G1, + G2, + node_match: Optional[Any] = ..., + edge_match: Optional[Any] = ..., + node_subst_cost: Optional[Any] = ..., + node_del_cost: Optional[Any] = ..., + node_ins_cost: Optional[Any] = ..., + edge_subst_cost: Optional[Any] = ..., + edge_del_cost: Optional[Any] = ..., + edge_ins_cost: Optional[Any] = ..., + upper_bound: Optional[Any] = ..., + strictly_decreasing: bool = ..., +): ... diff --git a/typeshed/networkx/algorithms/simple_paths.pyi b/mypy-stubs/networkx/algorithms/simple_paths.pyi similarity index 100% rename from typeshed/networkx/algorithms/simple_paths.pyi rename to mypy-stubs/networkx/algorithms/simple_paths.pyi diff --git a/typeshed/networkx/algorithms/smetric.pyi b/mypy-stubs/networkx/algorithms/smetric.pyi similarity index 100% rename from typeshed/networkx/algorithms/smetric.pyi rename to mypy-stubs/networkx/algorithms/smetric.pyi diff --git a/typeshed/networkx/algorithms/structuralholes.pyi b/mypy-stubs/networkx/algorithms/structuralholes.pyi similarity index 100% rename from typeshed/networkx/algorithms/structuralholes.pyi rename to mypy-stubs/networkx/algorithms/structuralholes.pyi diff --git a/typeshed/networkx/algorithms/swap.pyi b/mypy-stubs/networkx/algorithms/swap.pyi similarity index 100% rename from typeshed/networkx/algorithms/swap.pyi rename to mypy-stubs/networkx/algorithms/swap.pyi diff --git a/typeshed/networkx/algorithms/threshold.pyi b/mypy-stubs/networkx/algorithms/threshold.pyi similarity index 100% rename from typeshed/networkx/algorithms/threshold.pyi rename to mypy-stubs/networkx/algorithms/threshold.pyi diff --git a/typeshed/networkx/algorithms/tournament.pyi b/mypy-stubs/networkx/algorithms/tournament.pyi similarity index 100% rename from typeshed/networkx/algorithms/tournament.pyi rename to mypy-stubs/networkx/algorithms/tournament.pyi diff --git a/typeshed/networkx/algorithms/traversal/__init__.pyi b/mypy-stubs/networkx/algorithms/traversal/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/traversal/__init__.pyi rename to mypy-stubs/networkx/algorithms/traversal/__init__.pyi diff --git a/typeshed/networkx/algorithms/traversal/beamsearch.pyi b/mypy-stubs/networkx/algorithms/traversal/beamsearch.pyi similarity index 100% rename from typeshed/networkx/algorithms/traversal/beamsearch.pyi rename to mypy-stubs/networkx/algorithms/traversal/beamsearch.pyi diff --git a/typeshed/networkx/algorithms/traversal/breadth_first_search.pyi b/mypy-stubs/networkx/algorithms/traversal/breadth_first_search.pyi similarity index 100% rename from typeshed/networkx/algorithms/traversal/breadth_first_search.pyi rename to mypy-stubs/networkx/algorithms/traversal/breadth_first_search.pyi diff --git a/mypy-stubs/networkx/algorithms/traversal/depth_first_search.pyi b/mypy-stubs/networkx/algorithms/traversal/depth_first_search.pyi new file mode 100644 index 000000000..554accd1c --- /dev/null +++ b/mypy-stubs/networkx/algorithms/traversal/depth_first_search.pyi @@ -0,0 +1,23 @@ +# Stubs for networkx.algorithms.traversal.depth_first_search (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def dfs_edges(G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ...): ... +def dfs_tree(G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ...): ... +def dfs_predecessors( + G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ... +): ... +def dfs_successors( + G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ... +): ... +def dfs_postorder_nodes( + G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ... +): ... +def dfs_preorder_nodes( + G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ... +): ... +def dfs_labeled_edges( + G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/algorithms/traversal/edgedfs.pyi b/mypy-stubs/networkx/algorithms/traversal/edgedfs.pyi similarity index 100% rename from typeshed/networkx/algorithms/traversal/edgedfs.pyi rename to mypy-stubs/networkx/algorithms/traversal/edgedfs.pyi diff --git a/typeshed/networkx/algorithms/tree/__init__.pyi b/mypy-stubs/networkx/algorithms/tree/__init__.pyi similarity index 100% rename from typeshed/networkx/algorithms/tree/__init__.pyi rename to mypy-stubs/networkx/algorithms/tree/__init__.pyi index dfe3cc6ce..db314da6b 100644 --- a/typeshed/networkx/algorithms/tree/__init__.pyi +++ b/mypy-stubs/networkx/algorithms/tree/__init__.pyi @@ -5,5 +5,5 @@ from .branchings import * from .coding import * from .mst import * -from .recognition import * from .operations import * +from .recognition import * diff --git a/typeshed/networkx/algorithms/tree/branchings.pyi b/mypy-stubs/networkx/algorithms/tree/branchings.pyi similarity index 91% rename from typeshed/networkx/algorithms/tree/branchings.pyi rename to mypy-stubs/networkx/algorithms/tree/branchings.pyi index 563bd4382..2dff70833 100644 --- a/typeshed/networkx/algorithms/tree/branchings.pyi +++ b/mypy-stubs/networkx/algorithms/tree/branchings.pyi @@ -2,9 +2,10 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from .recognition import * from typing import Any, Optional +from .recognition import * + def branching_weight(G, attr: str = ..., default: int = ...): ... def greedy_branching(G, attr: str = ..., default: int = ..., kind: str = ...): ... @@ -25,7 +26,9 @@ class Edmonds: edges: Any = ... template: Any = ... def __init__(self, G, seed: Optional[Any] = ...) -> None: ... - def find_optimum(self, attr: str = ..., default: int = ..., kind: str = ..., style: str = ...): ... + def find_optimum( + self, attr: str = ..., default: int = ..., kind: str = ..., style: str = ... + ): ... def maximum_branching(G, attr: str = ..., default: int = ...): ... def minimum_branching(G, attr: str = ..., default: int = ...): ... diff --git a/typeshed/networkx/algorithms/tree/coding.pyi b/mypy-stubs/networkx/algorithms/tree/coding.pyi similarity index 100% rename from typeshed/networkx/algorithms/tree/coding.pyi rename to mypy-stubs/networkx/algorithms/tree/coding.pyi diff --git a/mypy-stubs/networkx/algorithms/tree/mst.pyi b/mypy-stubs/networkx/algorithms/tree/mst.pyi new file mode 100644 index 000000000..13a819bc1 --- /dev/null +++ b/mypy-stubs/networkx/algorithms/tree/mst.pyi @@ -0,0 +1,26 @@ +# Stubs for networkx.algorithms.tree.mst (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +def minimum_spanning_edges( + G, + algorithm: str = ..., + weight: str = ..., + keys: bool = ..., + data: bool = ..., + ignore_nan: bool = ..., +): ... +def maximum_spanning_edges( + G, + algorithm: str = ..., + weight: str = ..., + keys: bool = ..., + data: bool = ..., + ignore_nan: bool = ..., +): ... +def minimum_spanning_tree( + G, weight: str = ..., algorithm: str = ..., ignore_nan: bool = ... +): ... +def maximum_spanning_tree( + G, weight: str = ..., algorithm: str = ..., ignore_nan: bool = ... +): ... diff --git a/typeshed/networkx/algorithms/tree/operations.pyi b/mypy-stubs/networkx/algorithms/tree/operations.pyi similarity index 100% rename from typeshed/networkx/algorithms/tree/operations.pyi rename to mypy-stubs/networkx/algorithms/tree/operations.pyi diff --git a/typeshed/networkx/algorithms/tree/recognition.pyi b/mypy-stubs/networkx/algorithms/tree/recognition.pyi similarity index 100% rename from typeshed/networkx/algorithms/tree/recognition.pyi rename to mypy-stubs/networkx/algorithms/tree/recognition.pyi diff --git a/typeshed/networkx/algorithms/triads.pyi b/mypy-stubs/networkx/algorithms/triads.pyi similarity index 100% rename from typeshed/networkx/algorithms/triads.pyi rename to mypy-stubs/networkx/algorithms/triads.pyi diff --git a/typeshed/networkx/algorithms/vitality.pyi b/mypy-stubs/networkx/algorithms/vitality.pyi similarity index 54% rename from typeshed/networkx/algorithms/vitality.pyi rename to mypy-stubs/networkx/algorithms/vitality.pyi index 5cec0c8f2..6a6e452fa 100644 --- a/typeshed/networkx/algorithms/vitality.pyi +++ b/mypy-stubs/networkx/algorithms/vitality.pyi @@ -4,4 +4,9 @@ from typing import Any, Optional -def closeness_vitality(G, node: Optional[Any] = ..., weight: Optional[Any] = ..., wiener_index: Optional[Any] = ...): ... +def closeness_vitality( + G, + node: Optional[Any] = ..., + weight: Optional[Any] = ..., + wiener_index: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/algorithms/voronoi.pyi b/mypy-stubs/networkx/algorithms/voronoi.pyi similarity index 100% rename from typeshed/networkx/algorithms/voronoi.pyi rename to mypy-stubs/networkx/algorithms/voronoi.pyi diff --git a/typeshed/networkx/algorithms/wiener.pyi b/mypy-stubs/networkx/algorithms/wiener.pyi similarity index 100% rename from typeshed/networkx/algorithms/wiener.pyi rename to mypy-stubs/networkx/algorithms/wiener.pyi diff --git a/typeshed/networkx/classes/__init__.pyi b/mypy-stubs/networkx/classes/__init__.pyi similarity index 100% rename from typeshed/networkx/classes/__init__.pyi rename to mypy-stubs/networkx/classes/__init__.pyi index c35bc875c..e5869d172 100644 --- a/typeshed/networkx/classes/__init__.pyi +++ b/mypy-stubs/networkx/classes/__init__.pyi @@ -2,9 +2,9 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from .ordered import * -from .function import * from .digraph import DiGraph +from .function import * from .graph import Graph from .multidigraph import MultiDiGraph from .multigraph import MultiGraph +from .ordered import * diff --git a/typeshed/networkx/classes/coreviews.pyi b/mypy-stubs/networkx/classes/coreviews.pyi similarity index 100% rename from typeshed/networkx/classes/coreviews.pyi rename to mypy-stubs/networkx/classes/coreviews.pyi diff --git a/typeshed/networkx/classes/digraph.pyi b/mypy-stubs/networkx/classes/digraph.pyi similarity index 99% rename from typeshed/networkx/classes/digraph.pyi rename to mypy-stubs/networkx/classes/digraph.pyi index c77bb721b..bbe371e94 100644 --- a/typeshed/networkx/classes/digraph.pyi +++ b/mypy-stubs/networkx/classes/digraph.pyi @@ -2,9 +2,10 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from networkx.classes.graph import Graph from typing import Any, Optional +from networkx.classes.graph import Graph + class DiGraph(Graph): node_dict_factory: Any = ... adjlist_outer_dict_factory: Any = ... diff --git a/typeshed/networkx/classes/filters.pyi b/mypy-stubs/networkx/classes/filters.pyi similarity index 100% rename from typeshed/networkx/classes/filters.pyi rename to mypy-stubs/networkx/classes/filters.pyi diff --git a/typeshed/networkx/classes/function.pyi b/mypy-stubs/networkx/classes/function.pyi similarity index 94% rename from typeshed/networkx/classes/function.pyi rename to mypy-stubs/networkx/classes/function.pyi index d93da4395..4de47f5f1 100644 --- a/typeshed/networkx/classes/function.pyi +++ b/mypy-stubs/networkx/classes/function.pyi @@ -39,5 +39,7 @@ def is_weighted(G, edge: Optional[Any] = ..., weight: str = ...): ... def is_negatively_weighted(G, edge: Optional[Any] = ..., weight: str = ...): ... def is_empty(G): ... def nodes_with_selfloops(G): ... -def selfloop_edges(G, data: bool = ..., keys: bool = ..., default: Optional[Any] = ...): ... +def selfloop_edges( + G, data: bool = ..., keys: bool = ..., default: Optional[Any] = ... +): ... def number_of_selfloops(G): ... diff --git a/typeshed/networkx/classes/graph.pyi b/mypy-stubs/networkx/classes/graph.pyi similarity index 95% rename from typeshed/networkx/classes/graph.pyi rename to mypy-stubs/networkx/classes/graph.pyi index 9692b5110..302b25351 100644 --- a/typeshed/networkx/classes/graph.pyi +++ b/mypy-stubs/networkx/classes/graph.pyi @@ -34,7 +34,9 @@ class Graph: def add_star(self, nodes, **attr): ... def nodes_with_selfloops(self): ... def number_of_selfloops(self): ... - def selfloop_edges(self, data: bool = ..., keys: bool = ..., default: Optional[Any] = ...): ... + def selfloop_edges( + self, data: bool = ..., keys: bool = ..., default: Optional[Any] = ... + ): ... def number_of_nodes(self): ... def order(self): ... def has_node(self, n): ... diff --git a/typeshed/networkx/classes/graphviews.pyi b/mypy-stubs/networkx/classes/graphviews.pyi similarity index 78% rename from typeshed/networkx/classes/graphviews.pyi rename to mypy-stubs/networkx/classes/graphviews.pyi index 308ddc93d..064a80f44 100644 --- a/typeshed/networkx/classes/graphviews.pyi +++ b/mypy-stubs/networkx/classes/graphviews.pyi @@ -2,29 +2,38 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. +from typing import Any + from networkx.classes import DiGraph, Graph, MultiDiGraph, MultiGraph from networkx.classes.coreviews import ReadOnlyGraph -from typing import Any class SubGraph(ReadOnlyGraph, Graph): root_graph: Any = ... graph: Any = ... - def __init__(self, graph, filter_node: Any = ..., filter_edge: Any = ...) -> None: ... + def __init__( + self, graph, filter_node: Any = ..., filter_edge: Any = ... + ) -> None: ... class SubDiGraph(ReadOnlyGraph, DiGraph): root_graph: Any = ... graph: Any = ... - def __init__(self, graph, filter_node: Any = ..., filter_edge: Any = ...) -> None: ... + def __init__( + self, graph, filter_node: Any = ..., filter_edge: Any = ... + ) -> None: ... class SubMultiGraph(ReadOnlyGraph, MultiGraph): root_graph: Any = ... graph: Any = ... - def __init__(self, graph, filter_node: Any = ..., filter_edge: Any = ...) -> None: ... + def __init__( + self, graph, filter_node: Any = ..., filter_edge: Any = ... + ) -> None: ... class SubMultiDiGraph(ReadOnlyGraph, MultiDiGraph): root_graph: Any = ... graph: Any = ... - def __init__(self, graph, filter_node: Any = ..., filter_edge: Any = ...) -> None: ... + def __init__( + self, graph, filter_node: Any = ..., filter_edge: Any = ... + ) -> None: ... class ReverseView(ReadOnlyGraph, DiGraph): root_graph: Any = ... diff --git a/typeshed/networkx/classes/multidigraph.pyi b/mypy-stubs/networkx/classes/multidigraph.pyi similarity index 99% rename from typeshed/networkx/classes/multidigraph.pyi rename to mypy-stubs/networkx/classes/multidigraph.pyi index 4962ae051..7ccf4f2d0 100644 --- a/typeshed/networkx/classes/multidigraph.pyi +++ b/mypy-stubs/networkx/classes/multidigraph.pyi @@ -2,9 +2,10 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. +from typing import Any, Optional + from networkx.classes.digraph import DiGraph from networkx.classes.multigraph import MultiGraph -from typing import Any, Optional class MultiDiGraph(MultiGraph, DiGraph): edge_key_dict_factory: Any = ... diff --git a/typeshed/networkx/classes/multigraph.pyi b/mypy-stubs/networkx/classes/multigraph.pyi similarity index 91% rename from typeshed/networkx/classes/multigraph.pyi rename to mypy-stubs/networkx/classes/multigraph.pyi index a4864c962..18c4329da 100644 --- a/typeshed/networkx/classes/multigraph.pyi +++ b/mypy-stubs/networkx/classes/multigraph.pyi @@ -2,9 +2,10 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from networkx.classes.graph import Graph from typing import Any, Optional +from networkx.classes.graph import Graph + class MultiGraph(Graph): edge_key_dict_factory: Any = ... def __init__(self, incoming_graph_data: Optional[Any] = ..., **attr) -> None: ... @@ -18,7 +19,9 @@ class MultiGraph(Graph): def has_edge(self, u, v, key: Optional[Any] = ...): ... @property def edges(self): ... - def get_edge_data(self, u, v, key: Optional[Any] = ..., default: Optional[Any] = ...): ... + def get_edge_data( + self, u, v, key: Optional[Any] = ..., default: Optional[Any] = ... + ): ... @property def degree(self): ... def is_multigraph(self): ... diff --git a/typeshed/networkx/classes/ordered.pyi b/mypy-stubs/networkx/classes/ordered.pyi similarity index 99% rename from typeshed/networkx/classes/ordered.pyi rename to mypy-stubs/networkx/classes/ordered.pyi index de61f1af0..af305388a 100644 --- a/typeshed/networkx/classes/ordered.pyi +++ b/mypy-stubs/networkx/classes/ordered.pyi @@ -2,11 +2,12 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. +from typing import Any + from .digraph import DiGraph from .graph import Graph from .multidigraph import MultiDiGraph from .multigraph import MultiGraph -from typing import Any class OrderedGraph(Graph): node_dict_factory: Any = ... diff --git a/typeshed/networkx/classes/reportviews.pyi b/mypy-stubs/networkx/classes/reportviews.pyi similarity index 73% rename from typeshed/networkx/classes/reportviews.pyi rename to mypy-stubs/networkx/classes/reportviews.pyi index 1df9786dc..41d409d77 100644 --- a/typeshed/networkx/classes/reportviews.pyi +++ b/mypy-stubs/networkx/classes/reportviews.pyi @@ -15,14 +15,18 @@ class NodeView(Mapping, Set): def data(self, data: bool = ..., default: Optional[Any] = ...): ... class NodeDataView(Set): - def __init__(self, nodedict, data: bool = ..., default: Optional[Any] = ...) -> None: ... + def __init__( + self, nodedict, data: bool = ..., default: Optional[Any] = ... + ) -> None: ... def __len__(self): ... def __iter__(self): ... def __contains__(self, n): ... def __getitem__(self, n): ... class DiDegreeView: - def __init__(self, G, nbunch: Optional[Any] = ..., weight: Optional[Any] = ...) -> None: ... + def __init__( + self, G, nbunch: Optional[Any] = ..., weight: Optional[Any] = ... + ) -> None: ... def __call__(self, nbunch: Optional[Any] = ..., weight: Optional[Any] = ...): ... def __getitem__(self, n): ... def __iter__(self): ... @@ -57,7 +61,13 @@ class OutMultiDegreeView(DiDegreeView): def __iter__(self): ... class OutEdgeDataView: - def __init__(self, viewer, nbunch: Optional[Any] = ..., data: bool = ..., default: Optional[Any] = ...) -> None: ... + def __init__( + self, + viewer, + nbunch: Optional[Any] = ..., + data: bool = ..., + default: Optional[Any] = ..., + ) -> None: ... def __len__(self): ... def __iter__(self): ... def __contains__(self, e): ... @@ -73,7 +83,14 @@ class InEdgeDataView(OutEdgeDataView): class OutMultiEdgeDataView(OutEdgeDataView): keys: Any = ... - def __init__(self, viewer, nbunch: Optional[Any] = ..., data: bool = ..., keys: bool = ..., default: Optional[Any] = ...) -> None: ... + def __init__( + self, + viewer, + nbunch: Optional[Any] = ..., + data: bool = ..., + keys: bool = ..., + default: Optional[Any] = ..., + ) -> None: ... def __len__(self): ... def __iter__(self): ... def __contains__(self, e): ... @@ -93,8 +110,18 @@ class OutEdgeView(Set, Mapping): def __iter__(self): ... def __contains__(self, e): ... def __getitem__(self, e): ... - def __call__(self, nbunch: Optional[Any] = ..., data: bool = ..., default: Optional[Any] = ...): ... - def data(self, data: bool = ..., default: Optional[Any] = ..., nbunch: Optional[Any] = ...): ... + def __call__( + self, + nbunch: Optional[Any] = ..., + data: bool = ..., + default: Optional[Any] = ..., + ): ... + def data( + self, + data: bool = ..., + default: Optional[Any] = ..., + nbunch: Optional[Any] = ..., + ): ... class EdgeView(OutEdgeView): dataview: Any = ... @@ -115,8 +142,20 @@ class OutMultiEdgeView(OutEdgeView): def __iter__(self): ... def __contains__(self, e): ... def __getitem__(self, e): ... - def __call__(self, nbunch: Optional[Any] = ..., data: bool = ..., keys: bool = ..., default: Optional[Any] = ...): ... - def data(self, data: bool = ..., keys: bool = ..., default: Optional[Any] = ..., nbunch: Optional[Any] = ...): ... + def __call__( + self, + nbunch: Optional[Any] = ..., + data: bool = ..., + keys: bool = ..., + default: Optional[Any] = ..., + ): ... + def data( + self, + data: bool = ..., + keys: bool = ..., + default: Optional[Any] = ..., + nbunch: Optional[Any] = ..., + ): ... class MultiEdgeView(OutMultiEdgeView): dataview: Any = ... diff --git a/typeshed/networkx/convert.pyi b/mypy-stubs/networkx/convert.pyi similarity index 57% rename from typeshed/networkx/convert.pyi rename to mypy-stubs/networkx/convert.pyi index cc98a3e9d..ac3868c1b 100644 --- a/typeshed/networkx/convert.pyi +++ b/mypy-stubs/networkx/convert.pyi @@ -4,10 +4,16 @@ from typing import Any, Optional -def to_networkx_graph(data, create_using: Optional[Any] = ..., multigraph_input: bool = ...): ... +def to_networkx_graph( + data, create_using: Optional[Any] = ..., multigraph_input: bool = ... +): ... def to_dict_of_lists(G, nodelist: Optional[Any] = ...): ... def from_dict_of_lists(d, create_using: Optional[Any] = ...): ... -def to_dict_of_dicts(G, nodelist: Optional[Any] = ..., edge_data: Optional[Any] = ...): ... -def from_dict_of_dicts(d, create_using: Optional[Any] = ..., multigraph_input: bool = ...): ... +def to_dict_of_dicts( + G, nodelist: Optional[Any] = ..., edge_data: Optional[Any] = ... +): ... +def from_dict_of_dicts( + d, create_using: Optional[Any] = ..., multigraph_input: bool = ... +): ... def to_edgelist(G, nodelist: Optional[Any] = ...): ... def from_edgelist(edgelist, create_using: Optional[Any] = ...): ... diff --git a/mypy-stubs/networkx/convert_matrix.pyi b/mypy-stubs/networkx/convert_matrix.pyi new file mode 100644 index 000000000..c991bddb6 --- /dev/null +++ b/mypy-stubs/networkx/convert_matrix.pyi @@ -0,0 +1,74 @@ +# Stubs for networkx.convert_matrix (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def to_pandas_adjacency( + G, + nodelist: Optional[Any] = ..., + dtype: Optional[Any] = ..., + order: Optional[Any] = ..., + multigraph_weight: Any = ..., + weight: str = ..., + nonedge: float = ..., +): ... +def from_pandas_adjacency(df, create_using: Optional[Any] = ...): ... +def to_pandas_edgelist( + G, + source: str = ..., + target: str = ..., + nodelist: Optional[Any] = ..., + dtype: Optional[Any] = ..., + order: Optional[Any] = ..., +): ... +def from_pandas_edgelist( + df, + source: str = ..., + target: str = ..., + edge_attr: Optional[Any] = ..., + create_using: Optional[Any] = ..., +): ... +def to_numpy_matrix( + G, + nodelist: Optional[Any] = ..., + dtype: Optional[Any] = ..., + order: Optional[Any] = ..., + multigraph_weight: Any = ..., + weight: str = ..., + nonedge: float = ..., +): ... +def from_numpy_matrix( + A, parallel_edges: bool = ..., create_using: Optional[Any] = ... +): ... +def to_numpy_recarray( + G, + nodelist: Optional[Any] = ..., + dtype: Optional[Any] = ..., + order: Optional[Any] = ..., +): ... +def to_scipy_sparse_matrix( + G, + nodelist: Optional[Any] = ..., + dtype: Optional[Any] = ..., + weight: str = ..., + format: str = ..., +): ... +def from_scipy_sparse_matrix( + A, + parallel_edges: bool = ..., + create_using: Optional[Any] = ..., + edge_attribute: str = ..., +): ... +def to_numpy_array( + G, + nodelist: Optional[Any] = ..., + dtype: Optional[Any] = ..., + order: Optional[Any] = ..., + multigraph_weight: Any = ..., + weight: str = ..., + nonedge: float = ..., +): ... +def from_numpy_array( + A, parallel_edges: bool = ..., create_using: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/drawing/__init__.pyi b/mypy-stubs/networkx/drawing/__init__.pyi similarity index 100% rename from typeshed/networkx/drawing/__init__.pyi rename to mypy-stubs/networkx/drawing/__init__.pyi diff --git a/mypy-stubs/networkx/drawing/layout.pyi b/mypy-stubs/networkx/drawing/layout.pyi new file mode 100644 index 000000000..63863ff00 --- /dev/null +++ b/mypy-stubs/networkx/drawing/layout.pyi @@ -0,0 +1,48 @@ +# Stubs for networkx.drawing.layout (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def random_layout( + G, center: Optional[Any] = ..., dim: int = ..., random_state: Optional[Any] = ... +): ... +def circular_layout( + G, scale: int = ..., center: Optional[Any] = ..., dim: int = ... +): ... +def shell_layout( + G, + nlist: Optional[Any] = ..., + scale: int = ..., + center: Optional[Any] = ..., + dim: int = ..., +): ... +def fruchterman_reingold_layout( + G, + k: Optional[Any] = ..., + pos: Optional[Any] = ..., + fixed: Optional[Any] = ..., + iterations: int = ..., + threshold: float = ..., + weight: str = ..., + scale: int = ..., + center: Optional[Any] = ..., + dim: int = ..., + random_state: Optional[Any] = ..., +): ... + +spring_layout = fruchterman_reingold_layout + +def kamada_kawai_layout( + G, + dist: Optional[Any] = ..., + pos: Optional[Any] = ..., + weight: str = ..., + scale: int = ..., + center: Optional[Any] = ..., + dim: int = ..., +): ... +def spectral_layout( + G, weight: str = ..., scale: int = ..., center: Optional[Any] = ..., dim: int = ... +): ... +def rescale_layout(pos, scale: int = ...): ... diff --git a/typeshed/networkx/drawing/nx_agraph.pyi b/mypy-stubs/networkx/drawing/nx_agraph.pyi similarity index 59% rename from typeshed/networkx/drawing/nx_agraph.pyi rename to mypy-stubs/networkx/drawing/nx_agraph.pyi index 806f2923a..2e9900dd1 100644 --- a/typeshed/networkx/drawing/nx_agraph.pyi +++ b/mypy-stubs/networkx/drawing/nx_agraph.pyi @@ -9,5 +9,14 @@ def to_agraph(N): ... def write_dot(G, path): ... def read_dot(path): ... def graphviz_layout(G, prog: str = ..., root: Optional[Any] = ..., args: str = ...): ... -def pygraphviz_layout(G, prog: str = ..., root: Optional[Any] = ..., args: str = ...): ... -def view_pygraphviz(G, edgelabel: Optional[Any] = ..., prog: str = ..., args: str = ..., suffix: str = ..., path: Optional[Any] = ...): ... +def pygraphviz_layout( + G, prog: str = ..., root: Optional[Any] = ..., args: str = ... +): ... +def view_pygraphviz( + G, + edgelabel: Optional[Any] = ..., + prog: str = ..., + args: str = ..., + suffix: str = ..., + path: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/drawing/nx_pydot.pyi b/mypy-stubs/networkx/drawing/nx_pydot.pyi similarity index 100% rename from typeshed/networkx/drawing/nx_pydot.pyi rename to mypy-stubs/networkx/drawing/nx_pydot.pyi diff --git a/mypy-stubs/networkx/drawing/nx_pylab.pyi b/mypy-stubs/networkx/drawing/nx_pylab.pyi new file mode 100644 index 000000000..72bf69163 --- /dev/null +++ b/mypy-stubs/networkx/drawing/nx_pylab.pyi @@ -0,0 +1,82 @@ +# Stubs for networkx.drawing.nx_pylab (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def draw(G, pos: Optional[Any] = ..., ax: Optional[Any] = ..., **kwds): ... +def draw_networkx( + G, pos: Optional[Any] = ..., arrows: bool = ..., with_labels: bool = ..., **kwds +): ... +def draw_networkx_nodes( + G, + pos, + nodelist: Optional[Any] = ..., + node_size: int = ..., + node_color: str = ..., + node_shape: str = ..., + alpha: float = ..., + cmap: Optional[Any] = ..., + vmin: Optional[Any] = ..., + vmax: Optional[Any] = ..., + ax: Optional[Any] = ..., + linewidths: Optional[Any] = ..., + edgecolors: Optional[Any] = ..., + label: Optional[Any] = ..., + **kwds +): ... +def draw_networkx_edges( + G, + pos, + edgelist: Optional[Any] = ..., + width: float = ..., + edge_color: str = ..., + style: str = ..., + alpha: float = ..., + arrowstyle: str = ..., + arrowsize: int = ..., + edge_cmap: Optional[Any] = ..., + edge_vmin: Optional[Any] = ..., + edge_vmax: Optional[Any] = ..., + ax: Optional[Any] = ..., + arrows: bool = ..., + label: Optional[Any] = ..., + node_size: int = ..., + nodelist: Optional[Any] = ..., + node_shape: str = ..., + **kwds +): ... +def draw_networkx_labels( + G, + pos, + labels: Optional[Any] = ..., + font_size: int = ..., + font_color: str = ..., + font_family: str = ..., + font_weight: str = ..., + alpha: float = ..., + bbox: Optional[Any] = ..., + ax: Optional[Any] = ..., + **kwds +): ... +def draw_networkx_edge_labels( + G, + pos, + edge_labels: Optional[Any] = ..., + label_pos: float = ..., + font_size: int = ..., + font_color: str = ..., + font_family: str = ..., + font_weight: str = ..., + alpha: float = ..., + bbox: Optional[Any] = ..., + ax: Optional[Any] = ..., + rotate: bool = ..., + **kwds +): ... +def draw_circular(G, **kwargs): ... +def draw_kamada_kawai(G, **kwargs): ... +def draw_random(G, **kwargs): ... +def draw_spectral(G, **kwargs): ... +def draw_spring(G, **kwargs): ... +def draw_shell(G, **kwargs): ... diff --git a/typeshed/networkx/exception.pyi b/mypy-stubs/networkx/exception.pyi similarity index 100% rename from typeshed/networkx/exception.pyi rename to mypy-stubs/networkx/exception.pyi diff --git a/typeshed/networkx/generators/atlas.pyi b/mypy-stubs/networkx/generators/atlas.pyi similarity index 100% rename from typeshed/networkx/generators/atlas.pyi rename to mypy-stubs/networkx/generators/atlas.pyi diff --git a/typeshed/networkx/generators/classic.pyi b/mypy-stubs/networkx/generators/classic.pyi similarity index 100% rename from typeshed/networkx/generators/classic.pyi rename to mypy-stubs/networkx/generators/classic.pyi diff --git a/typeshed/networkx/generators/community.pyi b/mypy-stubs/networkx/generators/community.pyi similarity index 53% rename from typeshed/networkx/generators/community.pyi rename to mypy-stubs/networkx/generators/community.pyi index 87676ee3c..71dd2e603 100644 --- a/typeshed/networkx/generators/community.pyi +++ b/mypy-stubs/networkx/generators/community.pyi @@ -7,8 +7,14 @@ from typing import Any, Optional def caveman_graph(l, k): ... def connected_caveman_graph(l, k): ... def relaxed_caveman_graph(l, k, p, seed: Optional[Any] = ...): ... -def random_partition_graph(sizes, p_in, p_out, seed: Optional[Any] = ..., directed: bool = ...): ... -def planted_partition_graph(l, k, p_in, p_out, seed: Optional[Any] = ..., directed: bool = ...): ... -def gaussian_random_partition_graph(n, s, v, p_in, p_out, directed: bool = ..., seed: Optional[Any] = ...): ... +def random_partition_graph( + sizes, p_in, p_out, seed: Optional[Any] = ..., directed: bool = ... +): ... +def planted_partition_graph( + l, k, p_in, p_out, seed: Optional[Any] = ..., directed: bool = ... +): ... +def gaussian_random_partition_graph( + n, s, v, p_in, p_out, directed: bool = ..., seed: Optional[Any] = ... +): ... def ring_of_cliques(num_cliques, clique_size): ... def windmill_graph(n, k): ... diff --git a/typeshed/networkx/generators/degree_seq.pyi b/mypy-stubs/networkx/generators/degree_seq.pyi similarity index 64% rename from typeshed/networkx/generators/degree_seq.pyi rename to mypy-stubs/networkx/generators/degree_seq.pyi index c6a316a28..85d846470 100644 --- a/typeshed/networkx/generators/degree_seq.pyi +++ b/mypy-stubs/networkx/generators/degree_seq.pyi @@ -4,13 +4,24 @@ from typing import Any, Optional -def configuration_model(deg_sequence, create_using: Optional[Any] = ..., seed: Optional[Any] = ...): ... -def directed_configuration_model(in_degree_sequence, out_degree_sequence, create_using: Optional[Any] = ..., seed: Optional[Any] = ...): ... +def configuration_model( + deg_sequence, create_using: Optional[Any] = ..., seed: Optional[Any] = ... +): ... +def directed_configuration_model( + in_degree_sequence, + out_degree_sequence, + create_using: Optional[Any] = ..., + seed: Optional[Any] = ..., +): ... def expected_degree_graph(w, seed: Optional[Any] = ..., selfloops: bool = ...): ... def havel_hakimi_graph(deg_sequence, create_using: Optional[Any] = ...): ... -def directed_havel_hakimi_graph(in_deg_sequence, out_deg_sequence, create_using: Optional[Any] = ...): ... +def directed_havel_hakimi_graph( + in_deg_sequence, out_deg_sequence, create_using: Optional[Any] = ... +): ... def degree_sequence_tree(deg_sequence, create_using: Optional[Any] = ...): ... -def random_degree_sequence_graph(sequence, seed: Optional[Any] = ..., tries: int = ...): ... +def random_degree_sequence_graph( + sequence, seed: Optional[Any] = ..., tries: int = ... +): ... class DegreeSequenceRandomGraph: degree: Any = ... diff --git a/mypy-stubs/networkx/generators/directed.pyi b/mypy-stubs/networkx/generators/directed.pyi new file mode 100644 index 000000000..41015ef79 --- /dev/null +++ b/mypy-stubs/networkx/generators/directed.pyi @@ -0,0 +1,27 @@ +# Stubs for networkx.generators.directed (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def gn_graph( + n, + kernel: Optional[Any] = ..., + create_using: Optional[Any] = ..., + seed: Optional[Any] = ..., +): ... +def gnr_graph(n, p, create_using: Optional[Any] = ..., seed: Optional[Any] = ...): ... +def gnc_graph(n, create_using: Optional[Any] = ..., seed: Optional[Any] = ...): ... +def scale_free_graph( + n, + alpha: float = ..., + beta: float = ..., + gamma: float = ..., + delta_in: float = ..., + delta_out: int = ..., + create_using: Optional[Any] = ..., + seed: Optional[Any] = ..., +): ... +def random_k_out_graph( + n, k, alpha, self_loops: bool = ..., seed: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/generators/duplication.pyi b/mypy-stubs/networkx/generators/duplication.pyi similarity index 100% rename from typeshed/networkx/generators/duplication.pyi rename to mypy-stubs/networkx/generators/duplication.pyi diff --git a/typeshed/networkx/generators/ego.pyi b/mypy-stubs/networkx/generators/ego.pyi similarity index 52% rename from typeshed/networkx/generators/ego.pyi rename to mypy-stubs/networkx/generators/ego.pyi index 7999ae0a8..3322b0848 100644 --- a/typeshed/networkx/generators/ego.pyi +++ b/mypy-stubs/networkx/generators/ego.pyi @@ -4,4 +4,11 @@ from typing import Any, Optional -def ego_graph(G, n, radius: int = ..., center: bool = ..., undirected: bool = ..., distance: Optional[Any] = ...): ... +def ego_graph( + G, + n, + radius: int = ..., + center: bool = ..., + undirected: bool = ..., + distance: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/generators/expanders.pyi b/mypy-stubs/networkx/generators/expanders.pyi similarity index 100% rename from typeshed/networkx/generators/expanders.pyi rename to mypy-stubs/networkx/generators/expanders.pyi diff --git a/mypy-stubs/networkx/generators/geometric.pyi b/mypy-stubs/networkx/generators/geometric.pyi new file mode 100644 index 000000000..051b8e5be --- /dev/null +++ b/mypy-stubs/networkx/generators/geometric.pyi @@ -0,0 +1,51 @@ +# Stubs for networkx.generators.geometric (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def random_geometric_graph( + n, radius, dim: int = ..., pos: Optional[Any] = ..., p: int = ... +): ... +def soft_random_geometric_graph( + n, + radius, + dim: int = ..., + pos: Optional[Any] = ..., + p: int = ..., + p_dist: Optional[Any] = ..., +): ... +def geographical_threshold_graph( + n, + theta, + dim: int = ..., + pos: Optional[Any] = ..., + weight: Optional[Any] = ..., + metric: Optional[Any] = ..., + p_dist: Optional[Any] = ..., +): ... +def waxman_graph( + n, + beta: float = ..., + alpha: float = ..., + L: Optional[Any] = ..., + domain: Any = ..., + metric: Optional[Any] = ..., +): ... +def navigable_small_world_graph( + n, + p: int = ..., + q: int = ..., + r: int = ..., + dim: int = ..., + seed: Optional[Any] = ..., +): ... +def thresholded_random_geometric_graph( + n, + radius, + theta, + dim: int = ..., + pos: Optional[Any] = ..., + weight: Optional[Any] = ..., + p: int = ..., +): ... diff --git a/typeshed/networkx/generators/intersection.pyi b/mypy-stubs/networkx/generators/intersection.pyi similarity index 100% rename from typeshed/networkx/generators/intersection.pyi rename to mypy-stubs/networkx/generators/intersection.pyi diff --git a/typeshed/networkx/generators/joint_degree_seq.pyi b/mypy-stubs/networkx/generators/joint_degree_seq.pyi similarity index 100% rename from typeshed/networkx/generators/joint_degree_seq.pyi rename to mypy-stubs/networkx/generators/joint_degree_seq.pyi diff --git a/typeshed/networkx/generators/lattice.pyi b/mypy-stubs/networkx/generators/lattice.pyi similarity index 52% rename from typeshed/networkx/generators/lattice.pyi rename to mypy-stubs/networkx/generators/lattice.pyi index d426e6bb3..25d726a95 100644 --- a/typeshed/networkx/generators/lattice.pyi +++ b/mypy-stubs/networkx/generators/lattice.pyi @@ -7,5 +7,17 @@ from typing import Any, Optional def grid_2d_graph(m, n, periodic: bool = ..., create_using: Optional[Any] = ...): ... def grid_graph(dim, periodic: bool = ...): ... def hypercube_graph(n): ... -def triangular_lattice_graph(m, n, periodic: bool = ..., with_positions: bool = ..., create_using: Optional[Any] = ...): ... -def hexagonal_lattice_graph(m, n, periodic: bool = ..., with_positions: bool = ..., create_using: Optional[Any] = ...): ... +def triangular_lattice_graph( + m, + n, + periodic: bool = ..., + with_positions: bool = ..., + create_using: Optional[Any] = ..., +): ... +def hexagonal_lattice_graph( + m, + n, + periodic: bool = ..., + with_positions: bool = ..., + create_using: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/generators/line.pyi b/mypy-stubs/networkx/generators/line.pyi similarity index 99% rename from typeshed/networkx/generators/line.pyi rename to mypy-stubs/networkx/generators/line.pyi index 394858581..339d8682c 100644 --- a/typeshed/networkx/generators/line.pyi +++ b/mypy-stubs/networkx/generators/line.pyi @@ -2,8 +2,9 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from networkx.utils.decorators import * from typing import Any, Optional +from networkx.utils.decorators import * + def line_graph(G, create_using: Optional[Any] = ...): ... def inverse_line_graph(G): ... diff --git a/typeshed/networkx/generators/mycielski.pyi b/mypy-stubs/networkx/generators/mycielski.pyi similarity index 100% rename from typeshed/networkx/generators/mycielski.pyi rename to mypy-stubs/networkx/generators/mycielski.pyi diff --git a/typeshed/networkx/generators/nonisomorphic_trees.pyi b/mypy-stubs/networkx/generators/nonisomorphic_trees.pyi similarity index 100% rename from typeshed/networkx/generators/nonisomorphic_trees.pyi rename to mypy-stubs/networkx/generators/nonisomorphic_trees.pyi diff --git a/typeshed/networkx/generators/random_clustered.pyi b/mypy-stubs/networkx/generators/random_clustered.pyi similarity index 58% rename from typeshed/networkx/generators/random_clustered.pyi rename to mypy-stubs/networkx/generators/random_clustered.pyi index ec9bab32e..ae7bf5c3d 100644 --- a/typeshed/networkx/generators/random_clustered.pyi +++ b/mypy-stubs/networkx/generators/random_clustered.pyi @@ -4,4 +4,6 @@ from typing import Any, Optional -def random_clustered_graph(joint_degree_sequence, create_using: Optional[Any] = ..., seed: Optional[Any] = ...): ... +def random_clustered_graph( + joint_degree_sequence, create_using: Optional[Any] = ..., seed: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/generators/random_graphs.pyi b/mypy-stubs/networkx/generators/random_graphs.pyi similarity index 71% rename from typeshed/networkx/generators/random_graphs.pyi rename to mypy-stubs/networkx/generators/random_graphs.pyi index 067c54c85..16fc313df 100644 --- a/typeshed/networkx/generators/random_graphs.pyi +++ b/mypy-stubs/networkx/generators/random_graphs.pyi @@ -6,6 +6,7 @@ from typing import Any, Optional def fast_gnp_random_graph(n, p, seed: Optional[Any] = ..., directed: bool = ...): ... def gnp_random_graph(n, p, seed: Optional[Any] = ..., directed: bool = ...): ... + binomial_graph = gnp_random_graph erdos_renyi_graph = gnp_random_graph @@ -13,13 +14,21 @@ def dense_gnm_random_graph(n, m, seed: Optional[Any] = ...): ... def gnm_random_graph(n, m, seed: Optional[Any] = ..., directed: bool = ...): ... def newman_watts_strogatz_graph(n, k, p, seed: Optional[Any] = ...): ... def watts_strogatz_graph(n, k, p, seed: Optional[Any] = ...): ... -def connected_watts_strogatz_graph(n, k, p, tries: int = ..., seed: Optional[Any] = ...): ... +def connected_watts_strogatz_graph( + n, k, p, tries: int = ..., seed: Optional[Any] = ... +): ... def random_regular_graph(d, n, seed: Optional[Any] = ...): ... def barabasi_albert_graph(n, m, seed: Optional[Any] = ...): ... def extended_barabasi_albert_graph(n, m, p, q, seed: Optional[Any] = ...): ... def powerlaw_cluster_graph(n, m, p, seed: Optional[Any] = ...): ... def random_lobster(n, p1, p2, seed: Optional[Any] = ...): ... def random_shell_graph(constructor, seed: Optional[Any] = ...): ... -def random_powerlaw_tree(n, gamma: int = ..., seed: Optional[Any] = ..., tries: int = ...): ... -def random_powerlaw_tree_sequence(n, gamma: int = ..., seed: Optional[Any] = ..., tries: int = ...): ... -def random_kernel_graph(n, kernel_integral, kernel_root: Optional[Any] = ..., seed: Optional[Any] = ...): ... +def random_powerlaw_tree( + n, gamma: int = ..., seed: Optional[Any] = ..., tries: int = ... +): ... +def random_powerlaw_tree_sequence( + n, gamma: int = ..., seed: Optional[Any] = ..., tries: int = ... +): ... +def random_kernel_graph( + n, kernel_integral, kernel_root: Optional[Any] = ..., seed: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/generators/small.pyi b/mypy-stubs/networkx/generators/small.pyi similarity index 100% rename from typeshed/networkx/generators/small.pyi rename to mypy-stubs/networkx/generators/small.pyi diff --git a/typeshed/networkx/generators/social.pyi b/mypy-stubs/networkx/generators/social.pyi similarity index 100% rename from typeshed/networkx/generators/social.pyi rename to mypy-stubs/networkx/generators/social.pyi diff --git a/typeshed/networkx/generators/stochastic.pyi b/mypy-stubs/networkx/generators/stochastic.pyi similarity index 100% rename from typeshed/networkx/generators/stochastic.pyi rename to mypy-stubs/networkx/generators/stochastic.pyi diff --git a/typeshed/networkx/generators/trees.pyi b/mypy-stubs/networkx/generators/trees.pyi similarity index 100% rename from typeshed/networkx/generators/trees.pyi rename to mypy-stubs/networkx/generators/trees.pyi diff --git a/typeshed/networkx/generators/triads.pyi b/mypy-stubs/networkx/generators/triads.pyi similarity index 100% rename from typeshed/networkx/generators/triads.pyi rename to mypy-stubs/networkx/generators/triads.pyi diff --git a/typeshed/networkx/linalg/__init__.pyi b/mypy-stubs/networkx/linalg/__init__.pyi similarity index 100% rename from typeshed/networkx/linalg/__init__.pyi rename to mypy-stubs/networkx/linalg/__init__.pyi index 5ef948643..f0e2c3064 100644 --- a/typeshed/networkx/linalg/__init__.pyi +++ b/mypy-stubs/networkx/linalg/__init__.pyi @@ -2,9 +2,9 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. +from networkx.linalg.algebraicconnectivity import * from networkx.linalg.attrmatrix import * -from networkx.linalg.spectrum import * from networkx.linalg.graphmatrix import * from networkx.linalg.laplacianmatrix import * -from networkx.linalg.algebraicconnectivity import * from networkx.linalg.modularitymatrix import * +from networkx.linalg.spectrum import * diff --git a/typeshed/networkx/linalg/algebraicconnectivity.pyi b/mypy-stubs/networkx/linalg/algebraicconnectivity.pyi similarity index 60% rename from typeshed/networkx/linalg/algebraicconnectivity.pyi rename to mypy-stubs/networkx/linalg/algebraicconnectivity.pyi index 974280bd7..12b5a7ffa 100644 --- a/typeshed/networkx/linalg/algebraicconnectivity.pyi +++ b/mypy-stubs/networkx/linalg/algebraicconnectivity.pyi @@ -16,7 +16,13 @@ class _LUSolver: def __init__(self, A) -> None: ... def solve(self, B, tol: Optional[Any] = ...): ... -def algebraic_connectivity(G, weight: str = ..., normalized: bool = ..., tol: float = ..., method: str = ...): ... -def fiedler_vector(G, weight: str = ..., normalized: bool = ..., tol: float = ..., method: str = ...): ... -def spectral_ordering(G, weight: str = ..., normalized: bool = ..., tol: float = ..., method: str = ...): ... +def algebraic_connectivity( + G, weight: str = ..., normalized: bool = ..., tol: float = ..., method: str = ... +): ... +def fiedler_vector( + G, weight: str = ..., normalized: bool = ..., tol: float = ..., method: str = ... +): ... +def spectral_ordering( + G, weight: str = ..., normalized: bool = ..., tol: float = ..., method: str = ... +): ... def setup_module(module): ... diff --git a/mypy-stubs/networkx/linalg/attrmatrix.pyi b/mypy-stubs/networkx/linalg/attrmatrix.pyi new file mode 100644 index 000000000..e4a404015 --- /dev/null +++ b/mypy-stubs/networkx/linalg/attrmatrix.pyi @@ -0,0 +1,23 @@ +# Stubs for networkx.linalg.attrmatrix (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def attr_matrix( + G, + edge_attr: Optional[Any] = ..., + node_attr: Optional[Any] = ..., + normalized: bool = ..., + rc_order: Optional[Any] = ..., + dtype: Optional[Any] = ..., + order: Optional[Any] = ..., +): ... +def attr_sparse_matrix( + G, + edge_attr: Optional[Any] = ..., + node_attr: Optional[Any] = ..., + normalized: bool = ..., + rc_order: Optional[Any] = ..., + dtype: Optional[Any] = ..., +): ... diff --git a/typeshed/networkx/linalg/graphmatrix.pyi b/mypy-stubs/networkx/linalg/graphmatrix.pyi similarity index 62% rename from typeshed/networkx/linalg/graphmatrix.pyi rename to mypy-stubs/networkx/linalg/graphmatrix.pyi index 0b30f3602..2081fb906 100644 --- a/typeshed/networkx/linalg/graphmatrix.pyi +++ b/mypy-stubs/networkx/linalg/graphmatrix.pyi @@ -4,6 +4,13 @@ from typing import Any, Optional -def incidence_matrix(G, nodelist: Optional[Any] = ..., edgelist: Optional[Any] = ..., oriented: bool = ..., weight: Optional[Any] = ...): ... +def incidence_matrix( + G, + nodelist: Optional[Any] = ..., + edgelist: Optional[Any] = ..., + oriented: bool = ..., + weight: Optional[Any] = ..., +): ... def adjacency_matrix(G, nodelist: Optional[Any] = ..., weight: str = ...): ... + adj_matrix = adjacency_matrix diff --git a/mypy-stubs/networkx/linalg/laplacianmatrix.pyi b/mypy-stubs/networkx/linalg/laplacianmatrix.pyi new file mode 100644 index 000000000..70b758f3b --- /dev/null +++ b/mypy-stubs/networkx/linalg/laplacianmatrix.pyi @@ -0,0 +1,17 @@ +# Stubs for networkx.linalg.laplacianmatrix (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def laplacian_matrix(G, nodelist: Optional[Any] = ..., weight: str = ...): ... +def normalized_laplacian_matrix( + G, nodelist: Optional[Any] = ..., weight: str = ... +): ... +def directed_laplacian_matrix( + G, + nodelist: Optional[Any] = ..., + weight: str = ..., + walk_type: Optional[Any] = ..., + alpha: float = ..., +): ... diff --git a/mypy-stubs/networkx/linalg/modularitymatrix.pyi b/mypy-stubs/networkx/linalg/modularitymatrix.pyi new file mode 100644 index 000000000..5e91a0993 --- /dev/null +++ b/mypy-stubs/networkx/linalg/modularitymatrix.pyi @@ -0,0 +1,12 @@ +# Stubs for networkx.linalg.modularitymatrix (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def modularity_matrix( + G, nodelist: Optional[Any] = ..., weight: Optional[Any] = ... +): ... +def directed_modularity_matrix( + G, nodelist: Optional[Any] = ..., weight: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/linalg/spectrum.pyi b/mypy-stubs/networkx/linalg/spectrum.pyi similarity index 100% rename from typeshed/networkx/linalg/spectrum.pyi rename to mypy-stubs/networkx/linalg/spectrum.pyi diff --git a/typeshed/networkx/readwrite/__init__.pyi b/mypy-stubs/networkx/readwrite/__init__.pyi similarity index 100% rename from typeshed/networkx/readwrite/__init__.pyi rename to mypy-stubs/networkx/readwrite/__init__.pyi index 177f56a9f..d16702b25 100644 --- a/typeshed/networkx/readwrite/__init__.pyi +++ b/mypy-stubs/networkx/readwrite/__init__.pyi @@ -3,16 +3,16 @@ # NOTE: This dynamically typed stub was automatically generated by stubgen. from networkx.readwrite.adjlist import * -from networkx.readwrite.multiline_adjlist import * from networkx.readwrite.edgelist import * +from networkx.readwrite.gexf import * +from networkx.readwrite.gml import * from networkx.readwrite.gpickle import * -from networkx.readwrite.pajek import * -from networkx.readwrite.leda import * -from networkx.readwrite.sparse6 import * from networkx.readwrite.graph6 import * -from networkx.readwrite.nx_yaml import * -from networkx.readwrite.gml import * from networkx.readwrite.graphml import * -from networkx.readwrite.gexf import * -from networkx.readwrite.nx_shp import * from networkx.readwrite.json_graph import * +from networkx.readwrite.leda import * +from networkx.readwrite.multiline_adjlist import * +from networkx.readwrite.nx_shp import * +from networkx.readwrite.nx_yaml import * +from networkx.readwrite.pajek import * +from networkx.readwrite.sparse6 import * diff --git a/mypy-stubs/networkx/readwrite/adjlist.pyi b/mypy-stubs/networkx/readwrite/adjlist.pyi new file mode 100644 index 000000000..eb9cb374e --- /dev/null +++ b/mypy-stubs/networkx/readwrite/adjlist.pyi @@ -0,0 +1,25 @@ +# Stubs for networkx.readwrite.adjlist (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def generate_adjlist(G, delimiter: str = ...): ... +def write_adjlist( + G, path, comments: str = ..., delimiter: str = ..., encoding: str = ... +): ... +def parse_adjlist( + lines, + comments: str = ..., + delimiter: Optional[Any] = ..., + create_using: Optional[Any] = ..., + nodetype: Optional[Any] = ..., +): ... +def read_adjlist( + path, + comments: str = ..., + delimiter: Optional[Any] = ..., + create_using: Optional[Any] = ..., + nodetype: Optional[Any] = ..., + encoding: str = ..., +): ... diff --git a/mypy-stubs/networkx/readwrite/edgelist.pyi b/mypy-stubs/networkx/readwrite/edgelist.pyi new file mode 100644 index 000000000..2b50c0dd2 --- /dev/null +++ b/mypy-stubs/networkx/readwrite/edgelist.pyi @@ -0,0 +1,44 @@ +# Stubs for networkx.readwrite.edgelist (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def generate_edgelist(G, delimiter: str = ..., data: bool = ...): ... +def write_edgelist( + G, + path, + comments: str = ..., + delimiter: str = ..., + data: bool = ..., + encoding: str = ..., +): ... +def parse_edgelist( + lines, + comments: str = ..., + delimiter: Optional[Any] = ..., + create_using: Optional[Any] = ..., + nodetype: Optional[Any] = ..., + data: bool = ..., +): ... +def read_edgelist( + path, + comments: str = ..., + delimiter: Optional[Any] = ..., + create_using: Optional[Any] = ..., + nodetype: Optional[Any] = ..., + data: bool = ..., + edgetype: Optional[Any] = ..., + encoding: str = ..., +): ... +def write_weighted_edgelist( + G, path, comments: str = ..., delimiter: str = ..., encoding: str = ... +): ... +def read_weighted_edgelist( + path, + comments: str = ..., + delimiter: Optional[Any] = ..., + create_using: Optional[Any] = ..., + nodetype: Optional[Any] = ..., + encoding: str = ..., +): ... diff --git a/typeshed/networkx/readwrite/gexf.pyi b/mypy-stubs/networkx/readwrite/gexf.pyi similarity index 82% rename from typeshed/networkx/readwrite/gexf.pyi rename to mypy-stubs/networkx/readwrite/gexf.pyi index eaffccbac..ee02cb295 100644 --- a/typeshed/networkx/readwrite/gexf.pyi +++ b/mypy-stubs/networkx/readwrite/gexf.pyi @@ -4,9 +4,15 @@ from typing import Any, Optional -def write_gexf(G, path, encoding: str = ..., prettyprint: bool = ..., version: str = ...): ... -def generate_gexf(G, encoding: str = ..., prettyprint: bool = ..., version: str = ...): ... -def read_gexf(path, node_type: Optional[Any] = ..., relabel: bool = ..., version: str = ...): ... +def write_gexf( + G, path, encoding: str = ..., prettyprint: bool = ..., version: str = ... +): ... +def generate_gexf( + G, encoding: str = ..., prettyprint: bool = ..., version: str = ... +): ... +def read_gexf( + path, node_type: Optional[Any] = ..., relabel: bool = ..., version: str = ... +): ... class GEXF: versions: Any = ... @@ -31,7 +37,13 @@ class GEXFWriter(GEXF): edge_id: Any = ... attr_id: Any = ... attr: Any = ... - def __init__(self, graph: Optional[Any] = ..., encoding: str = ..., prettyprint: bool = ..., version: str = ...) -> None: ... + def __init__( + self, + graph: Optional[Any] = ..., + encoding: str = ..., + prettyprint: bool = ..., + version: str = ..., + ) -> None: ... graph_element: Any = ... def add_graph(self, G): ... def add_meta(self, G, graph_element): ... diff --git a/typeshed/networkx/readwrite/gml.pyi b/mypy-stubs/networkx/readwrite/gml.pyi similarity index 100% rename from typeshed/networkx/readwrite/gml.pyi rename to mypy-stubs/networkx/readwrite/gml.pyi diff --git a/typeshed/networkx/readwrite/gpickle.pyi b/mypy-stubs/networkx/readwrite/gpickle.pyi similarity index 100% rename from typeshed/networkx/readwrite/gpickle.pyi rename to mypy-stubs/networkx/readwrite/gpickle.pyi diff --git a/typeshed/networkx/readwrite/graph6.pyi b/mypy-stubs/networkx/readwrite/graph6.pyi similarity index 100% rename from typeshed/networkx/readwrite/graph6.pyi rename to mypy-stubs/networkx/readwrite/graph6.pyi diff --git a/typeshed/networkx/readwrite/graphml.pyi b/mypy-stubs/networkx/readwrite/graphml.pyi similarity index 75% rename from typeshed/networkx/readwrite/graphml.pyi rename to mypy-stubs/networkx/readwrite/graphml.pyi index 267c95a9d..b227aa864 100644 --- a/typeshed/networkx/readwrite/graphml.pyi +++ b/mypy-stubs/networkx/readwrite/graphml.pyi @@ -4,8 +4,20 @@ from typing import Any, Optional -def write_graphml_xml(G, path, encoding: str = ..., prettyprint: bool = ..., infer_numeric_types: bool = ...): ... -def write_graphml_lxml(G, path, encoding: str = ..., prettyprint: bool = ..., infer_numeric_types: bool = ...): ... +def write_graphml_xml( + G, + path, + encoding: str = ..., + prettyprint: bool = ..., + infer_numeric_types: bool = ..., +): ... +def write_graphml_lxml( + G, + path, + encoding: str = ..., + prettyprint: bool = ..., + infer_numeric_types: bool = ..., +): ... def generate_graphml(G, encoding: str = ..., prettyprint: bool = ...): ... def read_graphml(path, node_type: Any = ..., edge_key_type: Any = ...): ... def parse_graphml(graphml_string, node_type: Any = ...): ... @@ -31,10 +43,18 @@ class GraphMLWriter(GraphML): keys: Any = ... attributes: Any = ... attribute_types: Any = ... - def __init__(self, graph: Optional[Any] = ..., encoding: str = ..., prettyprint: bool = ..., infer_numeric_types: bool = ...) -> None: ... + def __init__( + self, + graph: Optional[Any] = ..., + encoding: str = ..., + prettyprint: bool = ..., + infer_numeric_types: bool = ..., + ) -> None: ... def attr_type(self, name, scope, value): ... def get_key(self, name, attr_type, scope, default): ... - def add_data(self, name, element_type, value, scope: str = ..., default: Optional[Any] = ...): ... + def add_data( + self, name, element_type, value, scope: str = ..., default: Optional[Any] = ... + ): ... def add_attributes(self, scope, xml_obj, data, default): ... def add_nodes(self, G, graph_element): ... def add_edges(self, G, graph_element): ... @@ -55,10 +75,18 @@ class GraphMLWriterLxml(GraphMLWriter): xml: Any = ... keys: Any = ... attribute_types: Any = ... - def __init__(self, path, graph: Optional[Any] = ..., encoding: str = ..., prettyprint: bool = ..., infer_numeric_types: bool = ...) -> None: ... + def __init__( + self, + path, + graph: Optional[Any] = ..., + encoding: str = ..., + prettyprint: bool = ..., + infer_numeric_types: bool = ..., + ) -> None: ... def add_graph_element(self, G): ... def add_attributes(self, scope, xml_obj, data, default): ... def dump(self): ... + write_graphml = write_graphml_xml write_graphml = write_graphml_lxml diff --git a/typeshed/networkx/readwrite/json_graph/__init__.pyi b/mypy-stubs/networkx/readwrite/json_graph/__init__.pyi similarity index 100% rename from typeshed/networkx/readwrite/json_graph/__init__.pyi rename to mypy-stubs/networkx/readwrite/json_graph/__init__.pyi index f10bb040b..ddb956c03 100644 --- a/typeshed/networkx/readwrite/json_graph/__init__.pyi +++ b/mypy-stubs/networkx/readwrite/json_graph/__init__.pyi @@ -2,8 +2,8 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from networkx.readwrite.json_graph.node_link import * from networkx.readwrite.json_graph.adjacency import * -from networkx.readwrite.json_graph.tree import * -from networkx.readwrite.json_graph.jit import * from networkx.readwrite.json_graph.cytoscape import * +from networkx.readwrite.json_graph.jit import * +from networkx.readwrite.json_graph.node_link import * +from networkx.readwrite.json_graph.tree import * diff --git a/typeshed/networkx/readwrite/json_graph/adjacency.pyi b/mypy-stubs/networkx/readwrite/json_graph/adjacency.pyi similarity index 67% rename from typeshed/networkx/readwrite/json_graph/adjacency.pyi rename to mypy-stubs/networkx/readwrite/json_graph/adjacency.pyi index c540eb8a3..82a05102e 100644 --- a/typeshed/networkx/readwrite/json_graph/adjacency.pyi +++ b/mypy-stubs/networkx/readwrite/json_graph/adjacency.pyi @@ -5,4 +5,6 @@ from typing import Any def adjacency_data(G, attrs: Any = ...): ... -def adjacency_graph(data, directed: bool = ..., multigraph: bool = ..., attrs: Any = ...): ... +def adjacency_graph( + data, directed: bool = ..., multigraph: bool = ..., attrs: Any = ... +): ... diff --git a/typeshed/networkx/readwrite/json_graph/cytoscape.pyi b/mypy-stubs/networkx/readwrite/json_graph/cytoscape.pyi similarity index 100% rename from typeshed/networkx/readwrite/json_graph/cytoscape.pyi rename to mypy-stubs/networkx/readwrite/json_graph/cytoscape.pyi diff --git a/typeshed/networkx/readwrite/json_graph/jit.pyi b/mypy-stubs/networkx/readwrite/json_graph/jit.pyi similarity index 100% rename from typeshed/networkx/readwrite/json_graph/jit.pyi rename to mypy-stubs/networkx/readwrite/json_graph/jit.pyi diff --git a/typeshed/networkx/readwrite/json_graph/node_link.pyi b/mypy-stubs/networkx/readwrite/json_graph/node_link.pyi similarity index 67% rename from typeshed/networkx/readwrite/json_graph/node_link.pyi rename to mypy-stubs/networkx/readwrite/json_graph/node_link.pyi index eb183509e..4024f94c3 100644 --- a/typeshed/networkx/readwrite/json_graph/node_link.pyi +++ b/mypy-stubs/networkx/readwrite/json_graph/node_link.pyi @@ -5,4 +5,6 @@ from typing import Any, Optional def node_link_data(G, attrs: Optional[Any] = ...): ... -def node_link_graph(data, directed: bool = ..., multigraph: bool = ..., attrs: Optional[Any] = ...): ... +def node_link_graph( + data, directed: bool = ..., multigraph: bool = ..., attrs: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/readwrite/json_graph/tree.pyi b/mypy-stubs/networkx/readwrite/json_graph/tree.pyi similarity index 100% rename from typeshed/networkx/readwrite/json_graph/tree.pyi rename to mypy-stubs/networkx/readwrite/json_graph/tree.pyi diff --git a/typeshed/networkx/readwrite/leda.pyi b/mypy-stubs/networkx/readwrite/leda.pyi similarity index 100% rename from typeshed/networkx/readwrite/leda.pyi rename to mypy-stubs/networkx/readwrite/leda.pyi diff --git a/mypy-stubs/networkx/readwrite/multiline_adjlist.pyi b/mypy-stubs/networkx/readwrite/multiline_adjlist.pyi new file mode 100644 index 000000000..c228feb2a --- /dev/null +++ b/mypy-stubs/networkx/readwrite/multiline_adjlist.pyi @@ -0,0 +1,27 @@ +# Stubs for networkx.readwrite.multiline_adjlist (Python 3.5) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def generate_multiline_adjlist(G, delimiter: str = ...): ... +def write_multiline_adjlist( + G, path, delimiter: str = ..., comments: str = ..., encoding: str = ... +): ... +def parse_multiline_adjlist( + lines, + comments: str = ..., + delimiter: Optional[Any] = ..., + create_using: Optional[Any] = ..., + nodetype: Optional[Any] = ..., + edgetype: Optional[Any] = ..., +): ... +def read_multiline_adjlist( + path, + comments: str = ..., + delimiter: Optional[Any] = ..., + create_using: Optional[Any] = ..., + nodetype: Optional[Any] = ..., + edgetype: Optional[Any] = ..., + encoding: str = ..., +): ... diff --git a/typeshed/networkx/readwrite/nx_shp.pyi b/mypy-stubs/networkx/readwrite/nx_shp.pyi similarity index 62% rename from typeshed/networkx/readwrite/nx_shp.pyi rename to mypy-stubs/networkx/readwrite/nx_shp.pyi index c2d9deb67..a9109b51c 100644 --- a/typeshed/networkx/readwrite/nx_shp.pyi +++ b/mypy-stubs/networkx/readwrite/nx_shp.pyi @@ -2,5 +2,7 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -def read_shp(path, simplify: bool = ..., geom_attrs: bool = ..., strict: bool = ...): ... +def read_shp( + path, simplify: bool = ..., geom_attrs: bool = ..., strict: bool = ... +): ... def write_shp(G, outdir): ... diff --git a/typeshed/networkx/readwrite/nx_yaml.pyi b/mypy-stubs/networkx/readwrite/nx_yaml.pyi similarity index 100% rename from typeshed/networkx/readwrite/nx_yaml.pyi rename to mypy-stubs/networkx/readwrite/nx_yaml.pyi diff --git a/typeshed/networkx/readwrite/p2g.pyi b/mypy-stubs/networkx/readwrite/p2g.pyi similarity index 100% rename from typeshed/networkx/readwrite/p2g.pyi rename to mypy-stubs/networkx/readwrite/p2g.pyi diff --git a/typeshed/networkx/readwrite/pajek.pyi b/mypy-stubs/networkx/readwrite/pajek.pyi similarity index 100% rename from typeshed/networkx/readwrite/pajek.pyi rename to mypy-stubs/networkx/readwrite/pajek.pyi diff --git a/typeshed/networkx/readwrite/sparse6.pyi b/mypy-stubs/networkx/readwrite/sparse6.pyi similarity index 100% rename from typeshed/networkx/readwrite/sparse6.pyi rename to mypy-stubs/networkx/readwrite/sparse6.pyi diff --git a/typeshed/networkx/relabel.pyi b/mypy-stubs/networkx/relabel.pyi similarity index 60% rename from typeshed/networkx/relabel.pyi rename to mypy-stubs/networkx/relabel.pyi index 6b43fd996..eeb7ebf13 100644 --- a/typeshed/networkx/relabel.pyi +++ b/mypy-stubs/networkx/relabel.pyi @@ -5,4 +5,6 @@ from typing import Any, Optional def relabel_nodes(G, mapping, copy: bool = ...): ... -def convert_node_labels_to_integers(G, first_label: int = ..., ordering: str = ..., label_attribute: Optional[Any] = ...): ... +def convert_node_labels_to_integers( + G, first_label: int = ..., ordering: str = ..., label_attribute: Optional[Any] = ... +): ... diff --git a/typeshed/networkx/release.pyi b/mypy-stubs/networkx/release.pyi similarity index 100% rename from typeshed/networkx/release.pyi rename to mypy-stubs/networkx/release.pyi diff --git a/typeshed/networkx/tests/__init__.pyi b/mypy-stubs/networkx/tests/__init__.pyi similarity index 99% rename from typeshed/networkx/tests/__init__.pyi rename to mypy-stubs/networkx/tests/__init__.pyi index ca7451852..11a6b20ca 100644 --- a/typeshed/networkx/tests/__init__.pyi +++ b/mypy-stubs/networkx/tests/__init__.pyi @@ -1,4 +1,3 @@ # Stubs for networkx.tests (Python 3.5) # # NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/typeshed/networkx/tests/test.pyi b/mypy-stubs/networkx/tests/test.pyi similarity index 100% rename from typeshed/networkx/tests/test.pyi rename to mypy-stubs/networkx/tests/test.pyi diff --git a/typeshed/networkx/utils/__init__.pyi b/mypy-stubs/networkx/utils/__init__.pyi similarity index 100% rename from typeshed/networkx/utils/__init__.pyi rename to mypy-stubs/networkx/utils/__init__.pyi index c8caeefe2..04da9c71c 100644 --- a/typeshed/networkx/utils/__init__.pyi +++ b/mypy-stubs/networkx/utils/__init__.pyi @@ -2,10 +2,10 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from networkx.utils.misc import * +from networkx.utils.contextmanagers import * from networkx.utils.decorators import * +from networkx.utils.heaps import * +from networkx.utils.misc import * from networkx.utils.random_sequence import * -from networkx.utils.union_find import * from networkx.utils.rcm import * -from networkx.utils.heaps import * -from networkx.utils.contextmanagers import * +from networkx.utils.union_find import * diff --git a/typeshed/networkx/utils/contextmanagers.pyi b/mypy-stubs/networkx/utils/contextmanagers.pyi similarity index 100% rename from typeshed/networkx/utils/contextmanagers.pyi rename to mypy-stubs/networkx/utils/contextmanagers.pyi diff --git a/typeshed/networkx/utils/decorators.pyi b/mypy-stubs/networkx/utils/decorators.pyi similarity index 100% rename from typeshed/networkx/utils/decorators.pyi rename to mypy-stubs/networkx/utils/decorators.pyi diff --git a/typeshed/networkx/utils/heaps.pyi b/mypy-stubs/networkx/utils/heaps.pyi similarity index 99% rename from typeshed/networkx/utils/heaps.pyi rename to mypy-stubs/networkx/utils/heaps.pyi index ffe6cb5be..4e53dddb1 100644 --- a/typeshed/networkx/utils/heaps.pyi +++ b/mypy-stubs/networkx/utils/heaps.pyi @@ -9,6 +9,7 @@ class MinHeap: key: Any = ... value: Any = ... def __init__(self, key, value) -> None: ... + def __init__(self) -> None: ... def min(self): ... def pop(self): ... @@ -26,6 +27,7 @@ class PairingHeap(MinHeap): prev: Any = ... parent: Any = ... def __init__(self, key, value) -> None: ... + def __init__(self) -> None: ... def min(self): ... def pop(self): ... diff --git a/typeshed/networkx/utils/misc.pyi b/mypy-stubs/networkx/utils/misc.pyi similarity index 100% rename from typeshed/networkx/utils/misc.pyi rename to mypy-stubs/networkx/utils/misc.pyi diff --git a/typeshed/networkx/utils/random_sequence.pyi b/mypy-stubs/networkx/utils/random_sequence.pyi similarity index 79% rename from typeshed/networkx/utils/random_sequence.pyi rename to mypy-stubs/networkx/utils/random_sequence.pyi index b90e8219b..7ff56e9ee 100644 --- a/typeshed/networkx/utils/random_sequence.pyi +++ b/mypy-stubs/networkx/utils/random_sequence.pyi @@ -7,6 +7,8 @@ from typing import Any, Optional def powerlaw_sequence(n, exponent: float = ...): ... def zipf_rv(alpha, xmin: int = ..., seed: Optional[Any] = ...): ... def cumulative_distribution(distribution): ... -def discrete_sequence(n, distribution: Optional[Any] = ..., cdistribution: Optional[Any] = ...): ... +def discrete_sequence( + n, distribution: Optional[Any] = ..., cdistribution: Optional[Any] = ... +): ... def random_weighted_sample(mapping, k): ... def weighted_choice(mapping): ... diff --git a/typeshed/networkx/utils/rcm.pyi b/mypy-stubs/networkx/utils/rcm.pyi similarity index 100% rename from typeshed/networkx/utils/rcm.pyi rename to mypy-stubs/networkx/utils/rcm.pyi diff --git a/typeshed/networkx/utils/union_find.pyi b/mypy-stubs/networkx/utils/union_find.pyi similarity index 100% rename from typeshed/networkx/utils/union_find.pyi rename to mypy-stubs/networkx/utils/union_find.pyi diff --git a/typeshed/networkx/version.pyi b/mypy-stubs/networkx/version.pyi similarity index 100% rename from typeshed/networkx/version.pyi rename to mypy-stubs/networkx/version.pyi diff --git a/mypy-stubs/prov/__init__.pyi b/mypy-stubs/prov/__init__.pyi new file mode 100644 index 000000000..3f8d5df47 --- /dev/null +++ b/mypy-stubs/prov/__init__.pyi @@ -0,0 +1,8 @@ +from _typeshed import Incomplete + +class Error(Exception): ... + +# def read(source, format: Incomplete | None = ...): ... + +# Names in __all__ with no definition: +# model diff --git a/mypy-stubs/prov/constants.py b/mypy-stubs/prov/constants.py new file mode 100644 index 000000000..f711d00dd --- /dev/null +++ b/mypy-stubs/prov/constants.py @@ -0,0 +1,217 @@ +from __future__ import absolute_import, division, print_function, unicode_literals + +from prov.identifier import Namespace + +__author__ = "Trung Dong Huynh" +__email__ = "trungdong@donggiang.com" + + +XSD = Namespace("xsd", "http://www.w3.org/2001/XMLSchema#") +PROV = Namespace("prov", "http://www.w3.org/ns/prov#") +XSI = Namespace("xsi", "http://www.w3.org/2001/XMLSchema-instance") + +# C1. Entities/Activities +PROV_ENTITY = PROV["Entity"] +PROV_ACTIVITY = PROV["Activity"] +PROV_GENERATION = PROV["Generation"] +PROV_USAGE = PROV["Usage"] +PROV_COMMUNICATION = PROV["Communication"] +PROV_START = PROV["Start"] +PROV_END = PROV["End"] +PROV_INVALIDATION = PROV["Invalidation"] + +# C2. Derivations +PROV_DERIVATION = PROV["Derivation"] + +# C3. Agents/Responsibility +PROV_AGENT = PROV["Agent"] +PROV_ATTRIBUTION = PROV["Attribution"] +PROV_ASSOCIATION = PROV["Association"] +PROV_DELEGATION = PROV["Delegation"] +PROV_INFLUENCE = PROV["Influence"] +# C4. Bundles +PROV_BUNDLE = PROV["Bundle"] +# C5. Alternate +PROV_ALTERNATE = PROV["Alternate"] +PROV_SPECIALIZATION = PROV["Specialization"] +PROV_MENTION = PROV["Mention"] +# C6. Collections +PROV_MEMBERSHIP = PROV["Membership"] + +PROV_N_MAP = { + PROV_ENTITY: "entity", + PROV_ACTIVITY: "activity", + PROV_GENERATION: "wasGeneratedBy", + PROV_USAGE: "used", + PROV_COMMUNICATION: "wasInformedBy", + PROV_START: "wasStartedBy", + PROV_END: "wasEndedBy", + PROV_INVALIDATION: "wasInvalidatedBy", + PROV_DERIVATION: "wasDerivedFrom", + PROV_AGENT: "agent", + PROV_ATTRIBUTION: "wasAttributedTo", + PROV_ASSOCIATION: "wasAssociatedWith", + PROV_DELEGATION: "actedOnBehalfOf", + PROV_INFLUENCE: "wasInfluencedBy", + PROV_ALTERNATE: "alternateOf", + PROV_SPECIALIZATION: "specializationOf", + PROV_MENTION: "mentionOf", + PROV_MEMBERSHIP: "hadMember", + PROV_BUNDLE: "bundle", +} + +# Records defined as subtypes in PROV-N but top level types in for example +# PROV XML also need a mapping. +ADDITIONAL_N_MAP = { + PROV["Revision"]: "wasRevisionOf", + PROV["Quotation"]: "wasQuotedFrom", + PROV["PrimarySource"]: "hadPrimarySource", + PROV["SoftwareAgent"]: "softwareAgent", + PROV["Person"]: "person", + PROV["Organization"]: "organization", + PROV["Plan"]: "plan", + PROV["Collection"]: "collection", + PROV["EmptyCollection"]: "emptyCollection", +} + +# Maps qualified names from the PROV namespace to their base class. If it +# has no baseclass it maps to itsself. This is needed for example for PROV +# XML (de)serializer where extended types are used a lot. +PROV_BASE_CLS = { + PROV_ENTITY: PROV_ENTITY, + PROV_ACTIVITY: PROV_ACTIVITY, + PROV_GENERATION: PROV_GENERATION, + PROV_USAGE: PROV_USAGE, + PROV_COMMUNICATION: PROV_COMMUNICATION, + PROV_START: PROV_START, + PROV_END: PROV_END, + PROV_INVALIDATION: PROV_INVALIDATION, + PROV_DERIVATION: PROV_DERIVATION, + PROV["Revision"]: PROV_DERIVATION, + PROV["Quotation"]: PROV_DERIVATION, + PROV["PrimarySource"]: PROV_DERIVATION, + PROV_AGENT: PROV_AGENT, + PROV["SoftwareAgent"]: PROV_AGENT, + PROV["Person"]: PROV_AGENT, + PROV["Organization"]: PROV_AGENT, + PROV_ATTRIBUTION: PROV_ATTRIBUTION, + PROV_ASSOCIATION: PROV_ASSOCIATION, + PROV["Plan"]: PROV_ENTITY, + PROV_DELEGATION: PROV_DELEGATION, + PROV_INFLUENCE: PROV_INFLUENCE, + PROV_ALTERNATE: PROV_ALTERNATE, + PROV_SPECIALIZATION: PROV_SPECIALIZATION, + PROV_MENTION: PROV_MENTION, + PROV["Collection"]: PROV_ENTITY, + PROV["EmptyCollection"]: PROV_ENTITY, + PROV_MEMBERSHIP: PROV_MEMBERSHIP, + PROV_BUNDLE: PROV_ENTITY, +} + +# Identifiers for PROV's attributes +PROV_ATTR_ENTITY = PROV["entity"] +PROV_ATTR_ACTIVITY = PROV["activity"] +PROV_ATTR_TRIGGER = PROV["trigger"] +PROV_ATTR_INFORMED = PROV["informed"] +PROV_ATTR_INFORMANT = PROV["informant"] +PROV_ATTR_STARTER = PROV["starter"] +PROV_ATTR_ENDER = PROV["ender"] +PROV_ATTR_AGENT = PROV["agent"] +PROV_ATTR_PLAN = PROV["plan"] +PROV_ATTR_DELEGATE = PROV["delegate"] +PROV_ATTR_RESPONSIBLE = PROV["responsible"] +PROV_ATTR_GENERATED_ENTITY = PROV["generatedEntity"] +PROV_ATTR_USED_ENTITY = PROV["usedEntity"] +PROV_ATTR_GENERATION = PROV["generation"] +PROV_ATTR_USAGE = PROV["usage"] +PROV_ATTR_SPECIFIC_ENTITY = PROV["specificEntity"] +PROV_ATTR_GENERAL_ENTITY = PROV["generalEntity"] +PROV_ATTR_ALTERNATE1 = PROV["alternate1"] +PROV_ATTR_ALTERNATE2 = PROV["alternate2"] +PROV_ATTR_BUNDLE = PROV["bundle"] +PROV_ATTR_INFLUENCEE = PROV["influencee"] +PROV_ATTR_INFLUENCER = PROV["influencer"] +PROV_ATTR_COLLECTION = PROV["collection"] + +# Literal properties +PROV_ATTR_TIME = PROV["time"] +PROV_ATTR_STARTTIME = PROV["startTime"] +PROV_ATTR_ENDTIME = PROV["endTime"] + + +PROV_ATTRIBUTE_QNAMES = { + PROV_ATTR_ENTITY, + PROV_ATTR_ACTIVITY, + PROV_ATTR_TRIGGER, + PROV_ATTR_INFORMED, + PROV_ATTR_INFORMANT, + PROV_ATTR_STARTER, + PROV_ATTR_ENDER, + PROV_ATTR_AGENT, + PROV_ATTR_PLAN, + PROV_ATTR_DELEGATE, + PROV_ATTR_RESPONSIBLE, + PROV_ATTR_GENERATED_ENTITY, + PROV_ATTR_USED_ENTITY, + PROV_ATTR_GENERATION, + PROV_ATTR_USAGE, + PROV_ATTR_SPECIFIC_ENTITY, + PROV_ATTR_GENERAL_ENTITY, + PROV_ATTR_ALTERNATE1, + PROV_ATTR_ALTERNATE2, + PROV_ATTR_BUNDLE, + PROV_ATTR_INFLUENCEE, + PROV_ATTR_INFLUENCER, + PROV_ATTR_COLLECTION, +} +PROV_ATTRIBUTE_LITERALS = {PROV_ATTR_TIME, PROV_ATTR_STARTTIME, PROV_ATTR_ENDTIME} + +# Set of formal attributes of PROV records +PROV_ATTRIBUTES = PROV_ATTRIBUTE_QNAMES | PROV_ATTRIBUTE_LITERALS +PROV_RECORD_ATTRIBUTES = list((attr, str(attr)) for attr in PROV_ATTRIBUTES) + +PROV_RECORD_IDS_MAP = dict( + (PROV_N_MAP[rec_type_id], rec_type_id) for rec_type_id in PROV_N_MAP +) +PROV_ID_ATTRIBUTES_MAP = dict( + (prov_id, attribute) for (prov_id, attribute) in PROV_RECORD_ATTRIBUTES +) +PROV_ATTRIBUTES_ID_MAP = dict( + (attribute, prov_id) for (prov_id, attribute) in PROV_RECORD_ATTRIBUTES +) + +# Extra definition for convenience +PROV_TYPE = PROV["type"] +PROV_LABEL = PROV["label"] +PROV_VALUE = PROV["value"] +PROV_LOCATION = PROV["location"] +PROV_ROLE = PROV["role"] + +PROV_QUALIFIEDNAME = PROV["QUALIFIED_NAME"] + +# XSD DATA TYPES +XSD_ANYURI = XSD["anyURI"] +XSD_QNAME = XSD["QName"] +XSD_DATETIME = XSD["dateTime"] +XSD_TIME = XSD["time"] +XSD_DATE = XSD["date"] +XSD_STRING = XSD["string"] +XSD_BOOLEAN = XSD["boolean"] +# All XSD Integer types +XSD_INTEGER = XSD["integer"] +XSD_LONG = XSD["long"] +XSD_INT = XSD["int"] +XSD_SHORT = XSD["short"] +XSD_BYTE = XSD["byte"] +XSD_NONNEGATIVEINTEGER = XSD["nonNegativeInteger"] +XSD_UNSIGNEDLONG = XSD["unsignedLong"] +XSD_UNSIGNEDINT = XSD["unsignedInt"] +XSD_UNSIGNEDSHORT = XSD["unsignedShort"] +XSD_UNSIGNEDBYTE = XSD["unsignedByte"] +XSD_POSITIVEINTEGER = XSD["positiveInteger"] +XSD_NONPOSITIVEINTEGER = XSD["nonPositiveInteger"] +XSD_NEGATIVEINTEGER = XSD["negativeInteger"] +# All XSD real number types +XSD_FLOAT = XSD["float"] +XSD_DOUBLE = XSD["double"] +XSD_DECIMAL = XSD["decimal"] diff --git a/mypy-stubs/prov/dot.pyi b/mypy-stubs/prov/dot.pyi new file mode 100644 index 000000000..02b896e20 --- /dev/null +++ b/mypy-stubs/prov/dot.pyi @@ -0,0 +1,41 @@ +from _typeshed import Incomplete +from prov.model import PROV_ACTIVITY as PROV_ACTIVITY +from prov.model import PROV_AGENT as PROV_AGENT +from prov.model import PROV_ALTERNATE as PROV_ALTERNATE +from prov.model import PROV_ASSOCIATION as PROV_ASSOCIATION +from prov.model import PROV_ATTRIBUTE_QNAMES as PROV_ATTRIBUTE_QNAMES +from prov.model import PROV_ATTRIBUTION as PROV_ATTRIBUTION +from prov.model import PROV_BUNDLE as PROV_BUNDLE +from prov.model import PROV_COMMUNICATION as PROV_COMMUNICATION +from prov.model import PROV_DELEGATION as PROV_DELEGATION +from prov.model import PROV_DERIVATION as PROV_DERIVATION +from prov.model import PROV_END as PROV_END +from prov.model import PROV_ENTITY as PROV_ENTITY +from prov.model import PROV_GENERATION as PROV_GENERATION +from prov.model import PROV_INFLUENCE as PROV_INFLUENCE +from prov.model import PROV_INVALIDATION as PROV_INVALIDATION +from prov.model import PROV_MEMBERSHIP as PROV_MEMBERSHIP +from prov.model import PROV_MENTION as PROV_MENTION +from prov.model import PROV_SPECIALIZATION as PROV_SPECIALIZATION +from prov.model import PROV_START as PROV_START +from prov.model import PROV_USAGE as PROV_USAGE +from prov.model import Identifier as Identifier +from prov.model import ProvException as ProvException +from prov.model import sorted_attributes as sorted_attributes + +DOT_PROV_STYLE: Incomplete +ANNOTATION_STYLE: Incomplete +ANNOTATION_LINK_STYLE: Incomplete +ANNOTATION_START_ROW: str +ANNOTATION_ROW_TEMPLATE: str +ANNOTATION_END_ROW: str + +def htlm_link_if_uri(value): ... +def prov_to_dot( + bundle, + show_nary: bool = ..., + use_labels: bool = ..., + direction: str = ..., + show_element_attributes: bool = ..., + show_relation_attributes: bool = ..., +): ... diff --git a/mypy-stubs/prov/graph.pyi b/mypy-stubs/prov/graph.pyi new file mode 100644 index 000000000..ad8a3c493 --- /dev/null +++ b/mypy-stubs/prov/graph.pyi @@ -0,0 +1,28 @@ +from _typeshed import Incomplete +from prov.model import PROV_ATTR_ACTIVITY as PROV_ATTR_ACTIVITY +from prov.model import PROV_ATTR_AGENT as PROV_ATTR_AGENT +from prov.model import PROV_ATTR_ALTERNATE1 as PROV_ATTR_ALTERNATE1 +from prov.model import PROV_ATTR_ALTERNATE2 as PROV_ATTR_ALTERNATE2 +from prov.model import PROV_ATTR_COLLECTION as PROV_ATTR_COLLECTION +from prov.model import PROV_ATTR_DELEGATE as PROV_ATTR_DELEGATE +from prov.model import PROV_ATTR_ENTITY as PROV_ATTR_ENTITY +from prov.model import PROV_ATTR_GENERAL_ENTITY as PROV_ATTR_GENERAL_ENTITY +from prov.model import PROV_ATTR_GENERATED_ENTITY as PROV_ATTR_GENERATED_ENTITY +from prov.model import PROV_ATTR_INFORMANT as PROV_ATTR_INFORMANT +from prov.model import PROV_ATTR_INFORMED as PROV_ATTR_INFORMED +from prov.model import PROV_ATTR_RESPONSIBLE as PROV_ATTR_RESPONSIBLE +from prov.model import PROV_ATTR_SPECIFIC_ENTITY as PROV_ATTR_SPECIFIC_ENTITY +from prov.model import PROV_ATTR_TRIGGER as PROV_ATTR_TRIGGER +from prov.model import PROV_ATTR_USED_ENTITY as PROV_ATTR_USED_ENTITY +from prov.model import ProvActivity as ProvActivity +from prov.model import ProvAgent as ProvAgent +from prov.model import ProvDocument as ProvDocument +from prov.model import ProvElement as ProvElement +from prov.model import ProvEntity as ProvEntity +from prov.model import ProvRecord as ProvRecord +from prov.model import ProvRelation as ProvRelation + +INFERRED_ELEMENT_CLASS: Incomplete + +def prov_to_graph(prov_document): ... +def graph_to_prov(g): ... diff --git a/mypy-stubs/prov/identifier.pyi b/mypy-stubs/prov/identifier.pyi new file mode 100644 index 000000000..c0d79d912 --- /dev/null +++ b/mypy-stubs/prov/identifier.pyi @@ -0,0 +1,31 @@ +from typing import Any, Union + +class Identifier: + def __init__(self, uri: str) -> None: ... + @property + def uri(self) -> str: ... + def __eq__(self, other: Any) -> bool: ... + def __hash__(self) -> int: ... + def provn_representation(self) -> str: ... + +class QualifiedName(Identifier): + def __init__(self, namespace: str, localpart: str) -> None: ... + @property + def namespace(self) -> str: ... + @property + def localpart(self) -> str: ... + def __hash__(self) -> int: ... + def provn_representation(self) -> str: ... + +class Namespace: + def __init__(self, prefix: str, uri: str) -> None: ... + @property + def uri(self) -> str: ... + @property + def prefix(self) -> str: ... + def contains(self, identifier: Union[Identifier, str]) -> bool: ... + def qname(self, identifier: Union[Identifier, str]) -> QualifiedName: ... + def __eq__(self, other: Any) -> bool: ... + def __ne__(self, other: Any) -> bool: ... + def __hash__(self) -> int: ... + def __getitem__(self, localpart: str) -> QualifiedName: ... diff --git a/mypy-stubs/prov/model.pyi b/mypy-stubs/prov/model.pyi new file mode 100644 index 000000000..57ac5cb1e --- /dev/null +++ b/mypy-stubs/prov/model.pyi @@ -0,0 +1,462 @@ +from datetime import datetime +from typing import IO, Any, Dict, Iterable, List, Set, Tuple + +from _typeshed import Incomplete +from prov.constants import * + +# from prov import Error as Error, serializers as serializers +from prov.identifier import Identifier, Namespace, QualifiedName + +logger: Incomplete + +# def parse_xsd_datetime(value): ... + +DATATYPE_PARSERS: Incomplete +XSD_DATATYPE_PARSERS: Incomplete + +# def first(a_set): ... + +_attributes_type = Dict[str | Identifier, Any] | List[Tuple[str | Identifier, Any]] + +class ProvRecord: + FORMAL_ATTRIBUTES: Incomplete + def __init__( + self, + bundle: str, + identifier: Identifier | str, + attributes: Dict[str, str] | None = ..., + ) -> None: ... + def __hash__(self) -> int: ... + def copy(self) -> ProvRecord: ... + def get_type(self) -> str: ... + def get_asserted_types(self) -> Set[str]: ... + def add_asserted_type(self, type_identifier: str | QualifiedName) -> None: ... + def get_attribute(self, attr_name: str) -> Set[str]: ... + @property + def identifier(self) -> Identifier: ... + @property + def attributes(self) -> List[Tuple[str, str]]: ... + @property + def args(self) -> Tuple[str, ...]: ... + @property + def formal_attributes(self) -> Tuple[Tuple[str, str], ...]: ... + @property + def extra_attributes(self) -> Tuple[Tuple[str, str], ...]: ... + @property + def bundle(self) -> "ProvBundle": ... + @property + def label(self) -> str: ... + @property + def value(self) -> str: ... + def add_attributes( + self, + attributes: _attributes_type, + ) -> None: ... + def __eq__(self, other: Any) -> bool: ... + def get_provn(self) -> str: ... + def is_element(self) -> bool: ... + def is_relation(self) -> bool: ... + +class ProvElement(ProvRecord): + def __init__( + self, + bundle: "ProvBundle", + identifier: str, + attributes: _attributes_type, + ) -> None: ... + def is_element(self) -> bool: ... + +class ProvRelation(ProvRecord): + def is_relation(self) -> bool: ... + +class ProvEntity(ProvElement): + def wasGeneratedBy( + self, + activity: str, + time: datetime | str | None = ..., + attributes: _attributes_type | None = None, + ) -> ProvGeneration: ... + def wasInvalidatedBy( + self, + activity: str, + time: datetime | str | None = ..., + attributes: _attributes_type | None = None, + ) -> ProvInvalidation: ... + def wasDerivedFrom( + self, + usedEntity: str, + activity: str | None = ..., + generation: Incomplete | None = ..., + usage: Incomplete | None = ..., + attributes: _attributes_type | None = None, + ) -> ProvDerivation: ... + def wasAttributedTo( + self, + agent: str, + attributes: _attributes_type | None = None, + ) -> ProvAttribution: ... + def alternateOf(self, alternate2: str) -> ProvElement: ... + def specializationOf(self, generalEntity: str) -> ProvSpecialization: ... + def hadMember(self, entity: str) -> ProvMembership: ... + +class ProvActivity(ProvElement): + FORMAL_ATTRIBUTES: Incomplete + def set_time( + self, startTime: Incomplete | None = ..., endTime: Incomplete | None = ... + ) -> None: ... + def get_startTime(self) -> datetime: ... + def get_endTime(self) -> datetime: ... + def used( + self, + entity: str, + time: datetime | str | None = ..., + attributes: _attributes_type | None = None, + ) -> ProvActivity: ... + def wasInformedBy( + self, + informant: str, + attributes: _attributes_type | None = None, + ) -> ProvActivity: ... + def wasStartedBy( + self, + trigger: str, + starter: str | None = ..., + time: datetime | str | None = ..., + attributes: _attributes_type | None = None, + ) -> ProvActivity: ... + def wasEndedBy( + self, + trigger: str, + ender: str | None = ..., + time: datetime | str | None = ..., + attributes: _attributes_type | None = None, + ) -> ProvActivity: ... + def wasAssociatedWith( + self, + agent: str, + plan: str | None = ..., + attributes: _attributes_type | None = None, + ) -> ProvActivity: ... + +class ProvGeneration(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvUsage(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvCommunication(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvStart(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvEnd(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvInvalidation(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvDerivation(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvAgent(ProvElement): + def actedOnBehalfOf( + self, + responsible: str, + activity: str | None = ..., + attributes: _attributes_type | None = ..., + ) -> ProvAgent: ... + +class ProvAttribution(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvAssociation(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvDelegation(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvInfluence(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvSpecialization(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvAlternate(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +class ProvMention(ProvSpecialization): + FORMAL_ATTRIBUTES: Incomplete + +class ProvMembership(ProvRelation): + FORMAL_ATTRIBUTES: Incomplete + +PROV_REC_CLS: Incomplete +DEFAULT_NAMESPACES: Incomplete + +class ProvBundle: + def __init__( + self, + records: Iterable[ProvRecord] | None = ..., + identifier: str | None = ..., + namespaces: Iterable[Namespace] | None = ..., + document: ProvDocument | None = ..., + ) -> None: ... + @property + def namespaces(self) -> Set[Namespace]: ... + @property + def default_ns_uri(self) -> str | None: ... + @property + def document(self) -> ProvDocument | None: ... + @property + def identifier(self) -> str | None: ... + @property + def records(self) -> List[ProvRecord]: ... + def set_default_namespace(self, uri: Namespace) -> None: ... + def get_default_namespace(self) -> Namespace: ... + def add_namespace( + self, namespace_or_prefix: Namespace | str, uri: str | None = ... + ) -> Namespace: ... + def get_registered_namespaces(self) -> Iterable[Namespace]: ... + def valid_qualified_name( + self, identifier: QualifiedName | Tuple[str, Identifier] + ) -> QualifiedName | None: ... + def get_records( + self, + class_or_type_or_tuple: type + | type[int | str] + | Tuple[type | type[int | str] | Tuple[Any, ...], ...] + | None = ..., + ) -> List[ProvRecord]: ... + def get_record( + self, identifier: Identifier | None + ) -> ProvRecord | List[ProvRecord] | None: ... + def is_document(self) -> bool: ... + def is_bundle(self) -> bool: ... + def has_bundles(self) -> bool: ... + @property + def bundles(self) -> Iterable[ProvBundle]: ... + def get_provn(self, _indent_level: int = ...) -> str: ... + def unified(self) -> ProvBundle: ... + def update(self, other: ProvBundle) -> None: ... + def new_record( + self, + record_type: PROV_REC_CLS, + identifier: str, + attributes: _attributes_type | None = None, + other_attributes: _attributes_type | None = None, + ) -> ProvRecord: ... + def add_record(self, record: ProvRecord) -> ProvRecord: ... + def entity( + self, + identifier: str | QualifiedName, + other_attributes: _attributes_type | None = None, + ) -> ProvEntity: ... + def activity( + self, + identifier: str | QualifiedName, + startTime: datetime | str | None = ..., + endTime: datetime | str | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvActivity: ... + def generation( + self, + entity: ProvEntity | str, + activity: ProvActivity | str | None = ..., + time: datetime | str | None = ..., + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvGeneration: ... + def usage( + self, + activity: ProvActivity | str, + entity: ProvEntity | str | None = ..., + time: datetime | str | None = ..., + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvUsage: ... + def start( + self, + activity: ProvActivity | ProvAgent | str, + trigger: ProvEntity | None = ..., + starter: ProvActivity | ProvAgent | str | None = ..., + time: datetime | str | None = ..., + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvStart: ... + def end( + self, + activity: ProvActivity | str, + trigger: ProvEntity | None = ..., + ender: ProvActivity | str | None = ..., + time: datetime | str | None = ..., + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvEnd: ... + def invalidation( + self, + entity: ProvEntity | str, + activity: ProvActivity | str | None = ..., + time: datetime | str | None = ..., + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvInvalidation: ... + def communication( + self, + informed: ProvActivity | str, + informant: ProvActivity | str, + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvCommunication: ... + def agent( + self, + identifier: Identifier | str, + other_attributes: _attributes_type | None = None, + ) -> ProvAgent: ... + def attribution( + self, + entity: ProvEntity | str, + agent: ProvAgent | str, + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvAttribution: ... + def association( + self, + activity: ProvActivity | str, + agent: ProvAgent | str | None = ..., + plan: ProvEntity | str | None = ..., + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvAssociation: ... + def delegation( + self, + delegate: ProvAgent | str, + responsible: ProvAgent | str, + activity: ProvActivity | str | None = ..., + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvDelegation: ... + def influence( + self, + influencee: ProvEntity | ProvActivity | ProvAgent | str, + influencer: ProvEntity | ProvActivity | ProvAgent | str, + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvInfluence: ... + def derivation( + self, + generatedEntity: ProvEntity | str, + usedEntity: ProvEntity | str, + activity: ProvActivity | str | None = ..., + generation: ProvActivity | str | None = ..., + usage: Incomplete | None = ..., + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvDerivation: ... + def revision( + self, + generatedEntity: ProvEntity | str, + usedEntity: ProvEntity | str, + activity: ProvActivity | str | None = ..., + generation: ProvActivity | str | None = ..., + usage: Incomplete | None = ..., + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvRecord: ... + def quotation( + self, + generatedEntity: ProvEntity | str, + usedEntity: ProvEntity | str, + activity: ProvActivity | str | None = ..., + generation: ProvActivity | str | None = ..., + usage: Incomplete | None = ..., + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvRecord: ... + def primary_source( + self, + generatedEntity: ProvEntity | str, + usedEntity: ProvEntity | str, + activity: ProvActivity | str | None = ..., + generation: ProvActivity | str | None = ..., + usage: Incomplete | None = ..., + identifier: Identifier | None = ..., + other_attributes: _attributes_type | None = None, + ) -> ProvRecord: ... + def specialization( + self, specificEntity: ProvEntity | str, generalEntity: ProvEntity | str + ) -> ProvRecord: ... + def alternate( + self, alternate1: ProvEntity | str, alternate2: ProvEntity | str + ) -> ProvRecord: ... + def mention( + self, + specificEntity: ProvEntity | str, + generalEntity: ProvEntity | str, + bundle: Incomplete, + ) -> ProvRecord: ... + def collection( + self, + identifier: str, + other_attributes: _attributes_type | None, + ) -> ProvRecord: ... + def membership( + self, collection: ProvRecord, entity: ProvEntity | str + ) -> ProvRecord: ... + def plot( + self, + filename: str | None = ..., + show_nary: bool = ..., + use_labels: bool = ..., + show_element_attributes: bool = ..., + show_relation_attributes: bool = ..., + ) -> None: ... + wasGeneratedBy = generation + used = usage + wasStartedBy = start + wasEndedBy = end + wasInvalidatedBy = invalidation + wasInformedBy = communication + wasAttributedTo = attribution + wasAssociatedWith = association + actedOnBehalfOf = delegation + wasInfluencedBy = influence + wasDerivedFrom = derivation + wasRevisionOf = revision + wasQuotedFrom = quotation + hadPrimarySource = primary_source + alternateOf = alternate + specializationOf = specialization + mentionOf = mention + hadMember = membership + +class ProvDocument(ProvBundle): + def __init__( + self, + records: Iterable[ProvRecord] | None = ..., + namespaces: Iterable[Namespace] | None = ..., + ) -> None: ... + def is_document(self) -> bool: ... + def is_bundle(self) -> bool: ... + def has_bundles(self) -> bool: ... + @property + def bundles(self) -> Iterable[ProvBundle]: ... + def flattened(self) -> ProvDocument: ... + def unified(self) -> ProvDocument: ... + def update(self, other: ProvDocument | ProvBundle) -> None: ... + def add_bundle( + self, bundle: ProvBundle, identifier: Incomplete | None = ... + ) -> None: ... + def bundle(self, identifier: Identifier) -> ProvBundle: ... + def serialize( + self, destination: IO[Any] | None = ..., format: str = ..., **args: Any + ) -> str | None: ... + @staticmethod + def deserialize( + source: IO[Any] | str | None = ..., + content: str | None = ..., + format: str = ..., + **args: Any + ) -> ProvDocument: ... + +def sorted_attributes(element: ProvElement, attributes: List[str]) -> List[str]: ... diff --git a/mypy-stubs/prov/serializers/provjson.pyi b/mypy-stubs/prov/serializers/provjson.pyi new file mode 100644 index 000000000..723c2d413 --- /dev/null +++ b/mypy-stubs/prov/serializers/provjson.pyi @@ -0,0 +1,42 @@ +import json + +from _typeshed import Incomplete +from prov.constants import * +from prov.model import Identifier as Identifier +from prov.model import Literal as Literal +from prov.model import Namespace as Namespace +from prov.model import ProvBundle as ProvBundle +from prov.model import ProvDocument as ProvDocument +from prov.model import first as first +from prov.model import parse_xsd_datetime as parse_xsd_datetime +from prov.serializers import Error as Error +from prov.serializers import Serializer as Serializer + +logger: Incomplete + +class ProvJSONException(Error): ... + +class AnonymousIDGenerator: + def __init__(self) -> None: ... + def get_anon_id(self, obj, local_prefix: str = ...): ... + +LITERAL_XSDTYPE_MAP: Incomplete + +class ProvJSONSerializer(Serializer): + def serialize(self, stream, **kwargs) -> None: ... + def deserialize(self, stream, **kwargs): ... + +class ProvJSONEncoder(json.JSONEncoder): + def default(self, o): ... + +class ProvJSONDecoder(json.JSONDecoder): + def decode(self, s, *args, **kwargs): ... + +def valid_qualified_name(bundle, value): ... +def encode_json_document(document): ... +def encode_json_container(bundle): ... +def decode_json_document(content, document) -> None: ... +def decode_json_container(jc, bundle) -> None: ... +def encode_json_representation(value): ... +def decode_json_representation(literal, bundle): ... +def literal_json_representation(literal): ... diff --git a/mypy-stubs/prov/serializers/provn.pyi b/mypy-stubs/prov/serializers/provn.pyi new file mode 100644 index 000000000..fa6ac78c7 --- /dev/null +++ b/mypy-stubs/prov/serializers/provn.pyi @@ -0,0 +1,8 @@ +from _typeshed import Incomplete +from prov.serializers import Serializer as Serializer + +logger: Incomplete + +class ProvNSerializer(Serializer): + def serialize(self, stream, **kwargs) -> None: ... + def deserialize(self, stream, **kwargs) -> None: ... diff --git a/mypy-stubs/prov/serializers/provrdf.pyi b/mypy-stubs/prov/serializers/provrdf.pyi new file mode 100644 index 000000000..11e438f6b --- /dev/null +++ b/mypy-stubs/prov/serializers/provrdf.pyi @@ -0,0 +1,67 @@ +from collections.abc import Generator + +from _typeshed import Incomplete +from prov.constants import PROV as PROV +from prov.constants import PROV_ACTIVITY as PROV_ACTIVITY +from prov.constants import PROV_ALTERNATE as PROV_ALTERNATE +from prov.constants import PROV_ATTR_ENDER as PROV_ATTR_ENDER +from prov.constants import PROV_ATTR_ENDTIME as PROV_ATTR_ENDTIME +from prov.constants import PROV_ATTR_INFORMANT as PROV_ATTR_INFORMANT +from prov.constants import PROV_ATTR_RESPONSIBLE as PROV_ATTR_RESPONSIBLE +from prov.constants import PROV_ATTR_STARTER as PROV_ATTR_STARTER +from prov.constants import PROV_ATTR_STARTTIME as PROV_ATTR_STARTTIME +from prov.constants import PROV_ATTR_TIME as PROV_ATTR_TIME +from prov.constants import PROV_ATTR_TRIGGER as PROV_ATTR_TRIGGER +from prov.constants import PROV_ATTR_USED_ENTITY as PROV_ATTR_USED_ENTITY +from prov.constants import PROV_BASE_CLS as PROV_BASE_CLS +from prov.constants import PROV_COMMUNICATION as PROV_COMMUNICATION +from prov.constants import PROV_DELEGATION as PROV_DELEGATION +from prov.constants import PROV_DERIVATION as PROV_DERIVATION +from prov.constants import PROV_END as PROV_END +from prov.constants import PROV_GENERATION as PROV_GENERATION +from prov.constants import PROV_ID_ATTRIBUTES_MAP as PROV_ID_ATTRIBUTES_MAP +from prov.constants import PROV_INVALIDATION as PROV_INVALIDATION +from prov.constants import PROV_LOCATION as PROV_LOCATION +from prov.constants import PROV_MENTION as PROV_MENTION +from prov.constants import PROV_N_MAP as PROV_N_MAP +from prov.constants import PROV_ROLE as PROV_ROLE +from prov.constants import PROV_START as PROV_START +from prov.constants import PROV_USAGE as PROV_USAGE +from prov.constants import XSD_QNAME as XSD_QNAME +from prov.serializers import Error as Error +from prov.serializers import Serializer as Serializer + +class ProvRDFException(Error): ... + +class AnonymousIDGenerator: + def __init__(self) -> None: ... + def get_anon_id(self, obj, local_prefix: str = ...): ... + +LITERAL_XSDTYPE_MAP: Incomplete + +def attr2rdf(attr): ... +def valid_qualified_name(bundle, value, xsd_qname: bool = ...): ... + +class ProvRDFSerializer(Serializer): + def serialize( + self, stream: Incomplete | None = ..., rdf_format: str = ..., **kwargs + ) -> None: ... + document: Incomplete + def deserialize(self, stream, rdf_format: str = ..., **kwargs): ... + def valid_identifier(self, value): ... + def encode_rdf_representation(self, value): ... + def decode_rdf_representation(self, literal, graph): ... + def encode_document(self, document): ... + def encode_container( + self, + bundle, + container: Incomplete | None = ..., + identifier: Incomplete | None = ..., + ): ... + def decode_document(self, content, document) -> None: ... + def decode_container(self, graph, bundle) -> None: ... + +def walk( + children, level: int = ..., path: Incomplete | None = ..., usename: bool = ... +) -> Generator[Incomplete, None, None]: ... +def literal_rdf_representation(literal): ... diff --git a/mypy-stubs/prov/serializers/provxml.pyi b/mypy-stubs/prov/serializers/provxml.pyi new file mode 100644 index 000000000..693d7f484 --- /dev/null +++ b/mypy-stubs/prov/serializers/provxml.pyi @@ -0,0 +1,22 @@ +import prov.identifier +from _typeshed import Incomplete +from prov.constants import * +from prov.model import DEFAULT_NAMESPACES as DEFAULT_NAMESPACES +from prov.model import sorted_attributes as sorted_attributes + +logger: Incomplete +FULL_NAMES_MAP: Incomplete +FULL_PROV_RECORD_IDS_MAP: Incomplete +XML_XSD_URI: str + +class ProvXMLException(prov.Error): ... + +class ProvXMLSerializer(prov.serializers.Serializer): + def serialize(self, stream, force_types: bool = ..., **kwargs) -> None: ... + def serialize_bundle( + self, bundle, element: Incomplete | None = ..., force_types: bool = ... + ): ... + def deserialize(self, stream, **kwargs): ... + def deserialize_subtree(self, xml_doc, bundle): ... + +def xml_qname_to_QualifiedName(element, qname_str): ... diff --git a/mypy-stubs/pydot.pyi b/mypy-stubs/pydot.pyi new file mode 100644 index 000000000..93464c1d4 --- /dev/null +++ b/mypy-stubs/pydot.pyi @@ -0,0 +1,152 @@ +from typing import Any, Dict, List, Sequence, Union + +PY3: Any +str_type = str +GRAPH_ATTRIBUTES: Any +EDGE_ATTRIBUTES: Any +NODE_ATTRIBUTES: Any +CLUSTER_ATTRIBUTES: Any +DEFAULT_PROGRAMS: Any + +def is_windows() -> bool: ... +def is_anaconda() -> bool: ... +def get_executable_extension() -> str: ... +def graph_from_dot_data(s: str) -> List["Dot"]: ... + +class Common: + def set_parent_graph(self, parent_graph: "Graph") -> None: ... + def get_parent_graph(self) -> "Graph": ... + def set(self, name: str, value: str) -> None: ... + def get(self, name: str) -> str: ... + def get_attributes(self) -> Dict[str, str]: ... + def set_sequence(self, seq: str) -> None: ... + def get_sequence(self) -> str: ... + def create_attribute_methods(self, obj_attributes: List[str]) -> None: ... + +class Error(Exception): + value: Any + def __init__(self, value: str) -> None: ... + +class InvocationException(Exception): + value: Any + def __init__(self, value: str) -> None: ... + +class Node(Common): + obj_dict: Any + def __init__( + self, name: str = ..., obj_dict: Any | None = ..., **attrs: str + ) -> None: ... + def set_name(self, node_name: str) -> None: ... + def get_name(self) -> str: ... + def get_port(self) -> str: ... + def add_style(self, style: str) -> None: ... + def to_string(self) -> str: ... + +class Edge(Common): + obj_dict: Any + def __init__( + self, + src: str = ..., + dst: str = ..., + obj_dict: Any | None = ..., + **attrs: Dict[str, str] + ) -> None: ... + def get_source(self) -> str: ... + def get_destination(self) -> str: ... + def __hash__(self) -> int: ... + def __eq__(self, edge: Any) -> bool: ... + def parse_node_ref(self, node_str: str) -> str: ... + def to_string(self) -> str: ... + +class Graph(Common): + obj_dict: Any + def __init__( + self, + graph_name: str = ..., + obj_dict: Any | None = ..., + graph_type: str = ..., + strict: bool = ..., + suppress_disconnected: bool = ..., + simplify: bool = ..., + **attrs: Dict[str, str] + ) -> None: ... + def get_graph_type(self) -> str: ... + def get_top_graph_type(self) -> str: ... + def set_graph_defaults(self, **attrs: Dict[str, str]) -> None: ... + def get_graph_defaults(self, **attrs: Dict[str, str]) -> Dict[str, str]: ... + def set_node_defaults(self, **attrs: Dict[str, str]) -> None: ... + def get_node_defaults(self, **attrs: Dict[str, str]) -> Dict[str, str]: ... + def set_edge_defaults(self, **attrs: Dict[str, str]) -> None: ... + def get_edge_defaults(self, **attrs: Dict[str, str]) -> Dict[str, str]: ... + def set_simplify(self, simplify: bool) -> None: ... + def get_simplify(self) -> bool: ... + def set_type(self, graph_type: str) -> None: ... + def get_type(self) -> str: ... + def set_name(self, graph_name: str) -> None: ... + def get_name(self) -> str: ... + def set_strict(self, val: bool) -> None: ... + def get_strict(self, val: Any) -> bool: ... + def set_suppress_disconnected(self, val: bool) -> None: ... + def get_suppress_disconnected(self, val: Any) -> None: ... + def get_next_sequence_number(self) -> int: ... + def add_node(self, graph_node: Node) -> None: ... + def del_node(self, name: Union[str, Node], index: int | None = ...) -> bool: ... + def get_node(self, name: str) -> Node: ... + def get_nodes(self) -> List[Node]: ... + def get_node_list(self) -> List[Node]: ... + def add_edge(self, graph_edge: Edge) -> None: ... + def del_edge( + self, + src_or_list: Union[Sequence[Node], Node], + dst: str | int | None = ..., + index: int | None = ..., + ) -> bool: ... + def get_edge( + self, src_or_list: Union[Sequence[Node], Node], dst: Any | None = ... + ) -> List[Edge]: ... + def get_edges(self) -> List[Edge]: ... + def get_edge_list(self) -> List[Edge]: ... + def add_subgraph(self, sgraph: Union["Subgraph", "Cluster"]) -> None: ... + def get_subgraph(self, name: str) -> List["Subgraph"]: ... + def get_subgraphs(self) -> List["Subgraph"]: ... + def get_subgraph_list(self) -> List["Subgraph"]: ... + def set_parent_graph(self, parent_graph: "Graph") -> None: ... + def to_string(self) -> str: ... + +class Subgraph(Graph): + def __init__( + self, + graph_name: str = ..., + obj_dict: Any | Dict[str, str] = ..., + suppress_disconnected: bool = ..., + simplify: bool = ..., + **attrs: Dict[str, str] + ) -> None: ... + +class Cluster(Graph): + def __init__( + self, + graph_name: str = ..., + obj_dict: Any | Dict[str, str] = ..., + suppress_disconnected: bool = ..., + simplify: bool = ..., + **attrs: Dict[str, str] + ) -> None: ... + +class Dot(Graph): + shape_files: Any + formats: Any + prog: str + def __init__(self, *argsl: Any, **argsd: Dict[str, str]): ... + def set_shape_files(self, file_paths: Union[str, Sequence[str]]) -> None: ... + def set_prog(self, prog: str) -> None: ... + def write( + self, + path: str, + prog: Any | str = ..., + format: str = ..., + encoding: Any | str = ..., + ) -> bool: ... + def create( + self, prog: Any | str = ..., format: str = ..., encoding: Any | str = ... + ) -> bytes: ... diff --git a/typeshed/rdflib/__init__.pyi b/mypy-stubs/rdflib/__init__.pyi similarity index 92% rename from typeshed/rdflib/__init__.pyi rename to mypy-stubs/rdflib/__init__.pyi index 83d9d0ed5..03d8e9090 100644 --- a/typeshed/rdflib/__init__.pyi +++ b/mypy-stubs/rdflib/__init__.pyi @@ -1,7 +1,4 @@ -from rdflib import util as util -from rdflib.container import * from rdflib.graph import ConjunctiveGraph as ConjunctiveGraph -from rdflib.graph import Dataset as Dataset from rdflib.graph import Graph as Graph from rdflib.namespace import CSVW as CSVW from rdflib.namespace import DC as DC diff --git a/mypy-stubs/rdflib/collection.pyi b/mypy-stubs/rdflib/collection.pyi new file mode 100644 index 000000000..0bee98429 --- /dev/null +++ b/mypy-stubs/rdflib/collection.pyi @@ -0,0 +1,19 @@ +from typing import Any, Iterator + +from rdflib.graph import Graph +from rdflib.term import Node + +class Collection: + graph: Graph + uri: Node + def __init__(self, graph: Graph, uri: Node, seq: Any = ...) -> None: ... + def n3(self) -> str: ... + def __len__(self) -> int: ... + def index(self, item: Any) -> int: ... + def __getitem__(self, key: str) -> Any: ... + def __setitem__(self, key: str, value: Any) -> None: ... + def __delitem__(self, key: str) -> None: ... + def __iter__(self) -> Iterator[Any]: ... + def append(self, item: Any) -> Collection: ... + def __iadd__(self, other: Any) -> Collection: ... + def clear(self) -> Collection: ... diff --git a/typeshed/rdflib/container.pyi b/mypy-stubs/rdflib/container.pyi similarity index 100% rename from typeshed/rdflib/container.pyi rename to mypy-stubs/rdflib/container.pyi diff --git a/typeshed/rdflib/events.pyi b/mypy-stubs/rdflib/events.pyi similarity index 100% rename from typeshed/rdflib/events.pyi rename to mypy-stubs/rdflib/events.pyi diff --git a/typeshed/rdflib/exceptions.pyi b/mypy-stubs/rdflib/exceptions.pyi similarity index 58% rename from typeshed/rdflib/exceptions.pyi rename to mypy-stubs/rdflib/exceptions.pyi index 4066f6854..06366c971 100644 --- a/typeshed/rdflib/exceptions.pyi +++ b/mypy-stubs/rdflib/exceptions.pyi @@ -7,27 +7,27 @@ class Error(Exception): class TypeCheckError(Error): type: Any node: Any - def __init__(self, node) -> None: ... + def __init__(self, node: Any) -> None: ... class SubjectTypeError(TypeCheckError): msg: Any - def __init__(self, node) -> None: ... + def __init__(self, node: Any) -> None: ... class PredicateTypeError(TypeCheckError): msg: Any - def __init__(self, node) -> None: ... + def __init__(self, node: Any) -> None: ... class ObjectTypeError(TypeCheckError): msg: Any - def __init__(self, node) -> None: ... + def __init__(self, node: Any) -> None: ... class ContextTypeError(TypeCheckError): msg: Any - def __init__(self, node) -> None: ... + def __init__(self, node: Any) -> None: ... class ParserError(Error): msg: Any - def __init__(self, msg) -> None: ... + def __init__(self, msg: Any) -> None: ... class UniquenessError(Error): - def __init__(self, values) -> None: ... + def __init__(self, values: Any) -> None: ... diff --git a/typeshed/rdflib/graph.pyi b/mypy-stubs/rdflib/graph.pyi similarity index 50% rename from typeshed/rdflib/graph.pyi rename to mypy-stubs/rdflib/graph.pyi index 04c921f09..23c2e6e1f 100644 --- a/typeshed/rdflib/graph.pyi +++ b/mypy-stubs/rdflib/graph.pyi @@ -1,5 +1,21 @@ -from typing import Any, Iterator, List, Optional, Tuple, Union, overload +import pathlib +from typing import ( + IO, + Any, + Iterable, + Iterator, + List, + Optional, + Set, + Tuple, + Union, + overload, +) +from rdflib import query +from rdflib.collection import Collection +from rdflib.paths import Path +from rdflib.resource import Resource from rdflib.term import BNode, Identifier, Node class Graph(Node): @@ -17,11 +33,11 @@ class Graph(Node): store: Any = ... identifier: Any = ... namespace_manager: Any = ... - def toPython(self): ... + def toPython(self) -> str: ... def destroy(self, configuration: Any) -> None: ... def commit(self) -> None: ... def rollback(self) -> None: ... - def open(self, configuration: Any, create: bool = ...): ... + def open(self, configuration: Any, create: bool = ...) -> Any: ... def close(self, commit_pending_transaction: bool = ...) -> None: ... def add(self, triple: Any) -> None: ... def addN(self, quads: Any) -> None: ... @@ -34,35 +50,23 @@ class Graph(Node): Optional[Identifier], ], ) -> Iterator[Tuple[Identifier, Identifier, Identifier]]: ... - def __getitem__(self, item: Any): ... - def __len__(self): ... - def __iter__(self) -> Any: ... - def __contains__(self, triple: Any): ... - def __hash__(self) -> Any: ... - def __cmp__(self, other: Any): ... - def __eq__(self, other: Any) -> Any: ... - def __lt__(self, other: Any) -> Any: ... - def __le__(self, other: Any) -> Any: ... - def __gt__(self, other: Any) -> Any: ... - def __ge__(self, other: Any) -> Any: ... - def __iadd__(self, other: Any): ... - def __isub__(self, other: Any): ... - def __add__(self, other: Any): ... - def __mul__(self, other: Any): ... - def __sub__(self, other: Any): ... - def __xor__(self, other: Any): ... - __or__: Any = ... - __and__: Any = ... + def __getitem__( + self, item: slice | Path | Node + ) -> Iterator[ + Tuple[Identifier, Identifier, Identifier] | Tuple[Identifier, identifier] | Node + ]: ... + def __contains__(self, triple: Any) -> bool: ... + def __add__(self, other: Any) -> Graph: ... def set(self, triple: Any) -> None: ... def subjects( self, predicate: Optional[Any] = ..., object: Optional[Any] = ... - ) -> List[str]: ... + ) -> Iterable[Node]: ... def predicates( self, subject: Optional[Any] = ..., object: Optional[Any] = ... - ) -> None: ... + ) -> Iterable[Node]: ... def objects( self, subject: Optional[Any] = ..., predicate: Optional[Any] = ... - ) -> List[str]: ... + ) -> Iterable[Identifier]: ... def subject_predicates(self, object: Optional[Any] = ...) -> None: ... def subject_objects(self, predicate: Optional[Any] = ...) -> None: ... def predicate_objects(self, subject: Optional[Any] = ...) -> None: ... @@ -74,42 +78,90 @@ class Graph(Node): object: Optional[Any] = ..., default: Optional[Any] = ..., any: bool = ..., - ): ... - def label(self, subject: Any, default: str = ...): ... + ) -> Any: ... + def label(self, subject: Any, default: str = ...) -> Any: ... def preferredLabel( self, subject: Any, lang: Optional[Any] = ..., default: Optional[Any] = ..., labelProperties: Any = ..., - ): ... - def comment(self, subject: Any, default: str = ...): ... - def items(self, list: Any) -> None: ... + ) -> List[Tuple[Any, Any]]: ... + def comment(self, subject: Any, default: str = ...) -> Any: ... + def items(self, list: Any) -> Iterator[Any]: ... def transitiveClosure( self, func: Any, arg: Any, seen: Optional[Any] = ... - ) -> None: ... + ) -> Iterator[Any]: ... def transitive_objects( self, subject: Any, property: Any, remember: Optional[Any] = ... - ) -> None: ... + ) -> Iterator[Any]: ... def transitive_subjects( self, predicate: Any, object: Any, remember: Optional[Any] = ... - ) -> None: ... - def seq(self, subject: Any): ... - def qname(self, uri: Any): ... - def compute_qname(self, uri: Any, generate: bool = ...): ... + ) -> Iterator[Any]: ... + def seq(self, subject: Any) -> Seq | None: ... + def qname(self, uri: Any) -> Any: ... + def compute_qname(self, uri: Any, generate: bool = ...) -> Any: ... def bind( self, prefix: Any, namespace: Any, override: bool = ..., replace: bool = ... - ): ... - def namespaces(self) -> None: ... - def absolutize(self, uri: Any, defrag: int = ...): ... + ) -> Any: ... + def namespaces(self) -> Iterator[Tuple[Any, Any]]: ... + def absolutize(self, uri: Any, defrag: int = ...) -> Any: ... + + # no destination and non-None positional encoding + @overload + def serialize( + self, + destination: None, + format: str, + base: Optional[str], + encoding: str, + **args: Any, + ) -> bytes: ... + + # no destination and non-None keyword encoding + @overload def serialize( self, - destination: Optional[Any] = ..., + destination: None = ..., format: str = ..., - base: Optional[Any] = ..., - encoding: Optional[Any] = ..., - **args: Any - ): ... + base: Optional[str] = ..., + *, + encoding: str, + **args: Any, + ) -> bytes: ... + + # no destination and None encoding + @overload + def serialize( + self, + destination: None = ..., + format: str = ..., + base: Optional[str] = ..., + encoding: None = ..., + **args: Any, + ) -> str: ... + + # non-None destination + @overload + def serialize( + self, + destination: Union[str, pathlib.PurePath, IO[bytes]], + format: str = ..., + base: Optional[str] = ..., + encoding: Optional[str] = ..., + **args: Any, + ) -> "Graph": ... + + # fallback + @overload + def serialize( + self, + destination: Optional[Union[str, pathlib.PurePath, IO[bytes]]] = ..., + format: str = ..., + base: Optional[str] = ..., + encoding: Optional[str] = ..., + **args: Any, + ) -> Union[bytes, str, "Graph"]: ... def parse( self, source: Optional[Any] = ..., @@ -118,11 +170,11 @@ class Graph(Node): location: Optional[Any] = ..., file: Optional[Any] = ..., data: Optional[Any] = ..., - **args: Any - ): ... + **args: Any, + ) -> "Graph": ... def load( self, source: Any, publicID: Optional[Any] = ..., format: str = ... - ) -> None: ... + ) -> "Graph": ... def query( self, query_object: Any, @@ -131,8 +183,8 @@ class Graph(Node): initNs: Optional[Any] = ..., initBindings: Optional[Any] = ..., use_store_provided: bool = ..., - **kwargs: Any - ): ... + **kwargs: Any, + ) -> query.Result: ... def update( self, update_object: Any, @@ -140,25 +192,24 @@ class Graph(Node): initNs: Optional[Any] = ..., initBindings: Optional[Any] = ..., use_store_provided: bool = ..., - **kwargs: Any - ): ... - def n3(self): ... - def __reduce__(self): ... - def isomorphic(self, other: Any): ... - def connected(self): ... - def all_nodes(self): ... - def collection(self, identifier: Any): ... - def resource(self, identifier: Any): ... + **kwargs: Any, + ) -> Any: ... + def n3(self) -> str: ... + def isomorphic(self, other: Any) -> bool: ... + def connected(self) -> bool: ... + def all_nodes(self) -> Set[Any]: ... + def collection(self, identifier: Any) -> Collection: ... + def resource(self, identifier: Any) -> Resource: ... def skolemize( self, new_graph: Optional[Any] = ..., bnode: Optional[Any] = ..., authority: Optional[Any] = ..., basepath: Optional[Any] = ..., - ): ... + ) -> Graph: ... def de_skolemize( self, new_graph: Optional[Any] = ..., uriref: Optional[Any] = ... - ): ... + ) -> Graph: ... class ConjunctiveGraph(Graph): context_aware: bool = ... @@ -170,43 +221,21 @@ class ConjunctiveGraph(Graph): identifier: Optional[Any] = ..., default_graph_base: Optional[Any] = ..., ) -> None: ... - def __contains__(self, triple_or_quad: Any): ... def add(self, triple_or_quad: Any) -> None: ... def addN(self, quads: Any) -> None: ... def remove(self, triple_or_quad: Any) -> None: ... # def triples(self, triple_or_quad: Tuple[Optional[Union[str, BNode]], Optional[Union[str, BNode]], Optional[BNode]], context: Tuple[Optional[Union[str, BNode]], Optional[Union[str, BNode]], Optional[BNode]]) -> Iterator[Tuple[Identifier, Identifier, Identifier]]: ... def quads(self, triple_or_quad: Optional[Any] = ...) -> None: ... def triples_choices(self, triple: Any, context: Optional[Any] = ...) -> None: ... - def __len__(self): ... def contexts(self, triple: Optional[Any] = ...) -> None: ... def get_context( - self, identifier: Any, quoted: bool = ..., base: Optional[Any] = ... - ): ... - def remove_context(self, context: Any) -> None: ... - def context_id(self, uri: Any, context_id: Optional[Any] = ...): ... - def parse( - self, - source: Optional[Any] = ..., - publicID: Optional[Any] = ..., - format: Optional[str] = ..., - location: Optional[Any] = ..., - file: Optional[Any] = ..., - data: Optional[Any] = ..., - **args: Any - ): ... - def __reduce__(self): ... - -class Dataset(ConjunctiveGraph): - __doc__: str = ... - default_context: Any = ... - default_union: Any = ... - def __init__( self, - store: str = ..., - default_union: bool = ..., - default_graph_base: Optional[Any] = ..., - ) -> None: ... - def graph(self, identifier: Optional[Any] = ..., base: Optional[Any] = ...): ... + identifier: Node | str | None, + quoted: bool = ..., + base: Optional[str] = ..., + ) -> Graph: ... + def remove_context(self, context: Any) -> None: ... + def context_id(self, uri: Any, context_id: Optional[Any] = ...) -> Any: ... def parse( self, source: Optional[Any] = ..., @@ -215,60 +244,9 @@ class Dataset(ConjunctiveGraph): location: Optional[Any] = ..., file: Optional[Any] = ..., data: Optional[Any] = ..., - **args: Any - ): ... - def add_graph(self, g: Any): ... - def remove_graph(self, g: Any) -> None: ... - def contexts(self, triple: Optional[Any] = ...) -> None: ... - graphs: Any = ... - -class QuotedGraph(Graph): - def __init__(self, store: Any, identifier: Any) -> None: ... - def add(self, triple: Any) -> None: ... - def addN(self, quads: Any) -> None: ... - def n3(self): ... - def __reduce__(self): ... + **args: Any, + ) -> Graph: ... class Seq: - def __init__(self, graph: Any, subject: Any) -> None: ... - def toPython(self): ... - def __iter__(self) -> Any: ... - def __len__(self): ... - def __getitem__(self, index: Any): ... - -class ModificationException(Exception): - def __init__(self) -> None: ... - -class UnSupportedAggregateOperation(Exception): - def __init__(self) -> None: ... - -class ReadOnlyGraphAggregate(ConjunctiveGraph): - graphs: Any = ... - def __init__(self, graphs: Any, store: str = ...) -> None: ... - def destroy(self, configuration: Any) -> None: ... - def commit(self) -> None: ... - def rollback(self) -> None: ... - def open(self, configuration: Any, create: bool = ...) -> None: ... - def add(self, triple: Any) -> None: ... - def addN(self, quads: Any) -> None: ... - def remove(self, triple: Any) -> None: ... - def triples( - self, - triple: Tuple[ - Optional[Union[str, Identifier]], - Optional[Union[str, Identifier]], - Optional[Identifier], - ], - ) -> Iterator[Tuple[Identifier, Identifier, Identifier]]: ... - def __contains__(self, triple_or_quad: Any): ... - def __len__(self): ... - def __hash__(self) -> Any: ... - def __cmp__(self, other: Any): ... - def __iadd__(self, other: Any) -> None: ... - def __isub__(self, other: Any) -> None: ... - def triples_choices(self, triple: Any, context: Optional[Any] = ...) -> None: ... - def qname(self, uri: Any): ... - def compute_qname(self, uri: Any, generate: bool = ...): ... - def namespaces(self) -> None: ... - def absolutize(self, uri: Any, defrag: int = ...) -> None: ... - def n3(self) -> None: ... + def __init__(self, graph: Graph, subject: Any) -> None: ... + def toPython(self) -> Seq: ... diff --git a/typeshed/rdflib/namespace/_CSVW.pyi b/mypy-stubs/rdflib/namespace/_CSVW.pyi similarity index 100% rename from typeshed/rdflib/namespace/_CSVW.pyi rename to mypy-stubs/rdflib/namespace/_CSVW.pyi diff --git a/typeshed/rdflib/namespace/_DC.pyi b/mypy-stubs/rdflib/namespace/_DC.pyi similarity index 100% rename from typeshed/rdflib/namespace/_DC.pyi rename to mypy-stubs/rdflib/namespace/_DC.pyi diff --git a/typeshed/rdflib/namespace/_DCAT.pyi b/mypy-stubs/rdflib/namespace/_DCAT.pyi similarity index 100% rename from typeshed/rdflib/namespace/_DCAT.pyi rename to mypy-stubs/rdflib/namespace/_DCAT.pyi diff --git a/typeshed/rdflib/namespace/_DCTERMS.pyi b/mypy-stubs/rdflib/namespace/_DCTERMS.pyi similarity index 100% rename from typeshed/rdflib/namespace/_DCTERMS.pyi rename to mypy-stubs/rdflib/namespace/_DCTERMS.pyi diff --git a/typeshed/rdflib/namespace/_DOAP.pyi b/mypy-stubs/rdflib/namespace/_DOAP.pyi similarity index 100% rename from typeshed/rdflib/namespace/_DOAP.pyi rename to mypy-stubs/rdflib/namespace/_DOAP.pyi diff --git a/typeshed/rdflib/namespace/_FOAF.pyi b/mypy-stubs/rdflib/namespace/_FOAF.pyi similarity index 100% rename from typeshed/rdflib/namespace/_FOAF.pyi rename to mypy-stubs/rdflib/namespace/_FOAF.pyi diff --git a/typeshed/rdflib/namespace/_ODRL2.pyi b/mypy-stubs/rdflib/namespace/_ODRL2.pyi similarity index 100% rename from typeshed/rdflib/namespace/_ODRL2.pyi rename to mypy-stubs/rdflib/namespace/_ODRL2.pyi diff --git a/typeshed/rdflib/namespace/_ORG.pyi b/mypy-stubs/rdflib/namespace/_ORG.pyi similarity index 100% rename from typeshed/rdflib/namespace/_ORG.pyi rename to mypy-stubs/rdflib/namespace/_ORG.pyi diff --git a/typeshed/rdflib/namespace/_OWL.pyi b/mypy-stubs/rdflib/namespace/_OWL.pyi similarity index 100% rename from typeshed/rdflib/namespace/_OWL.pyi rename to mypy-stubs/rdflib/namespace/_OWL.pyi diff --git a/typeshed/rdflib/namespace/_PROF.pyi b/mypy-stubs/rdflib/namespace/_PROF.pyi similarity index 100% rename from typeshed/rdflib/namespace/_PROF.pyi rename to mypy-stubs/rdflib/namespace/_PROF.pyi diff --git a/typeshed/rdflib/namespace/_PROV.pyi b/mypy-stubs/rdflib/namespace/_PROV.pyi similarity index 100% rename from typeshed/rdflib/namespace/_PROV.pyi rename to mypy-stubs/rdflib/namespace/_PROV.pyi diff --git a/typeshed/rdflib/namespace/_QB.pyi b/mypy-stubs/rdflib/namespace/_QB.pyi similarity index 100% rename from typeshed/rdflib/namespace/_QB.pyi rename to mypy-stubs/rdflib/namespace/_QB.pyi diff --git a/typeshed/rdflib/namespace/_RDF.pyi b/mypy-stubs/rdflib/namespace/_RDF.pyi similarity index 100% rename from typeshed/rdflib/namespace/_RDF.pyi rename to mypy-stubs/rdflib/namespace/_RDF.pyi diff --git a/typeshed/rdflib/namespace/_RDFS.pyi b/mypy-stubs/rdflib/namespace/_RDFS.pyi similarity index 100% rename from typeshed/rdflib/namespace/_RDFS.pyi rename to mypy-stubs/rdflib/namespace/_RDFS.pyi diff --git a/typeshed/rdflib/namespace/_SDO.pyi b/mypy-stubs/rdflib/namespace/_SDO.pyi similarity index 100% rename from typeshed/rdflib/namespace/_SDO.pyi rename to mypy-stubs/rdflib/namespace/_SDO.pyi diff --git a/typeshed/rdflib/namespace/_SH.pyi b/mypy-stubs/rdflib/namespace/_SH.pyi similarity index 100% rename from typeshed/rdflib/namespace/_SH.pyi rename to mypy-stubs/rdflib/namespace/_SH.pyi diff --git a/typeshed/rdflib/namespace/_SKOS.pyi b/mypy-stubs/rdflib/namespace/_SKOS.pyi similarity index 100% rename from typeshed/rdflib/namespace/_SKOS.pyi rename to mypy-stubs/rdflib/namespace/_SKOS.pyi diff --git a/typeshed/rdflib/namespace/_SOSA.pyi b/mypy-stubs/rdflib/namespace/_SOSA.pyi similarity index 100% rename from typeshed/rdflib/namespace/_SOSA.pyi rename to mypy-stubs/rdflib/namespace/_SOSA.pyi diff --git a/typeshed/rdflib/namespace/_SSN.pyi b/mypy-stubs/rdflib/namespace/_SSN.pyi similarity index 100% rename from typeshed/rdflib/namespace/_SSN.pyi rename to mypy-stubs/rdflib/namespace/_SSN.pyi diff --git a/typeshed/rdflib/namespace/_TIME.pyi b/mypy-stubs/rdflib/namespace/_TIME.pyi similarity index 100% rename from typeshed/rdflib/namespace/_TIME.pyi rename to mypy-stubs/rdflib/namespace/_TIME.pyi diff --git a/typeshed/rdflib/namespace/_VOID.pyi b/mypy-stubs/rdflib/namespace/_VOID.pyi similarity index 100% rename from typeshed/rdflib/namespace/_VOID.pyi rename to mypy-stubs/rdflib/namespace/_VOID.pyi diff --git a/typeshed/rdflib/namespace/_XSD.pyi b/mypy-stubs/rdflib/namespace/_XSD.pyi similarity index 100% rename from typeshed/rdflib/namespace/_XSD.pyi rename to mypy-stubs/rdflib/namespace/_XSD.pyi diff --git a/typeshed/rdflib/namespace/__init__.pyi b/mypy-stubs/rdflib/namespace/__init__.pyi similarity index 51% rename from typeshed/rdflib/namespace/__init__.pyi rename to mypy-stubs/rdflib/namespace/__init__.pyi index 6803addd8..e5342fd9b 100644 --- a/typeshed/rdflib/namespace/__init__.pyi +++ b/mypy-stubs/rdflib/namespace/__init__.pyi @@ -1,13 +1,11 @@ -from typing import Any +from typing import Any, Tuple from rdflib.term import URIRef __all__ = [ - "is_ncname", "split_uri", "Namespace", "ClosedNamespace", - "NamespaceManager", "RDF", "RDFS", "CSVW", @@ -34,64 +32,34 @@ __all__ = [ ] class Namespace(str): - def __new__(cls, value: Any): ... @property - def title(self): ... - def term(self, name: Any): ... - def __getitem__(self, key: Any): ... - def __getattr__(self, name: Any): ... - def __contains__(self, ref): ... + def title(self) -> URIRef: ... + def term(self, name: Any) -> URIRef: ... + def __getitem__(self, key: Any) -> URIRef: ... + def __getattr__(self, name: str) -> URIRef: ... class URIPattern(str): - def __new__(cls, value: Any): ... - def __mod__(self, *args: Any, **kwargs: Any): ... - def format(self, *args: Any, **kwargs: Any): ... + def format(self, *args: Any, **kwargs: Any) -> str: ... class DefinedNamespaceMeta(type): - def __getitem__(cls, name, default: Any | None = ...): ... - def __getattr__(cls, name): ... - def __add__(cls, other): ... - def __contains__(cls, item): ... + def __getitem__(cls, name: Any, default: Any | None = ...) -> URIRef: ... + def __getattr__(cls, name: Any) -> URIRef: ... + def __contains__(cls, item: Any) -> bool: ... class DefinedNamespace(metaclass=DefinedNamespaceMeta): def __init__(self) -> None: ... class ClosedNamespace(Namespace): - def __new__(cls, uri: Any, terms: Any): ... + def __new__(cls, uri: Any, terms: Any) -> ClosedNamespace: ... @property - def uri(self): ... - def term(self, name: Any): ... - def __getitem__(self, key: Any): ... - def __getattr__(self, name: Any): ... - def __dir__(self): ... - def __contains__(self, ref): ... + def uri(self) -> str: ... NAME_START_CATEGORIES = ["Ll", "Lu", "Lo", "Lt", "Nl"] SPLIT_START_CATEGORIES = NAME_START_CATEGORIES + ["Nd"] -class NamespaceManager: - graph: Any - def __init__(self, graph) -> None: ... - def __contains__(self, ref): ... - def reset(self) -> None: ... - @property - def store(self): ... - def qname(self, uri): ... - def qname_strict(self, uri): ... - def normalizeUri(self, rdfTerm) -> str: ... - def compute_qname(self, uri, generate: bool = ...): ... - def compute_qname_strict(self, uri, generate: bool = ...): ... - def bind( - self, prefix, namespace, override: bool = ..., replace: bool = ... - ) -> None: ... - def namespaces(self) -> None: ... - def absolutize(self, uri, defrag: int = ...): ... - -def is_ncname(name): ... - XMLNS = "http://www.w3.org/XML/1998/namespace" -def split_uri(uri: Any, split_start: Any = ...): ... +def split_uri(uri: Any, split_start: Any = ...) -> Tuple[str, str]: ... from rdflib.namespace._CSVW import CSVW from rdflib.namespace._DC import DC diff --git a/mypy-stubs/rdflib/parser.pyi b/mypy-stubs/rdflib/parser.pyi new file mode 100644 index 000000000..4c628bec9 --- /dev/null +++ b/mypy-stubs/rdflib/parser.pyi @@ -0,0 +1,5 @@ +from typing import Any + +class Parser: + def __init__(self) -> None: ... + def parse(self, source: Any, sink: Any) -> None: ... diff --git a/mypy-stubs/rdflib/paths.pyi b/mypy-stubs/rdflib/paths.pyi new file mode 100644 index 000000000..de350b131 --- /dev/null +++ b/mypy-stubs/rdflib/paths.pyi @@ -0,0 +1,29 @@ +from collections.abc import Generator +from typing import Any, Callable, Union + +from rdflib.term import Node as Node +from rdflib.term import URIRef as URIRef + +ZeroOrMore: str +OneOrMore: str +ZeroOrOne: str + +class Path: + __or__: Callable[[Path, Union["URIRef", "Path"]], "AlternativePath"] + __invert__: Callable[[Path], "InvPath"] + __neg__: Callable[[Path], "NegatedPath"] + __truediv__: Callable[[Path, Union["URIRef", "Path"]], "SequencePath"] + __mul__: Callable[[Path, str], "MulPath"] + def __hash__(self) -> int: ... + def __eq__(self, other: Any) -> bool: ... + def __lt__(self, other: Any) -> bool: ... + def __le__(self, other: Any) -> bool: ... + def __ne__(self, other: Any) -> bool: ... + def __gt__(self, other: Any) -> bool: ... + def __ge__(self, other: Any) -> bool: ... + +class InvPath(Path): ... +class SequencePath(Path): ... +class AlternativePath(Path): ... +class MulPath(Path): ... +class NegatedPath(Path): ... diff --git a/mypy-stubs/rdflib/plugin.pyi b/mypy-stubs/rdflib/plugin.pyi new file mode 100644 index 000000000..9b94e99f3 --- /dev/null +++ b/mypy-stubs/rdflib/plugin.pyi @@ -0,0 +1,10 @@ +from typing import Any, Type, TypeVar + +from rdflib.exceptions import Error + +def register(name: str, kind: Any, module_path: str, class_name: str) -> None: ... + +PluginT = TypeVar("PluginT") + +def get(name: str, kind: Type[PluginT]) -> Type[PluginT]: ... +def plugins(name: Any | None = ..., kind: Any | None = ...) -> None: ... diff --git a/typeshed/rdflib/plugins/__init__.pyi b/mypy-stubs/rdflib/plugins/__init__.pyi similarity index 100% rename from typeshed/rdflib/plugins/__init__.pyi rename to mypy-stubs/rdflib/plugins/__init__.pyi diff --git a/typeshed/rdflib/plugins/parsers/__init__.pyi b/mypy-stubs/rdflib/plugins/parsers/__init__.pyi similarity index 100% rename from typeshed/rdflib/plugins/parsers/__init__.pyi rename to mypy-stubs/rdflib/plugins/parsers/__init__.pyi diff --git a/typeshed/rdflib/plugins/parsers/notation3.pyi b/mypy-stubs/rdflib/plugins/parsers/notation3.pyi similarity index 66% rename from typeshed/rdflib/plugins/parsers/notation3.pyi rename to mypy-stubs/rdflib/plugins/parsers/notation3.pyi index 1413bf877..e022eda40 100644 --- a/typeshed/rdflib/plugins/parsers/notation3.pyi +++ b/mypy-stubs/rdflib/plugins/parsers/notation3.pyi @@ -4,10 +4,8 @@ from typing import Any -from rdflib.parser import Parser - class BadSyntax(SyntaxError): lines = ... # type: Any - def __init__(self, uri, lines, argstr, i, why): ... + def __init__(self, uri: Any, lines: Any, argstr: Any, i: Any, why: Any): ... @property - def message(self): ... + def message(self) -> Any: ... diff --git a/mypy-stubs/rdflib/query.pyi b/mypy-stubs/rdflib/query.pyi new file mode 100644 index 000000000..db0d89290 --- /dev/null +++ b/mypy-stubs/rdflib/query.pyi @@ -0,0 +1,42 @@ +from io import BufferedIOBase +from typing import Any, Dict, Iterator, List, Optional, Tuple, overload + +from rdflib import URIRef, Variable +from typing_extensions import SupportsIndex + +class ResultRow: # Tuple[Variable, URIRef]): + def __new__( + cls, values: Dict[Variable, URIRef], labels: List[Variable] + ) -> ResultRow: ... + def __getattr__(self, name: str) -> Any: ... + @overload + def __getitem__(self, name: str) -> URIRef: ... + @overload + def __getitem__(self, __x: SupportsIndex) -> Variable | URIRef: ... + @overload + def __getitem__(self, __x: slice) -> Tuple[Variable | URIRef, ...]: ... + def get(self, name: str, default: Any | None = ...) -> URIRef: ... + def asdict(self) -> Dict[Variable, URIRef]: ... + +class Result: + type: Any + vars: Any + askAnswer: Any + graph: Any + def __init__(self, type_: str) -> None: ... + bindings: Any + def __iter__(self) -> Iterator[bool | ResultRow]: ... + @staticmethod + def parse( + source: str | None = ..., + format: str | None = ..., + content_type: str | None = ..., + **kwargs: Any + ) -> Result: ... + def serialize( + self, + destination: str | BufferedIOBase | None = ..., + encoding: str = ..., + format: str = ..., + **args: Any + ) -> Optional[bytes]: ... diff --git a/mypy-stubs/rdflib/resource.pyi b/mypy-stubs/rdflib/resource.pyi new file mode 100644 index 000000000..e520dbe66 --- /dev/null +++ b/mypy-stubs/rdflib/resource.pyi @@ -0,0 +1,33 @@ +from typing import Any, Iterable, Iterator, Tuple + +from _typeshed import Incomplete +from rdflib.graph import Graph, Seq +from rdflib.term import Node + +class Resource: + def __init__(self, graph: Graph, subject: Node) -> None: ... + graph: Incomplete + identifier: Incomplete + def add(self, p: Node, o: Node) -> None: ... + def remove(self, p: Node, o: Node | None = ...) -> None: ... + def set(self, p: Node, o: Node) -> None: ... + def subjects(self, predicate: Any | None = ...) -> Iterable[Node]: ... + def predicates(self, o: Incomplete | None = ...) -> Iterable[Node]: ... + def objects(self, predicate: Any | None = ...) -> Iterable[Node]: ... + def subject_predicates(self) -> Iterator[Tuple[Node, Node]]: ... + def subject_objects(self) -> Iterator[Tuple[Node, Node]]: ... + def predicate_objects(self) -> Iterator[Tuple[Node, Node]]: ... + def value( + self, p: Node, o: Node | None = ..., default: Any | None = ..., any: bool = ... + ) -> Any: ... + def label(self) -> Any: ... + def comment(self) -> Any: ... + def items(self) -> Iterator[Any]: ... + def transitive_objects( + self, predicate: Node, remember: Any | None = ... + ) -> Iterator[Any]: ... + def transitive_subjects( + self, predicate: Node, remember: Any | None = ... + ) -> Iterator[Any]: ... + def seq(self) -> Seq | None: ... + def qname(self) -> Any: ... diff --git a/typeshed/rdflib/serializer.pyi b/mypy-stubs/rdflib/serializer.pyi similarity index 100% rename from typeshed/rdflib/serializer.pyi rename to mypy-stubs/rdflib/serializer.pyi diff --git a/typeshed/rdflib/store.pyi b/mypy-stubs/rdflib/store.pyi similarity index 93% rename from typeshed/rdflib/store.pyi rename to mypy-stubs/rdflib/store.pyi index d60517327..fd6b3eda9 100644 --- a/typeshed/rdflib/store.pyi +++ b/mypy-stubs/rdflib/store.pyi @@ -39,8 +39,10 @@ class Store: def triples(self, triple_pattern, context: Any | None = ...) -> None: ... def __len__(self, context: Any | None = ...) -> None: ... def contexts(self, triple: Any | None = ...) -> None: ... - def query(self, query, initNs, initBindings, queryGraph, **kwargs) -> None: ... - def update(self, update, initNs, initBindings, queryGraph, **kwargs) -> None: ... + def query(self, query, initNs, initBindings, queryGraph, **kwargs: Any) -> None: ... + def update( + self, update, initNs, initBindings, queryGraph, **kwargs: Any + ) -> None: ... def bind(self, prefix, namespace) -> None: ... def prefix(self, namespace) -> None: ... def namespace(self, prefix) -> None: ... diff --git a/mypy-stubs/rdflib/term.pyi b/mypy-stubs/rdflib/term.pyi new file mode 100644 index 000000000..5b2fdd0ee --- /dev/null +++ b/mypy-stubs/rdflib/term.pyi @@ -0,0 +1,49 @@ +from typing import Any, Callable, Union + +class Node: ... + +class Identifier(Node, str): + def __new__(cls, value: Union[Any, str, None]) -> "Identifier": ... + def eq(self, other: Any) -> bool: ... + def neq(self, other: Any) -> bool: ... + +class URIRef(Identifier): + def toPython(self) -> str: ... + def n3(self, namespace_manager: Any | None = ...) -> str: ... + def defrag(self) -> "URIRef": ... + def de_skolemize(self) -> "BNode": ... + +class Genid(URIRef): ... +class RDFLibGenid(Genid): ... + +class BNode(Identifier): + def toPython(self) -> str: ... + def n3(self, namespace_manager: Any | None = ...) -> str: ... + def skolemize( + self, authority: Any | None = ..., basepath: Any | None = ... + ) -> "RDFLibGenid": ... + +class Literal(Identifier): + def normalize(self) -> "Literal": ... + @property + def value(self) -> Any: ... + @property + def language(self) -> str | None: ... + @property + def datatype(self) -> Any: ... + def eq(self, other: Any) -> bool: ... + def neq(self, other: Any) -> bool: ... + def n3(self, namespace_manager: Any | None = ...) -> str: ... + def toPython(self) -> str: ... + +def bind( + datatype: str | None, + pythontype: type, + constructor: Callable[..., Any] | None = ..., + lexicalizer: Callable[..., Any] | None = ..., + datatype_specific: bool = ..., +) -> None: ... + +class Variable(Identifier): + def toPython(self) -> str: ... + def n3(self, namespace_manager: Any | None = ...) -> str: ... diff --git a/typeshed/rdflib/util.pyi b/mypy-stubs/rdflib/util.pyi similarity index 100% rename from typeshed/rdflib/util.pyi rename to mypy-stubs/rdflib/util.pyi diff --git a/typeshed/ruamel/__init__.py b/mypy-stubs/ruamel/__init__.py similarity index 100% rename from typeshed/ruamel/__init__.py rename to mypy-stubs/ruamel/__init__.py diff --git a/typeshed/shellescape/__init__.pyi b/mypy-stubs/shellescape/__init__.pyi similarity index 100% rename from typeshed/shellescape/__init__.pyi rename to mypy-stubs/shellescape/__init__.pyi diff --git a/typeshed/shellescape/main.pyi b/mypy-stubs/shellescape/main.pyi similarity index 100% rename from typeshed/shellescape/main.pyi rename to mypy-stubs/shellescape/main.pyi diff --git a/typeshed/subprocess.pyi b/mypy-stubs/subprocess.pyi similarity index 97% rename from typeshed/subprocess.pyi rename to mypy-stubs/subprocess.pyi index f08a812d4..880ab4736 100644 --- a/typeshed/subprocess.pyi +++ b/mypy-stubs/subprocess.pyi @@ -1,7 +1,22 @@ import sys -from _typeshed import Self, StrOrBytesPath from types import TracebackType -from typing import IO, Any, AnyStr, Callable, Generic, Iterable, Mapping, Sequence, Tuple, Type, TypeVar, Union, overload +from typing import ( + IO, + Any, + AnyStr, + Callable, + Generic, + Iterable, + Mapping, + Sequence, + Tuple, + Type, + TypeVar, + Union, + overload, +) + +from _typeshed import Self, StrOrBytesPath from typing_extensions import Literal if sys.version_info >= (3, 9): @@ -44,7 +59,13 @@ class CompletedProcess(Generic[_T]): # and writing all the overloads would be horrific. stdout: _T stderr: _T - def __init__(self, args: _CMD, returncode: int, stdout: _T | None = ..., stderr: _T | None = ...) -> None: ... + def __init__( + self, + args: _CMD, + returncode: int, + stdout: _T | None = ..., + stderr: _T | None = ..., + ) -> None: ... def check_returncode(self) -> None: ... if sys.version_info >= (3, 9): def __class_getitem__(cls, item: Any) -> GenericAlias: ... @@ -683,7 +704,13 @@ DEVNULL: int class SubprocessError(Exception): ... class TimeoutExpired(SubprocessError): - def __init__(self, cmd: _CMD, timeout: float, output: _TXT | None = ..., stderr: _TXT | None = ...) -> None: ... + def __init__( + self, + cmd: _CMD, + timeout: float, + output: _TXT | None = ..., + stderr: _TXT | None = ..., + ) -> None: ... # morally: _CMD cmd: Any timeout: float @@ -702,7 +729,13 @@ class CalledProcessError(SubprocessError): # morally: _TXT | None stdout: Any stderr: Any - def __init__(self, returncode: int, cmd: _CMD, output: _TXT | None = ..., stderr: _TXT | None = ...) -> None: ... + def __init__( + self, + returncode: int, + cmd: _CMD, + output: _TXT | None = ..., + stderr: _TXT | None = ..., + ) -> None: ... class Popen(Generic[AnyStr]): args: _CMD @@ -991,11 +1024,14 @@ class Popen(Generic[AnyStr]): encoding: str | None = ..., errors: str | None = ..., ) -> Popen[Any]: ... + def poll(self) -> int | None: ... if sys.version_info >= (3, 7): def wait(self, timeout: float | None = ...) -> int: ... else: - def wait(self, timeout: float | None = ..., endtime: float | None = ...) -> int: ... + def wait( + self, timeout: float | None = ..., endtime: float | None = ... + ) -> int: ... # Return str/bytes def communicate( self, @@ -1008,7 +1044,10 @@ class Popen(Generic[AnyStr]): def kill(self) -> None: ... def __enter__(self: Self) -> Self: ... def __exit__( - self, type: Type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None + self, + type: Type[BaseException] | None, + value: BaseException | None, + traceback: TracebackType | None, ) -> None: ... if sys.version_info >= (3, 9): def __class_getitem__(cls, item: Any) -> GenericAlias: ... diff --git a/typeshed/urllib/__init__.py b/mypy-stubs/urllib/__init__.py similarity index 100% rename from typeshed/urllib/__init__.py rename to mypy-stubs/urllib/__init__.py diff --git a/typeshed/urllib/parse.pyi b/mypy-stubs/urllib/parse.pyi similarity index 100% rename from typeshed/urllib/parse.pyi rename to mypy-stubs/urllib/parse.pyi diff --git a/mypy.ini b/mypy.ini index 0694696ec..ae17b1e0b 100644 --- a/mypy.ini +++ b/mypy.ini @@ -14,3 +14,9 @@ ignore_errors = True [mypy-past.builtins.*] ignore_missing_imports = True + +[mypy-galaxy.tool_util.*] +ignore_missing_imports = True + +[mypy-cwltool.software_requirements] +warn_unused_ignores= False diff --git a/requirements.txt b/requirements.txt index 7ec64a4d3..38e42d041 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ requests>=2.4.3 +ruamel.yaml>=0.16.0,<0.17.22;python_version>='3.10' ruamel.yaml>=0.15,<0.17.22 rdflib>=4.2.2,<6.3 rdflib>= 4.2.2, < 6.0.0;python_version<='3.6' diff --git a/test-requirements.txt b/test-requirements.txt index 434506ab3..c955c702d 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -7,3 +7,4 @@ pytest-cov arcp >= 0.2.0 rdflib-jsonld>=0.4.0, <= 0.6.1;python_version<='3.6' -rrequirements.txt +galaxy-tool-util >= 21.1.0 diff --git a/tests/test_dependencies.py b/tests/test_dependencies.py index 534dd4d5c..f26e45d5e 100644 --- a/tests/test_dependencies.py +++ b/tests/test_dependencies.py @@ -11,7 +11,7 @@ deps = None # type: Optional[ModuleType] try: - from galaxy.tool_util import deps + from galaxy.tool_util import deps # type: ignore[no-redef] except ImportError: pass diff --git a/tests/test_provenance.py b/tests/test_provenance.py index 03b54d81e..7dd7790df 100644 --- a/tests/test_provenance.py +++ b/tests/test_provenance.py @@ -4,7 +4,7 @@ import sys import urllib from pathlib import Path -from typing import Any, Generator +from typing import IO, Any, Generator, cast import arcp import bagit @@ -286,15 +286,15 @@ def check_bagit(base_path: Path) -> None: assert not list(missing_tagfiles), "Some files only in tagmanifest" bag.validate() # TODO: Check other bag-info attributes - assert arcp.is_arcp_uri(bag.info.get("External-Identifier")) + assert arcp.is_arcp_uri(cast(str, bag.info.get("External-Identifier"))) def find_arcp(base_path: Path) -> str: # First try to find External-Identifier bag = bagit.Bag(str(base_path)) - ext_id = bag.info.get("External-Identifier") + ext_id = cast(str, bag.info.get("External-Identifier")) if arcp.is_arcp_uri(ext_id): - return str(ext_id) + return ext_id raise Exception("Can't find External-Identifier") @@ -326,7 +326,7 @@ def check_ro(base_path: Path, nested: bool = False) -> None: g.parse(data=jsonld, format="json-ld", publicID=base) if os.environ.get("DEBUG"): print("Parsed manifest:\n\n") - g.serialize(sys.stdout, format="ttl") + g.serialize(cast(IO[bytes], sys.stdout), format="ttl") _ro = None for _ro in g.subjects(ORE.isDescribedBy, URIRef(base)): @@ -338,19 +338,19 @@ def check_ro(base_path: Path, nested: bool = False) -> None: profile = dc break assert profile is not None, "Can't find profile with dct:conformsTo" - assert profile == URIRef(provenance_constants.CWLPROV_VERSION), ( - "Unexpected cwlprov version " + profile - ) + assert profile == URIRef( + provenance_constants.CWLPROV_VERSION + ), f"Unexpected cwlprov version {profile}" paths = [] externals = [] for aggregate in g.objects(_ro, ORE.aggregates): - if not arcp.is_arcp_uri(aggregate): + if not arcp.is_arcp_uri(cast(str, aggregate)): externals.append(aggregate) # Won't check external URIs existence here # TODO: Check they are not relative! continue - lfile = _arcp2file(base_path, aggregate) + lfile = _arcp2file(base_path, cast(str, aggregate)) paths.append(os.path.relpath(lfile, base_path)) assert os.path.isfile(lfile), f"Can't find aggregated {lfile}" @@ -451,7 +451,7 @@ def check_prov( g.parse(file=f, format="nt", publicID=arcp_root) if os.environ.get("DEBUG"): print("Parsed %s:\n\n" % prov_file) - g.serialize(sys.stdout, format="ttl") + g.serialize(cast(IO[bytes], sys.stdout), format="ttl") runs = set(g.subjects(RDF.type, WFPROV.WorkflowRun)) # main workflow run URI (as urn:uuid:) should correspond to arcp uuid part diff --git a/typeshed/arcp/__init__.pyi b/typeshed/arcp/__init__.pyi deleted file mode 100644 index 8eb5f17cf..000000000 --- a/typeshed/arcp/__init__.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from .generate import arcp_hash as arcp_hash, arcp_location as arcp_location, arcp_name as arcp_name, arcp_random as arcp_random, arcp_uuid as arcp_uuid -from .parse import is_arcp_uri as is_arcp_uri, parse_arcp as parse_arcp - -ARCP: str -NI: str -NIH: str diff --git a/typeshed/arcp/generate.pyi b/typeshed/arcp/generate.pyi deleted file mode 100644 index a4d59a758..000000000 --- a/typeshed/arcp/generate.pyi +++ /dev/null @@ -1,10 +0,0 @@ -from base64 import urlsafe_b64decode as urlsafe_b64decode -from typing import Any, Optional - -SCHEME: str - -def arcp_uuid(uuid: Any, path: str = ..., query: Optional[Any] = ..., fragment: Optional[Any] = ...): ... -def arcp_random(path: str = ..., query: Optional[Any] = ..., fragment: Optional[Any] = ..., uuid: Optional[Any] = ...): ... -def arcp_location(location: Any, path: str = ..., query: Optional[Any] = ..., fragment: Optional[Any] = ..., namespace: Any = ...): ... -def arcp_name(name: Any, path: str = ..., query: Optional[Any] = ..., fragment: Optional[Any] = ...): ... -def arcp_hash(bytes: bytes = ..., path: str = ..., query: Optional[Any] = ..., fragment: Optional[Any] = ..., hash: Optional[Any] = ...): ... diff --git a/typeshed/arcp/parse.pyi b/typeshed/arcp/parse.pyi deleted file mode 100644 index 146d4f8f7..000000000 --- a/typeshed/arcp/parse.pyi +++ /dev/null @@ -1,25 +0,0 @@ -from urllib.parse import ParseResult -from typing import Any -from uuid import NAMESPACE_URL as NAMESPACE_URL - -SCHEME: str - -def is_arcp_uri(uri: Any): ... -def parse_arcp(uri: Any): ... -def urlparse(uri: Any): ... - -class ARCPParseResult(ParseResult): - def __init__(self, *args: Any) -> None: ... - @property - def prefix(self): ... - @property - def name(self): ... - @property - def uuid(self): ... - @property - def ni(self): ... - def ni_uri(self, authority: str = ...): ... - def nih_uri(self): ... - def ni_well_known(self, base: str = ...): ... - @property - def hash(self): ... diff --git a/typeshed/argcomplete/__init__.pyi b/typeshed/argcomplete/__init__.pyi deleted file mode 100644 index 47f9165a8..000000000 --- a/typeshed/argcomplete/__init__.pyi +++ /dev/null @@ -1,22 +0,0 @@ -from typing import Any, Optional -import argparse -class CompletionFinder: - always_complete_options: Any = ... - exclude: Any = ... - validator: Any = ... - print_suppressed: Any = ... - completing: bool = ... - default_completer: Any = ... - append_space: Any = ... - def __init__(self, argument_parser: Optional[argparse.ArgumentParser] = ..., always_complete_options: bool = ..., exclude: Optional[Any] = ..., validator: Optional[Any] = ..., print_suppressed: bool = ..., default_completer: Any = ..., append_space: Optional[Any] = ...) -> None: ... - def __call__(self, argument_parser: argparse.ArgumentParser, always_complete_options: bool = ..., exit_method: Any = ..., output_stream: Optional[Any] = ..., exclude: Optional[Any] = ..., validator: Optional[Any] = ..., print_suppressed: bool = ..., append_space: Optional[Any] = ..., default_completer: Any = ...) -> None: ... - def collect_completions(self, active_parsers: Any, parsed_args: Any, cword_prefix: Any, debug: Any): ... - def filter_completions(self, completions: Any): ... - def quote_completions(self, completions: Any, cword_prequote: Any, last_wordbreak_pos: Any): ... - def rl_complete(self, text: Any, state: Any): ... - def get_display_completions(self): ... - -class ExclusiveCompletionFinder(CompletionFinder): ... - -autocomplete: CompletionFinder - diff --git a/typeshed/bagit.pyi b/typeshed/bagit.pyi deleted file mode 100644 index 1f640a561..000000000 --- a/typeshed/bagit.pyi +++ /dev/null @@ -1,97 +0,0 @@ -import argparse -from typing import Any, Optional, Tuple, List, Generator, Dict - -def find_locale_dir(): ... - -TRANSLATION_CATALOG: Any -MODULE_NAME: Any -LOGGER: Any -VERSION: Any -PROJECT_URL: str -STANDARD_BAG_INFO_HEADERS: Any -CHECKSUM_ALGOS: Any -DEFAULT_CHECKSUMS: Any -HASH_BLOCK_SIZE: Any -open_text_file: Any -UNICODE_BYTE_ORDER_MARK: str - -def make_bag(bag_dir: Any, bag_info: Optional[Any] = ..., processes: int = ..., checksums: Optional[Any] = ..., checksum: Optional[Any] = ..., encoding: str = ...): ... - -class Bag: - valid_files: Any = ... - valid_directories: Any = ... - tags: Any = ... - info: Dict[str, str] = ... - entries: Any = ... - normalized_filesystem_names: Any = ... - normalized_manifest_names: Any = ... - algorithms: Any = ... - tag_file_name: Any = ... - path: Any = ... - def __init__(self, path: Optional[Any] = ...) -> None: ... - @property - def algs(self): ... - @property - def version(self): ... - def manifest_files(self) -> None: ... - def tagmanifest_files(self) -> None: ... - def compare_manifests_with_fs(self) -> Tuple[List[str], List[str]]: ... - def compare_fetch_with_fs(self): ... - def payload_files(self) -> None: ... - def payload_entries(self): ... - def save(self, processes: int = ..., manifests: bool = ...) -> None: ... - def tagfile_entries(self): ... - def missing_optional_tagfiles(self) -> Generator[str, None, None]: ... - def fetch_entries(self) -> None: ... - def files_to_be_fetched(self) -> None: ... - def has_oxum(self) -> bool: ... - def validate(self, processes: int = ..., fast: bool = ..., completeness_only: bool = ...): ... - def is_valid(self, fast: bool = ..., completeness_only: bool = ...): ... - def validate_fetch(self) -> None: ... - -class BagError(Exception): ... - -class BagValidationError(BagError): - message: Any = ... - details: Any = ... - def __init__(self, message: Any, details: Optional[Any] = ...) -> None: ... - -class ManifestErrorDetail(BagError): - path: Any = ... - def __init__(self, path: Any) -> None: ... - -class ChecksumMismatch(ManifestErrorDetail): - path: Any = ... - algorithm: Any = ... - expected: Any = ... - found: Any = ... - def __init__(self, path: Any, algorithm: Optional[Any] = ..., expected: Optional[Any] = ..., found: Optional[Any] = ...) -> None: ... - -class FileMissing(ManifestErrorDetail): ... -class UnexpectedFile(ManifestErrorDetail): ... - -class FileNormalizationConflict(BagError): - file_a: Any = ... - file_b: Any = ... - def __init__(self, file_a: Any, file_b: Any) -> None: ... - -def posix_multiprocessing_worker_initializer() -> None: ... -def normalize_unicode_py3(s: Any): ... -def normalize_unicode_py2(s: Any): ... -normalize_unicode = normalize_unicode_py3 - -def build_unicode_normalized_lookup_dict(filenames: Any): ... -def get_hashers(algorithms: Any): ... -def make_manifests(data_dir: Any, processes: Any, algorithms: Any = ..., encoding: str = ...): ... -def generate_manifest_lines(filename: Any, algorithms: Any = ...): ... -def force_unicode_py2(s: Any): ... -force_unicode = str - -class BagArgumentParser(argparse.ArgumentParser): - bag_info: Any = ... - def __init__(self, *args: Any, **kwargs: Any) -> None: ... - -class BagHeaderAction(argparse.Action): - def __call__(self, parser: Any, _: Any, values: Any, option_string: Optional[Any] = ...) -> None: ... - -def main() -> None: ... diff --git a/typeshed/cachecontrol/adapter.pyi b/typeshed/cachecontrol/adapter.pyi deleted file mode 100644 index d24c2af18..000000000 --- a/typeshed/cachecontrol/adapter.pyi +++ /dev/null @@ -1,30 +0,0 @@ -# Stubs for cachecontrol.adapter (Python 2) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -from requests.adapters import HTTPAdapter - -from .cache import DictCache as DictCache -from .controller import CacheController as CacheController -from .filewrapper import CallbackFileWrapper as CallbackFileWrapper - -class CacheControlAdapter(HTTPAdapter): - invalidating_methods = ... # type: Any - cache = ... # type: Any - heuristic = ... # type: Any - controller = ... # type: Any - def __init__( - self, - cache=None, - cache_etags=True, - controller_class=None, - serializer=None, - heuristic=None, - *args, - **kw - ): ... - def send(self, request, **kw): ... - def build_response(self, request, response, from_cache=False): ... - def close(self): ... diff --git a/typeshed/cachecontrol/cache.pyi b/typeshed/cachecontrol/cache.pyi deleted file mode 100644 index c4f507b41..000000000 --- a/typeshed/cachecontrol/cache.pyi +++ /dev/null @@ -1,19 +0,0 @@ -# Stubs for cachecontrol.cache (Python 2) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -class BaseCache: - def get(self, key): ... - def set(self, key, value): ... - def delete(self, key): ... - def close(self): ... - -class DictCache(BaseCache): - lock = ... # type: Any - data = ... # type: Any - def __init__(self, init_dict=None): ... - def get(self, key): ... - def set(self, key, value): ... - def delete(self, key): ... diff --git a/typeshed/cachecontrol/caches/file_cache.pyi b/typeshed/cachecontrol/caches/file_cache.pyi deleted file mode 100644 index 2410374d7..000000000 --- a/typeshed/cachecontrol/caches/file_cache.pyi +++ /dev/null @@ -1,30 +0,0 @@ -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from os import PathLike -from typing import Any, Callable, Union - -from ..cache import BaseCache as BaseCache -from ..controller import CacheController as CacheController - -class FileCache(BaseCache): - directory = ... # type: Union[str, PathLike[str]] - forever = ... # type: bool - filemode = ... # type: str - dirmode = ... # type: str - lock_class = ... # type: Callable - def __init__( - self, - directory: Union[str, PathLike[str]], - forever=False, - filemode=384, - dirmode=448, - use_dir_lock=None, - lock_class=None, - ) -> None: ... - @staticmethod - def encode(x): ... - def get(self, key): ... - def set(self, key, value): ... - def delete(self, key): ... - -def url_to_file_path(url, filecache): ... diff --git a/typeshed/cachecontrol/controller.pyi b/typeshed/cachecontrol/controller.pyi deleted file mode 100644 index ce2147ce8..000000000 --- a/typeshed/cachecontrol/controller.pyi +++ /dev/null @@ -1,26 +0,0 @@ -# Stubs for cachecontrol.controller (Python 2) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -# from .cache import DictCache as DictCache -# from .serialize import Serializer as Serializer - -logger = ... # type: Any -URI = ... # type: Any - -def parse_uri(uri): ... - -class CacheController: - cache = ... # type: Any - cache_etags = ... # type: Any - serializer = ... # type: Any - def __init__(self, cache=None, cache_etags=True, serializer=None): ... - @classmethod - def cache_url(cls, uri): ... - def parse_cache_control(self, headers): ... - def cached_request(self, request): ... - def conditional_headers(self, request): ... - def cache_response(self, request, response, body=None): ... - def update_cached_response(self, request, response): ... diff --git a/typeshed/cachecontrol/filewrapper.pyi b/typeshed/cachecontrol/filewrapper.pyi deleted file mode 100644 index d21df1508..000000000 --- a/typeshed/cachecontrol/filewrapper.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for cachecontrol.filewrapper (Python 2) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -class CallbackFileWrapper: - def __init__(self, fp, callback): ... - def __getattr__(self, name): ... - def read(self, amt=None): ... diff --git a/typeshed/cachecontrol/serialize.pyi b/typeshed/cachecontrol/serialize.pyi deleted file mode 100644 index bc7939b7e..000000000 --- a/typeshed/cachecontrol/serialize.pyi +++ /dev/null @@ -1,12 +0,0 @@ -# Stubs for cachecontrol.serialize (Python 2) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from .compat import HTTPResponse as HTTPResponse -from .compat import pickle as pickle -from .compat import str as str - -class Serializer: - def dumps(self, request, response, body=None): ... - def loads(self, request, data): ... - def prepare_response(self, request, cached): ... diff --git a/typeshed/cachecontrol/wrapper.pyi b/typeshed/cachecontrol/wrapper.pyi deleted file mode 100644 index f1ec68ffa..000000000 --- a/typeshed/cachecontrol/wrapper.pyi +++ /dev/null @@ -1,16 +0,0 @@ -# Stubs for cachecontrol.wrapper (Python 2) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -from .adapter import CacheControlAdapter -from .cache import DictCache - -def CacheControl( - sess: Any, - cache: Optional[Any] = ..., - cache_etags: bool = ..., - serializer: Optional[Any] = ..., - heuristic: Optional[Any] = ..., -): ... diff --git a/typeshed/coloredlogs/__init__.pyi b/typeshed/coloredlogs/__init__.pyi deleted file mode 100644 index 2678a4287..000000000 --- a/typeshed/coloredlogs/__init__.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# Stubs for coloredlogs (Python 3.7) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -import logging -from typing import Any, Optional - -WINDOWS: Any -NEED_COLORAMA = WINDOWS -DEFAULT_LOG_LEVEL: Any -DEFAULT_LOG_FORMAT: str -DEFAULT_DATE_FORMAT: str -CHROOT_FILES: Any -CAN_USE_BOLD_FONT: Any -DEFAULT_FIELD_STYLES: Any -DEFAULT_LEVEL_STYLES: Any -DEFAULT_FORMAT_STYLE: str -FORMAT_STYLE_PATTERNS: Any - -def auto_install() -> None: ... -def install(level: Optional[Any] = ..., **kw: Any): ... -def check_style(value: Any): ... -def increase_verbosity() -> None: ... -def decrease_verbosity() -> None: ... -def is_verbose(): ... -def get_level(): ... -def set_level(level: Any) -> None: ... -def adjust_level(logger: Any, level: Any) -> None: ... -def find_defined_levels(): ... -def level_to_number(value: Any): ... -def find_level_aliases(): ... -def parse_encoded_styles(text: Any, normalize_key: Optional[Any] = ...): ... -def find_hostname(use_chroot: bool = ...): ... -def find_program_name(): ... -def replace_handler(logger: Any, match_handler: Any, reconfigure: Any): ... -def find_handler(logger: Any, match_handler: Any): ... -def match_stream_handler(handler: Any, streams: Any = ...): ... -def walk_propagation_tree(logger: Any) -> None: ... - -class BasicFormatter(logging.Formatter): - def formatTime(self, record: Any, datefmt: Optional[Any] = ...): ... - -class ColoredFormatter(BasicFormatter): - nn: Any = ... - log_record_factory: Any = ... - level_styles: Any = ... - field_styles: Any = ... - def __init__(self, fmt: Optional[Any] = ..., datefmt: Optional[Any] = ..., level_styles: Optional[Any] = ..., field_styles: Optional[Any] = ..., style: Any = ...) -> None: ... - def colorize_format(self, fmt: Any, style: Any = ...): ... - def format(self, record: Any): ... - -class Empty: ... - -class HostNameFilter(logging.Filter): - @classmethod - def install(cls, handler: Any, fmt: Optional[Any] = ..., use_chroot: bool = ..., style: Any = ...): ... - hostname: Any = ... - def __init__(self, use_chroot: bool = ...) -> None: ... - def filter(self, record: Any): ... - -class ProgramNameFilter(logging.Filter): - @classmethod - def install(cls, handler: Any, fmt: Any, programname: Optional[Any] = ..., style: Any = ...): ... - programname: Any = ... - def __init__(self, programname: Optional[Any] = ...) -> None: ... - def filter(self, record: Any): ... - -class StandardErrorHandler(logging.StreamHandler): - def __init__(self, level: Any = ...) -> None: ... - @property - def stream(self): ... - -class FormatStringParser: - style: Any = ... - capturing_pattern: Any = ... - raw_pattern: Any = ... - tokenize_pattern: Any = ... - name_pattern: Any = ... - def __init__(self, style: Any = ...) -> None: ... - def contains_field(self, format_string: Any, field_name: Any): ... - def get_field_names(self, format_string: Any): ... - def get_grouped_pairs(self, format_string: Any): ... - def get_pairs(self, format_string: Any) -> None: ... - def get_pattern(self, field_name: Any): ... - def get_tokens(self, format_string: Any): ... - -class FormatStringToken: ... - -class NameNormalizer: - aliases: Any = ... - def __init__(self) -> None: ... - def normalize_name(self, name: Any): ... - def normalize_keys(self, value: Any): ... - def get(self, normalized_dict: Any, name: Any): ... diff --git a/typeshed/galaxy/__init__.pyi b/typeshed/galaxy/__init__.pyi deleted file mode 100644 index aa2f6e6ef..000000000 --- a/typeshed/galaxy/__init__.pyi +++ /dev/null @@ -1,13 +0,0 @@ -# Stubs for galaxy (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -PROJECT_NAME = ... # type: str -PROJECT_OWNER = ... # type: str -PROJECT_USERAME = ... # type: str -PROJECT_URL = ... # type: str -PROJECT_AUTHOR = ... # type: str -PROJECT_EMAIL = ... # type: str -RAW_CONTENT_URL = ... # type: Any diff --git a/typeshed/galaxy/exceptions/__init__.pyi b/typeshed/galaxy/exceptions/__init__.pyi deleted file mode 100644 index e59ac087d..000000000 --- a/typeshed/galaxy/exceptions/__init__.pyi +++ /dev/null @@ -1,143 +0,0 @@ -# Stubs for galaxy.exceptions (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from ..exceptions import error_codes as error_codes - -class MessageException(Exception): - status_code = ... # type: int - err_code = ... # type: Any - err_msg = ... # type: Any - type = ... # type: Any - extra_error_info = ... # type: Any - def __init__(self, err_msg: Optional[Any] = ..., type: str = ..., **extra_error_info) -> None: ... - -class ItemDeletionException(MessageException): ... -class ObjectInvalid(Exception): ... - -class ActionInputError(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - def __init__(self, err_msg, type: str = ...) -> None: ... - -class DuplicatedSlugException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class DuplicatedIdentifierException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class ObjectAttributeInvalidException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class ObjectAttributeMissingException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class MalformedId(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class MalformedContents(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class UnknownContentsType(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class RequestParameterMissingException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class ToolMetaParameterException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class ToolMissingException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class RequestParameterInvalidException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class AuthenticationFailed(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class AuthenticationRequired(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class ItemAccessibilityException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class ItemOwnershipException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class ConfigDoesNotAllowException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class InsufficientPermissionsException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class AdminRequiredException(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class ObjectNotFound(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class DeprecatedMethod(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class Conflict(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class ConfigurationError(Exception): - status_code = ... # type: int - err_code = ... # type: Any - -class InconsistentDatabase(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class InternalServerError(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class NotImplemented(MessageException): - status_code = ... # type: int - err_code = ... # type: Any - -class ContainerCLIError(Exception): - stdout = ... # type: Any - stderr = ... # type: Any - returncode = ... # type: Any - command = ... # type: Any - subprocess_command = ... # type: Any - def __init__(self, msg: Optional[Any] = ..., stdout: Optional[Any] = ..., stderr: Optional[Any] = ..., returncode: Optional[Any] = ..., command: Optional[Any] = ..., subprocess_command: Optional[Any] = ..., **kwargs) -> None: ... - -class ContainerNotFound(Exception): - container_id = ... # type: Any - def __init__(self, msg: Optional[Any] = ..., container_id: Optional[Any] = ..., **kwargs) -> None: ... - -class ContainerImageNotFound(Exception): - image = ... # type: Any - def __init__(self, msg: Optional[Any] = ..., image: Optional[Any] = ..., **kwargs) -> None: ... - -class ContainerRunError(Exception): - image = ... # type: Any - command = ... # type: Any - def __init__(self, msg: Optional[Any] = ..., image: Optional[Any] = ..., command: Optional[Any] = ..., **kwargs) -> None: ... diff --git a/typeshed/galaxy/exceptions/error_codes.pyi b/typeshed/galaxy/exceptions/error_codes.pyi deleted file mode 100644 index b25ca3e99..000000000 --- a/typeshed/galaxy/exceptions/error_codes.pyi +++ /dev/null @@ -1,17 +0,0 @@ -# Stubs for galaxy.exceptions.error_codes (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -UNKNOWN_ERROR_MESSAGE = ... # type: str - -class ErrorCode: - code = ... # type: Any - default_error_message = ... # type: Any - def __init__(self, code, default_error_message) -> None: ... - def __int__(self): ... - -error_codes_json = ... # type: Any -name = ... # type: Any -error_code_obj = ... # type: Any diff --git a/typeshed/galaxy/jobs/__init__.pyi b/typeshed/galaxy/jobs/__init__.pyi deleted file mode 100644 index c65cfb4ee..000000000 --- a/typeshed/galaxy/jobs/__init__.pyi +++ /dev/null @@ -1,4 +0,0 @@ -# Stubs for galaxy.jobs (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/typeshed/galaxy/jobs/metrics/__init__.pyi b/typeshed/galaxy/jobs/metrics/__init__.pyi deleted file mode 100644 index 758ddc677..000000000 --- a/typeshed/galaxy/jobs/metrics/__init__.pyi +++ /dev/null @@ -1,38 +0,0 @@ -# Stubs for galaxy.jobs.metrics (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from ..metrics import formatting as formatting - -log = ... # type: Any -DEFAULT_FORMATTER = ... # type: Any - -class JobMetrics: - plugin_classes = ... # type: Any - default_job_instrumenter = ... # type: Any - job_instrumenters = ... # type: Any - def __init__(self, conf_file: Optional[Any] = ..., **kwargs) -> None: ... - def format(self, plugin, key, value): ... - def set_destination_conf_file(self, destination_id, conf_file): ... - def set_destination_conf_element(self, destination_id, element): ... - def set_destination_instrumenter(self, destination_id, job_instrumenter: Optional[Any] = ...): ... - def collect_properties(self, destination_id, job_id, job_directory): ... - -class NullJobInstrumenter: - def pre_execute_commands(self, job_directory): ... - def post_execute_commands(self, job_directory): ... - def collect_properties(self, job_id, job_directory): ... - -NULL_JOB_INSTRUMENTER = ... # type: Any - -class JobInstrumenter: - extra_kwargs = ... # type: Any - plugin_classes = ... # type: Any - plugins = ... # type: Any - def __init__(self, plugin_classes, plugins_source, **kwargs) -> None: ... - def pre_execute_commands(self, job_directory): ... - def post_execute_commands(self, job_directory): ... - def collect_properties(self, job_id, job_directory): ... - @staticmethod - def from_file(plugin_classes, conf_file, **kwargs): ... diff --git a/typeshed/galaxy/jobs/metrics/collectl/__init__.pyi b/typeshed/galaxy/jobs/metrics/collectl/__init__.pyi deleted file mode 100644 index c58636ec4..000000000 --- a/typeshed/galaxy/jobs/metrics/collectl/__init__.pyi +++ /dev/null @@ -1,4 +0,0 @@ -# Stubs for galaxy.jobs.metrics.collectl (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/typeshed/galaxy/jobs/metrics/collectl/cli.pyi b/typeshed/galaxy/jobs/metrics/collectl/cli.pyi deleted file mode 100644 index 88e3120dd..000000000 --- a/typeshed/galaxy/jobs/metrics/collectl/cli.pyi +++ /dev/null @@ -1,12 +0,0 @@ -# Stubs for galaxy.jobs.metrics.collectl.cli (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -class CollectlCli: - mode = ... # type: Any - command_args = ... # type: Any - def __init__(self, **kwargs) -> None: ... - def build_command_line(self): ... - def run(self, stdout: Any = ..., stderr: Any = ...): ... diff --git a/typeshed/galaxy/jobs/metrics/collectl/processes.pyi b/typeshed/galaxy/jobs/metrics/collectl/processes.pyi deleted file mode 100644 index ad6fbd88a..000000000 --- a/typeshed/galaxy/jobs/metrics/collectl/processes.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# Stubs for galaxy.jobs.metrics.collectl.processes (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -def generate_process_statistics(collectl_playback_cli, pid, statistics: Any = ...): ... - -class CollectlProcessSummarizer: - pid = ... # type: Any - statistics = ... # type: Any - columns_of_interest = ... # type: Any - tree_statistics = ... # type: Any - process_accum_statistics = ... # type: Any - interval_count = ... # type: int - def __init__(self, pid, statistics) -> None: ... - def handle_interval(self, interval): ... - def get_statistics(self): ... - -class CollectlProcessInterval: - rows = ... # type: Any - def __init__(self) -> None: ... - def row_is_in(self, row): ... - def add_row(self, row): ... diff --git a/typeshed/galaxy/jobs/metrics/collectl/stats.pyi b/typeshed/galaxy/jobs/metrics/collectl/stats.pyi deleted file mode 100644 index 39f0c8d0d..000000000 --- a/typeshed/galaxy/jobs/metrics/collectl/stats.pyi +++ /dev/null @@ -1,15 +0,0 @@ -# Stubs for galaxy.jobs.metrics.collectl.stats (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -class StatisticsTracker: - min = ... # type: Any - max = ... # type: Any - count = ... # type: int - sum = ... # type: int - def __init__(self) -> None: ... - def track(self, value): ... - @property - def avg(self): ... diff --git a/typeshed/galaxy/jobs/metrics/collectl/subsystems.pyi b/typeshed/galaxy/jobs/metrics/collectl/subsystems.pyi deleted file mode 100644 index 1da48e66d..000000000 --- a/typeshed/galaxy/jobs/metrics/collectl/subsystems.pyi +++ /dev/null @@ -1,35 +0,0 @@ -# Stubs for galaxy.jobs.metrics.collectl.subsystems (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -class CollectlSubsystem: - @property - def command_line_arg(self): ... - @property - def name(self, job_directory): ... - -class ProcessesSubsystem(CollectlSubsystem): - command_line_arg = ... # type: str - name = ... # type: str - -class CpuSubsystem(CollectlSubsystem): - command_line_arg = ... # type: str - name = ... # type: str - -class DiskSubsystem(CollectlSubsystem): - command_line_arg = ... # type: str - name = ... # type: str - -class NetworkSubsystem(CollectlSubsystem): - command_line_arg = ... # type: str - name = ... # type: str - -class EnvironmentSubsystem(CollectlSubsystem): - command_line_arg = ... # type: str - name = ... # type: str - -class MemorySubsystem(CollectlSubsystem): - command_line_arg = ... # type: str - name = ... # type: str - -def get_subsystem(name): ... diff --git a/typeshed/galaxy/jobs/metrics/formatting.pyi b/typeshed/galaxy/jobs/metrics/formatting.pyi deleted file mode 100644 index ebc91b1ff..000000000 --- a/typeshed/galaxy/jobs/metrics/formatting.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for galaxy.jobs.metrics.formatting (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -class JobMetricFormatter: - def format(self, key, value): ... - -def seconds_to_str(value): ... diff --git a/typeshed/galaxy/jobs/metrics/instrumenters/__init__.pyi b/typeshed/galaxy/jobs/metrics/instrumenters/__init__.pyi deleted file mode 100644 index ede6717e0..000000000 --- a/typeshed/galaxy/jobs/metrics/instrumenters/__init__.pyi +++ /dev/null @@ -1,16 +0,0 @@ -# Stubs for galaxy.jobs.metrics.instrumenters (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from ...metrics import formatting as formatting - -INSTRUMENT_FILE_PREFIX = ... # type: str - -class InstrumentPlugin: - formatter = ... # type: Any - @property - def plugin_type(self): ... - def pre_execute_instrument(self, job_directory): ... - def post_execute_instrument(self, job_directory): ... - def job_properties(self, job_id, job_directory): ... diff --git a/typeshed/galaxy/jobs/metrics/instrumenters/collectl.pyi b/typeshed/galaxy/jobs/metrics/instrumenters/collectl.pyi deleted file mode 100644 index 080d2e5b4..000000000 --- a/typeshed/galaxy/jobs/metrics/instrumenters/collectl.pyi +++ /dev/null @@ -1,22 +0,0 @@ -# Stubs for galaxy.jobs.metrics.instrumenters.collectl (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -import formatting -from ..instrumenters import InstrumentPlugin - -class CollectlFormatter(formatting.JobMetricFormatter): - def format(self, key, value): ... - -class CollectlPlugin(InstrumentPlugin): - plugin_type = ... # type: str - formatter = ... # type: Any - saved_logs_path = ... # type: Any - summarize_process_data = ... # type: Any - log_collectl_program_output = ... # type: Any - process_statistics = ... # type: Any - def __init__(self, **kwargs) -> None: ... - def pre_execute_instrument(self, job_directory): ... - def post_execute_instrument(self, job_directory): ... - def job_properties(self, job_id, job_directory): ... diff --git a/typeshed/galaxy/jobs/metrics/instrumenters/core.pyi b/typeshed/galaxy/jobs/metrics/instrumenters/core.pyi deleted file mode 100644 index 885df5a2b..000000000 --- a/typeshed/galaxy/jobs/metrics/instrumenters/core.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# Stubs for galaxy.jobs.metrics.instrumenters.core (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -import formatting -from ..instrumenters import InstrumentPlugin - -class CorePluginFormatter(formatting.JobMetricFormatter): - def format(self, key, value): ... - -class CorePlugin(InstrumentPlugin): - plugin_type = ... # type: str - formatter = ... # type: Any - def __init__(self, **kwargs) -> None: ... - def pre_execute_instrument(self, job_directory): ... - def post_execute_instrument(self, job_directory): ... - def job_properties(self, job_id, job_directory): ... diff --git a/typeshed/galaxy/jobs/metrics/instrumenters/cpuinfo.pyi b/typeshed/galaxy/jobs/metrics/instrumenters/cpuinfo.pyi deleted file mode 100644 index 00744ed68..000000000 --- a/typeshed/galaxy/jobs/metrics/instrumenters/cpuinfo.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# Stubs for galaxy.jobs.metrics.instrumenters.cpuinfo (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -import formatting -from ..instrumenters import InstrumentPlugin - -class CpuInfoFormatter(formatting.JobMetricFormatter): - def format(self, key, value): ... - -class CpuInfoPlugin(InstrumentPlugin): - plugin_type = ... # type: str - formatter = ... # type: Any - verbose = ... # type: Any - def __init__(self, **kwargs) -> None: ... - def pre_execute_instrument(self, job_directory): ... - def job_properties(self, job_id, job_directory): ... diff --git a/typeshed/galaxy/jobs/metrics/instrumenters/env.pyi b/typeshed/galaxy/jobs/metrics/instrumenters/env.pyi deleted file mode 100644 index 411332205..000000000 --- a/typeshed/galaxy/jobs/metrics/instrumenters/env.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# Stubs for galaxy.jobs.metrics.instrumenters.env (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -import formatting -from ..instrumenters import InstrumentPlugin - -class EnvFormatter(formatting.JobMetricFormatter): ... - -class EnvPlugin(InstrumentPlugin): - plugin_type = ... # type: str - formatter = ... # type: Any - variables = ... # type: Any - def __init__(self, **kwargs) -> None: ... - def pre_execute_instrument(self, job_directory): ... - def post_execute_instrument(self, job_directory): ... - def job_properties(self, job_id, job_directory): ... diff --git a/typeshed/galaxy/jobs/metrics/instrumenters/meminfo.pyi b/typeshed/galaxy/jobs/metrics/instrumenters/meminfo.pyi deleted file mode 100644 index 344cfa861..000000000 --- a/typeshed/galaxy/jobs/metrics/instrumenters/meminfo.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# Stubs for galaxy.jobs.metrics.instrumenters.meminfo (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -import formatting -from ..instrumenters import InstrumentPlugin - -class MemInfoFormatter(formatting.JobMetricFormatter): - def format(self, key, value): ... - -class MemInfoPlugin(InstrumentPlugin): - plugin_type = ... # type: str - formatter = ... # type: Any - verbose = ... # type: Any - def __init__(self, **kwargs) -> None: ... - def pre_execute_instrument(self, job_directory): ... - def job_properties(self, job_id, job_directory): ... diff --git a/typeshed/galaxy/jobs/metrics/instrumenters/uname.pyi b/typeshed/galaxy/jobs/metrics/instrumenters/uname.pyi deleted file mode 100644 index b541bd02e..000000000 --- a/typeshed/galaxy/jobs/metrics/instrumenters/uname.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# Stubs for galaxy.jobs.metrics.instrumenters.uname (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -import formatting -from ..instrumenters import InstrumentPlugin - -class UnameFormatter(formatting.JobMetricFormatter): - def format(self, key, value): ... - -class UnamePlugin(InstrumentPlugin): - plugin_type = ... # type: str - formatter = ... # type: Any - uname_args = ... # type: Any - def __init__(self, **kwargs) -> None: ... - def pre_execute_instrument(self, job_directory): ... - def job_properties(self, job_id, job_directory): ... diff --git a/typeshed/galaxy/objectstore/__init__.pyi b/typeshed/galaxy/objectstore/__init__.pyi deleted file mode 100644 index 82259bceb..000000000 --- a/typeshed/galaxy/objectstore/__init__.pyi +++ /dev/null @@ -1,80 +0,0 @@ -# Stubs for galaxy.objectstore (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -object_session = ... # type: Any -NO_SESSION_ERROR_MESSAGE = ... # type: str -log = ... # type: Any - -class ObjectStore: - running = ... # type: bool - extra_dirs = ... # type: Any - config = ... # type: Any - check_old_style = ... # type: Any - def __init__(self, config, **kwargs) -> None: ... - def shutdown(self): ... - def exists(self, obj, base_dir: Optional[Any] = ..., dir_only: bool = ..., extra_dir: Optional[Any] = ..., extra_dir_at_root: bool = ..., alt_name: Optional[Any] = ...): ... - def file_ready(self, obj, base_dir: Optional[Any] = ..., dir_only: bool = ..., extra_dir: Optional[Any] = ..., extra_dir_at_root: bool = ..., alt_name: Optional[Any] = ..., obj_dir: bool = ...): ... - def create(self, obj, base_dir: Optional[Any] = ..., dir_only: bool = ..., extra_dir: Optional[Any] = ..., extra_dir_at_root: bool = ..., alt_name: Optional[Any] = ..., obj_dir: bool = ...): ... - def empty(self, obj, base_dir: Optional[Any] = ..., extra_dir: Optional[Any] = ..., extra_dir_at_root: bool = ..., alt_name: Optional[Any] = ..., obj_dir: bool = ...): ... - def size(self, obj, extra_dir: Optional[Any] = ..., extra_dir_at_root: bool = ..., alt_name: Optional[Any] = ..., obj_dir: bool = ...): ... - def delete(self, obj, entire_dir: bool = ..., base_dir: Optional[Any] = ..., extra_dir: Optional[Any] = ..., extra_dir_at_root: bool = ..., alt_name: Optional[Any] = ..., obj_dir: bool = ...): ... - def get_data(self, obj, start: int = ..., count: int = ..., base_dir: Optional[Any] = ..., extra_dir: Optional[Any] = ..., extra_dir_at_root: bool = ..., alt_name: Optional[Any] = ..., obj_dir: bool = ...): ... - def get_filename(self, obj, base_dir: Optional[Any] = ..., dir_only: bool = ..., extra_dir: Optional[Any] = ..., extra_dir_at_root: bool = ..., alt_name: Optional[Any] = ..., obj_dir: bool = ...): ... - def update_from_file(self, obj, base_dir: Optional[Any] = ..., extra_dir: Optional[Any] = ..., extra_dir_at_root: bool = ..., alt_name: Optional[Any] = ..., obj_dir: bool = ..., file_name: Optional[Any] = ..., create: bool = ...): ... - def get_object_url(self, obj, extra_dir: Optional[Any] = ..., extra_dir_at_root: bool = ..., alt_name: Optional[Any] = ..., obj_dir: bool = ...): ... - def get_store_usage_percent(self): ... - -class DiskObjectStore(ObjectStore): - file_path = ... # type: Any - def __init__(self, config, config_xml: Optional[Any] = ..., file_path: Optional[Any] = ..., extra_dirs: Optional[Any] = ...) -> None: ... - def exists(self, obj, **kwargs): ... - def create(self, obj, **kwargs): ... - def empty(self, obj, **kwargs): ... - def size(self, obj, **kwargs): ... - def delete(self, obj, entire_dir: bool = ..., **kwargs): ... - def get_data(self, obj, start: int = ..., count: int = ..., **kwargs): ... - def get_filename(self, obj, **kwargs): ... - def update_from_file(self, obj, file_name: Optional[Any] = ..., create: bool = ..., **kwargs): ... - def get_object_url(self, obj, **kwargs): ... - def get_store_usage_percent(self): ... - -class NestedObjectStore(ObjectStore): - backends = ... # type: Any - def __init__(self, config, config_xml: Optional[Any] = ...) -> None: ... - def shutdown(self): ... - def exists(self, obj, **kwargs): ... - def file_ready(self, obj, **kwargs): ... - def create(self, obj, **kwargs): ... - def empty(self, obj, **kwargs): ... - def size(self, obj, **kwargs): ... - def delete(self, obj, **kwargs): ... - def get_data(self, obj, **kwargs): ... - def get_filename(self, obj, **kwargs): ... - def update_from_file(self, obj, **kwargs): ... - def get_object_url(self, obj, **kwargs): ... - -class DistributedObjectStore(NestedObjectStore): - distributed_config = ... # type: Any - backends = ... # type: Any - weighted_backend_ids = ... # type: Any - original_weighted_backend_ids = ... # type: Any - max_percent_full = ... # type: Any - global_max_percent_full = ... # type: float - sleeper = ... # type: Any - filesystem_monitor_thread = ... # type: Any - def __init__(self, config, config_xml: Optional[Any] = ..., fsmon: bool = ...) -> None: ... - def shutdown(self): ... - def create(self, obj, **kwargs): ... - -class HierarchicalObjectStore(NestedObjectStore): - backends = ... # type: Any - def __init__(self, config, config_xml: Optional[Any] = ..., fsmon: bool = ...) -> None: ... - def exists(self, obj, **kwargs): ... - def create(self, obj, **kwargs): ... - -def build_object_store_from_config(config, fsmon: bool = ..., config_xml: Optional[Any] = ...): ... -def local_extra_dirs(func): ... -def convert_bytes(bytes): ... diff --git a/typeshed/galaxy/objectstore/azure_blob.pyi b/typeshed/galaxy/objectstore/azure_blob.pyi deleted file mode 100644 index 89b58c1ad..000000000 --- a/typeshed/galaxy/objectstore/azure_blob.pyi +++ /dev/null @@ -1,29 +0,0 @@ -# Stubs for galaxy.objectstore.azure_blob (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from ..objectstore import convert_bytes as convert_bytes, ObjectStore as ObjectStore - -BlockBlobService = ... # type: Any -NO_BLOBSERVICE_ERROR_MESSAGE = ... # type: str -log = ... # type: Any - -class AzureBlobObjectStore(ObjectStore): - staging_path = ... # type: Any - transfer_progress = ... # type: int - cache_size = ... # type: Any - sleeper = ... # type: Any - cache_monitor_thread = ... # type: Any - def __init__(self, config, config_xml) -> None: ... - def exists(self, obj, **kwargs): ... - def file_ready(self, obj, **kwargs): ... - def create(self, obj, **kwargs): ... - def empty(self, obj, **kwargs): ... - def size(self, obj, **kwargs): ... - def delete(self, obj, entire_dir: bool = ..., **kwargs): ... - def get_data(self, obj, start: int = ..., count: int = ..., **kwargs): ... - def get_filename(self, obj, **kwargs): ... - def update_from_file(self, obj, file_name: Optional[Any] = ..., create: bool = ..., **kwargs): ... - def get_object_url(self, obj, **kwargs): ... - def get_store_usage_percent(self): ... diff --git a/typeshed/galaxy/objectstore/pulsar.pyi b/typeshed/galaxy/objectstore/pulsar.pyi deleted file mode 100644 index bad104522..000000000 --- a/typeshed/galaxy/objectstore/pulsar.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# Stubs for galaxy.objectstore.pulsar (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from ..objectstore import ObjectStore as ObjectStore - -ObjectStoreClientManager = ... # type: Any - -class PulsarObjectStore(ObjectStore): - pulsar_client = ... # type: Any - def __init__(self, config, config_xml) -> None: ... - def exists(self, obj, **kwds): ... - def file_ready(self, obj, **kwds): ... - def create(self, obj, **kwds): ... - def empty(self, obj, **kwds): ... - def size(self, obj, **kwds): ... - def delete(self, obj, **kwds): ... - def get_data(self, obj, **kwds): ... - def get_filename(self, obj, **kwds): ... - def update_from_file(self, obj, **kwds): ... - def get_store_usage_percent(self): ... - def get_object_url(self, obj, extra_dir: Optional[Any] = ..., extra_dir_at_root: bool = ..., alt_name: Optional[Any] = ...): ... - def shutdown(self): ... diff --git a/typeshed/galaxy/objectstore/rods.pyi b/typeshed/galaxy/objectstore/rods.pyi deleted file mode 100644 index 125444b20..000000000 --- a/typeshed/galaxy/objectstore/rods.pyi +++ /dev/null @@ -1,32 +0,0 @@ -# Stubs for galaxy.objectstore.rods (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from posixpath import basename as path_basename -from posixpath import dirname as path_dirname -from posixpath import join as path_join -from ..objectstore import DiskObjectStore as DiskObjectStore, local_extra_dirs as local_extra_dirs - -irods = ... # type: Any -IRODS_IMPORT_MESSAGE = ... # type: str -log = ... # type: Any - -class IRODSObjectStore(DiskObjectStore): - cache_path = ... # type: Any - default_resource = ... # type: Any - root_collection_path = ... # type: Any - root_collection = ... # type: Any - def __init__(self, config, file_path: Optional[Any] = ..., extra_dirs: Optional[Any] = ...) -> None: ... - def exists(self, obj, **kwargs): ... - def create(self, obj, **kwargs): ... - def empty(self, obj, **kwargs): ... - def size(self, obj, **kwargs): ... - def delete(self, obj, entire_dir: bool = ..., **kwargs): ... - def get_data(self, obj, start: int = ..., count: int = ..., **kwargs): ... - def get_filename(self, obj, **kwargs): ... - def update_from_file(self, obj, file_name: Optional[Any] = ..., create: bool = ..., **kwargs): ... - def get_object_url(self, obj, **kwargs): ... - def get_store_usage_percent(self): ... - -def rods_connect(): ... diff --git a/typeshed/galaxy/objectstore/s3.pyi b/typeshed/galaxy/objectstore/s3.pyi deleted file mode 100644 index 8ffbd92c5..000000000 --- a/typeshed/galaxy/objectstore/s3.pyi +++ /dev/null @@ -1,34 +0,0 @@ -# Stubs for galaxy.objectstore.s3 (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from .s3_multipart_upload import multipart_upload as multipart_upload -from ..objectstore import convert_bytes as convert_bytes, ObjectStore as ObjectStore - -boto = ... # type: Any -NO_BOTO_ERROR_MESSAGE = ... # type: str -log = ... # type: Any - -class S3ObjectStore(ObjectStore): - staging_path = ... # type: Any - transfer_progress = ... # type: int - bucket = ... # type: Any - cache_size = ... # type: Any - sleeper = ... # type: Any - cache_monitor_thread = ... # type: Any - use_axel = ... # type: bool - def __init__(self, config, config_xml) -> None: ... - def file_ready(self, obj, **kwargs): ... - def exists(self, obj, **kwargs): ... - def create(self, obj, **kwargs): ... - def empty(self, obj, **kwargs): ... - def size(self, obj, **kwargs): ... - def delete(self, obj, entire_dir: bool = ..., **kwargs): ... - def get_data(self, obj, start: int = ..., count: int = ..., **kwargs): ... - def get_filename(self, obj, **kwargs): ... - def update_from_file(self, obj, file_name: Optional[Any] = ..., create: bool = ..., **kwargs): ... - def get_object_url(self, obj, **kwargs): ... - def get_store_usage_percent(self): ... - -class SwiftObjectStore(S3ObjectStore): ... diff --git a/typeshed/galaxy/objectstore/s3_multipart_upload.pyi b/typeshed/galaxy/objectstore/s3_multipart_upload.pyi deleted file mode 100644 index 9bf1d8726..000000000 --- a/typeshed/galaxy/objectstore/s3_multipart_upload.pyi +++ /dev/null @@ -1,13 +0,0 @@ -# Stubs for galaxy.objectstore.s3_multipart_upload (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -boto = ... # type: Any - -def map_wrap(f): ... -def mp_from_ids(s3server, mp_id, mp_keyname, mp_bucketname): ... -def transfer_part(s3server, mp_id, mp_keyname, mp_bucketname, i, part): ... -def multipart_upload(s3server, bucket, s3_key_name, tarball, mb_size): ... -def multimap(cores: Optional[Any] = ...): ... diff --git a/typeshed/galaxy/tool_util/__init__.pyi b/typeshed/galaxy/tool_util/__init__.pyi deleted file mode 100644 index ef883e955..000000000 --- a/typeshed/galaxy/tool_util/__init__.pyi +++ /dev/null @@ -1,4 +0,0 @@ -# Stubs for galaxy.tools (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/typeshed/galaxy/tool_util/cwl/__init__.pyi b/typeshed/galaxy/tool_util/cwl/__init__.pyi deleted file mode 100644 index 72bc0494f..000000000 --- a/typeshed/galaxy/tool_util/cwl/__init__.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for galaxy.tools.cwl (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from .cwltool_deps import needs_shell_quoting as needs_shell_quoting, shellescape as shellescape -from .parser import tool_proxy as tool_proxy, workflow_proxy as workflow_proxy -from .representation import to_cwl_job as to_cwl_job, to_galaxy_parameters as to_galaxy_parameters -from .runtime_actions import handle_outputs as handle_outputs diff --git a/typeshed/galaxy/tool_util/cwl/cwltool_deps.pyi b/typeshed/galaxy/tool_util/cwl/cwltool_deps.pyi deleted file mode 100644 index 351a4208d..000000000 --- a/typeshed/galaxy/tool_util/cwl/cwltool_deps.pyi +++ /dev/null @@ -1,22 +0,0 @@ -# Stubs for galaxy.tools.cwl.cwltool_deps (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from cwltool import main as main, workflow as workflow, process as process, pathmapper as pathmapper -from cwltool import load_tool as load_tool -import shellescape as shellescape -import schema_salad as schema_salad -from schema_salad import ref_resolver as ref_resolver - -main = ... # type: Any -workflow = ... # type: Any -process = ... # type: Any -pathmapper = ... # type: Any -load_tool = ... # type: Any -shellescape = ... # type: Any -schema_salad = ... # type: Any -ref_resolver = ... # type: Any -needs_shell_quoting = ... # type: Any - -def ensure_cwltool_available(): ... diff --git a/typeshed/galaxy/tool_util/cwl/parser.pyi b/typeshed/galaxy/tool_util/cwl/parser.pyi deleted file mode 100644 index 369b14688..000000000 --- a/typeshed/galaxy/tool_util/cwl/parser.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# Stubs for galaxy.tools.cwl.parser (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def tool_proxy(tool_path, strict_cwl_validation: bool = ...): ... -def load_job_proxy(job_directory, strict_cwl_validation: bool = ...): ... - -class ToolProxy: - def __init__(self, tool, tool_path) -> None: ... - def job_proxy(self, input_dict, output_dict, job_directory: str = ...): ... - def input_instances(self): ... - def output_instances(self): ... - def docker_identifier(self): ... - def description(self): ... - def label(self): ... - -class CommandLineToolProxy(ToolProxy): - def description(self): ... - def label(self): ... - def input_instances(self): ... - def output_instances(self): ... - def docker_identifier(self): ... - -class ExpressionToolProxy(CommandLineToolProxy): ... - -class JobProxy: - def __init__(self, tool_proxy, input_dict, output_dict, job_directory) -> None: ... - def cwl_job(self): ... - @property - def is_command_line_job(self): ... - @property - def command_line(self): ... - @property - def stdin(self): ... - @property - def stdout(self): ... - @property - def environment(self): ... - @property - def generate_files(self): ... - def collect_outputs(self, tool_working_directory): ... - def save_job(self): ... - def output_id(self, output_name): ... - def output_path(self, output_name): ... - def output_secondary_files_dir(self, output_name, create: bool = ...): ... - def stage_files(self): ... - -class WorkflowProxy: - def __init__(self, workflow, workflow_path) -> None: ... - def step_proxies(self): ... - @property - def runnables(self): ... - def to_dict(self): ... - -class StepProxy: - def __init__(self, workflow_proxy, step) -> None: ... - def to_dict(self): ... - -class ConditionalInstance: - input_type = ... # type: Any - name = ... # type: Any - case = ... # type: Any - whens = ... # type: Any - def __init__(self, name, case, whens) -> None: ... - def to_dict(self): ... - -class SelectInputInstance: - input_type = ... # type: Any - name = ... # type: Any - label = ... # type: Any - description = ... # type: Any - options = ... # type: Any - def __init__(self, name, label, description, options) -> None: ... - def to_dict(self): ... - -class InputInstance: - input_type = ... # type: Any - name = ... # type: Any - label = ... # type: Any - description = ... # type: Any - required = ... # type: bool - array = ... # type: Any - area = ... # type: Any - def __init__(self, name, label, description, input_type, array: bool = ..., area: bool = ...) -> None: ... - def to_dict(self, itemwise: bool = ...): ... - -class OutputInstance: - name = ... # type: Any - output_data_type = ... # type: Any - output_type = ... # type: Any - path = ... # type: Any - def __init__(self, name, output_data_type, output_type, path: Optional[Any] = ...) -> None: ... diff --git a/typeshed/galaxy/tool_util/cwl/representation.pyi b/typeshed/galaxy/tool_util/cwl/representation.pyi deleted file mode 100644 index ef2cc45fe..000000000 --- a/typeshed/galaxy/tool_util/cwl/representation.pyi +++ /dev/null @@ -1,12 +0,0 @@ -# Stubs for galaxy.tools.cwl.representation (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -log = ... # type: Any -NOT_PRESENT = ... # type: Any -GALAXY_TO_CWL_TYPES = ... # type: Any - -def to_cwl_job(tool, param_dict, local_working_directory): ... -def to_galaxy_parameters(tool, as_dict): ... diff --git a/typeshed/galaxy/tool_util/cwl/runtime_actions.pyi b/typeshed/galaxy/tool_util/cwl/runtime_actions.pyi deleted file mode 100644 index 4f1558d99..000000000 --- a/typeshed/galaxy/tool_util/cwl/runtime_actions.pyi +++ /dev/null @@ -1,7 +0,0 @@ -# Stubs for galaxy.tools.cwl.runtime_actions (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def handle_outputs(job_directory: Optional[Any] = ...): ... diff --git a/typeshed/galaxy/tool_util/cwl/schema.pyi b/typeshed/galaxy/tool_util/cwl/schema.pyi deleted file mode 100644 index 1c51ead4e..000000000 --- a/typeshed/galaxy/tool_util/cwl/schema.pyi +++ /dev/null @@ -1,22 +0,0 @@ -# Stubs for galaxy.tools.cwl.schema (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from .cwltool_deps import ensure_cwltool_available as ensure_cwltool_available, load_tool as load_tool, schema_salad as schema_salad, workflow as workflow -from collections import namedtuple - -RawProcessReference = namedtuple('RawProcessReference', ['process_object', 'uri']) - -ProcessDefinition = namedtuple('ProcessDefinition', ['process_object', 'metadata', 'document_loader', 'avsc_names', 'raw_process_reference']) - -class SchemaLoader: - def __init__(self, strict: bool = ...) -> None: ... - @property - def raw_document_loader(self): ... - def raw_process_reference(self, path): ... - def process_definition(self, raw_reference): ... - def tool(self, **kwds): ... - -schema_loader = ... # type: Any -non_strict_schema_loader = ... # type: Any diff --git a/typeshed/galaxy/tool_util/deps/__init__.pyi b/typeshed/galaxy/tool_util/deps/__init__.pyi deleted file mode 100644 index 052ba9847..000000000 --- a/typeshed/galaxy/tool_util/deps/__init__.pyi +++ /dev/null @@ -1,41 +0,0 @@ -# Stubs for galaxy.tools.deps (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional, List -from .requirements import ToolRequirement as ToolRequirement, ToolRequirements as ToolRequirements -from .resolvers import NullDependency as NullDependency -from .resolvers.conda import CondaDependencyResolver as CondaDependencyResolver -from .resolvers.galaxy_packages import GalaxyPackageDependencyResolver as GalaxyPackageDependencyResolver -from .resolvers.tool_shed_packages import ToolShedPackageDependencyResolver as ToolShedPackageDependencyResolver - -log = ... # type: Any -CONFIG_VAL_NOT_FOUND = ... # type: Any - -def build_dependency_manager(app_config_dict: Any, resolution_config_dict: Any, conf_file: Any) -> DependencyManager: ... - -class NullDependencyManager: - dependency_resolvers = ... # type: Any - def uses_tool_shed_dependencies(self): ... - def dependency_shell_commands(self, requirements: ToolRequirements, **kwds) -> List[str]: ... - def find_dep(self, name, version: Optional[Any] = ..., type: str = ..., **kwds): ... - -class DependencyManager: - default_base_path = ... # type: Any - resolver_classes = ... # type: Any - dependency_resolvers = ... # type: Any - def __init__(self, default_base_path, conf_file: Optional[Any] = ..., app_config: Any = ...) -> None: ... - def get_resolver_option(self, resolver, key, explicit_resolver_options: Any = ...): ... - def get_app_option(self, key, default: Optional[Any] = ...): ... - def dependency_shell_commands(self, requirements: ToolRequirements, **kwds) -> List[str]: ... - def requirements_to_dependencies(self, requirements, **kwds): ... - def uses_tool_shed_dependencies(self): ... - def find_dep(self, name, version: Optional[Any] = ..., type: str = ..., **kwds): ... - -class CachedDependencyManager(DependencyManager): - tool_dependency_cache_dir = ... # type: Any - def __init__(self, default_base_path, conf_file: Optional[Any] = ..., app_config: Any = ..., tool_dependency_cache_dir: Optional[Any] = ...) -> None: ... - def build_cache(self, requirements, **kwds): ... - def dependency_shell_commands(self, requirements: ToolRequirements, **kwds) -> List[str]: ... - def hash_dependencies(self, resolved_dependencies): ... - def get_hashed_dependencies_path(self, resolved_dependencies): ... diff --git a/typeshed/galaxy/tool_util/deps/brew_exts.pyi b/typeshed/galaxy/tool_util/deps/brew_exts.pyi deleted file mode 100644 index c526375e6..000000000 --- a/typeshed/galaxy/tool_util/deps/brew_exts.pyi +++ /dev/null @@ -1,74 +0,0 @@ -# Stubs for galaxy.tools.deps.brew_exts (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -WHITESPACE_PATTERN = ... # type: Any -DESCRIPTION = ... # type: str -DEFAULT_HOMEBREW_ROOT = ... # type: str -NO_BREW_ERROR_MESSAGE = ... # type: str -CANNOT_DETERMINE_TAP_ERROR_MESSAGE = ... # type: str -VERBOSE = ... # type: bool -RELAXED = ... # type: bool -BREW_ARGS = ... # type: Any - -class BrewContext: - homebrew_prefix = ... # type: Any - homebrew_cellar = ... # type: Any - def __init__(self, args: Optional[Any] = ...) -> None: ... - -class RecipeContext: - @staticmethod - def from_args(args, brew_context: Optional[Any] = ...): ... - recipe = ... # type: Any - version = ... # type: Any - brew_context = ... # type: Any - def __init__(self, recipe, version, brew_context: Optional[Any] = ...) -> None: ... - @property - def cellar_path(self): ... - @property - def tap_path(self): ... - -def main(): ... - -class CommandLineException(Exception): - command = ... # type: Any - stdout = ... # type: Any - stderr = ... # type: Any - message = ... # type: Any - def __init__(self, command, stdout, stderr) -> None: ... - -def versioned_install(recipe_context, package: Optional[Any] = ..., version: Optional[Any] = ..., installed_deps: Any = ...): ... -def commit_for_version(recipe_context, package, version): ... -def print_versioned_deps(recipe_context, recipe, version): ... -def load_versioned_deps(cellar_path, relaxed: Optional[Any] = ...): ... -def unversioned_install(package): ... -def attempt_unlink_all(package, deps): ... -def attempt_unlink(package): ... -def brew_execute(args, env: Optional[Any] = ...): ... -def build_env_statements_from_recipe_context(recipe_context, **kwds): ... -def build_env_statements(cellar_root, cellar_path, relaxed: Optional[Any] = ..., custom_only: bool = ...): ... -def build_env_actions(deps, cellar_root, cellar_path, relaxed: Optional[Any] = ..., custom_only: bool = ...): ... - -class EnvAction: - variable = ... # type: Any - action = ... # type: Any - value = ... # type: Any - def __init__(self, keg_root, action_description) -> None: ... - @staticmethod - def build_env(env_actions): ... - def modify_environ(self, environ): ... - def to_statements(self): ... - -def brew_head_at_version(recipe_context, package, version): ... -def brew_head_at_commit(commit, tap_path): ... -def git_execute(args): ... -def execute(cmds, env: Optional[Any] = ...): ... -def brew_deps(package): ... -def brew_info(recipe): ... -def extended_brew_info(recipe): ... -def brew_versions_info(package, tap_path): ... -def recipe_cellar_path(cellar_path, recipe, version): ... -def ensure_brew_on_path(args): ... -def which(file): ... diff --git a/typeshed/galaxy/tool_util/deps/brew_util.pyi b/typeshed/galaxy/tool_util/deps/brew_util.pyi deleted file mode 100644 index c791f1832..000000000 --- a/typeshed/galaxy/tool_util/deps/brew_util.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# Stubs for galaxy.tools.deps.brew_util (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from ..deps import brew_exts as brew_exts - -DEFAULT_TAP = ... # type: str - -class HomebrewRecipe: - recipe = ... # type: Any - version = ... # type: Any - tap = ... # type: Any - def __init__(self, recipe, version, tap) -> None: ... - -def requirements_to_recipes(requirements): ... -def requirement_to_recipe(requirement): ... -def requirements_to_recipe_contexts(requirements, brew_context): ... diff --git a/typeshed/galaxy/tool_util/deps/commands.pyi b/typeshed/galaxy/tool_util/deps/commands.pyi deleted file mode 100644 index a11b90dc8..000000000 --- a/typeshed/galaxy/tool_util/deps/commands.pyi +++ /dev/null @@ -1,22 +0,0 @@ -# Stubs for galaxy.tools.deps.commands (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from galaxy.util import which as which - -def redirecting_io(sys: Any = ...): ... -def redirect_aware_commmunicate(p, sys: Any = ...): ... -def shell(cmds, env: Optional[Any] = ..., **kwds): ... -def shell_process(cmds, env: Optional[Any] = ..., **kwds): ... -def execute(cmds): ... -def argv_to_str(command_argv, quote: bool = ...): ... -def download_command(url, to: Any = ..., quote_url: bool = ...): ... - -class CommandLineException(Exception): - command = ... # type: Any - stdout = ... # type: Any - stderr = ... # type: Any - returncode = ... # type: Any - message = ... # type: Any - def __init__(self, command, stdout, stderr, returncode) -> None: ... diff --git a/typeshed/galaxy/tool_util/deps/conda_compat.pyi b/typeshed/galaxy/tool_util/deps/conda_compat.pyi deleted file mode 100644 index 0cc638263..000000000 --- a/typeshed/galaxy/tool_util/deps/conda_compat.pyi +++ /dev/null @@ -1,21 +0,0 @@ -# Stubs for galaxy.tools.deps.conda_compat (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from conda_build.metadata import MetaData as MetaData - -MetaData = ... # type: Any - -class _Memoized: - func = ... # type: Any - cache = ... # type: Any - def __init__(self, func) -> None: ... - def __call__(self, *args): ... - -def raw_metadata(recipe_dir): ... - -class _MetaData: - meta = ... # type: Any - def __init__(self, input_dir) -> None: ... - def get_value(self, field, default: Optional[Any] = ...): ... diff --git a/typeshed/galaxy/tool_util/deps/conda_util.pyi b/typeshed/galaxy/tool_util/deps/conda_util.pyi deleted file mode 100644 index 1e418baab..000000000 --- a/typeshed/galaxy/tool_util/deps/conda_util.pyi +++ /dev/null @@ -1,69 +0,0 @@ -# Stubs for galaxy.tools.deps.conda_util (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -import installable -from sys import platform as _platform - -class CondaContext(installable.InstallableContext): - installable_description = ... # type: str - condarc_override = ... # type: Any - conda_exec = ... # type: Any - debug = ... # type: Any - shell_exec = ... # type: Any - copy_dependencies = ... # type: Any - conda_prefix = ... # type: Any - ensure_channels = ... # type: Any - ensured_channels = ... # type: bool - use_local = ... # type: Any - def __init__(self, conda_prefix: Optional[Any] = ..., conda_exec: Optional[Any] = ..., shell_exec: Optional[Any] = ..., debug: bool = ..., ensure_channels: str = ..., condarc_override: Optional[Any] = ..., use_path_exec: Any = ..., copy_dependencies: bool = ..., use_local: Any = ...) -> None: ... - @property - def conda_version(self): ... - @property - def conda_build_available(self): ... - def ensure_channels_configured(self): ... - def ensure_conda_build_installed_if_needed(self): ... - def conda_info(self): ... - def is_conda_installed(self): ... - def can_install_conda(self): ... - def load_condarc(self): ... - def save_condarc(self, conf): ... - @property - def condarc(self): ... - def command(self, operation, args): ... - def exec_command(self, operation, args): ... - def exec_create(self, args, allow_local: bool = ...): ... - def exec_remove(self, args): ... - def exec_install(self, args, allow_local: bool = ...): ... - def exec_clean(self, args: Any = ..., quiet: bool = ...): ... - def export_list(self, name, path): ... - def env_path(self, env_name): ... - @property - def envs_path(self): ... - def has_env(self, env_name): ... - @property - def deactivate(self): ... - @property - def activate(self): ... - def is_installed(self): ... - def can_install(self): ... - @property - def parent_path(self): ... - -class CondaTarget: - package = ... # type: Any - version = ... # type: Any - channel = ... # type: Any - def __init__(self, package, version: Optional[Any] = ..., channel: Optional[Any] = ...) -> None: ... - @property - def package_specifier(self): ... - @property - def install_environment(self): ... - def __hash__(self): ... - def __eq__(self, other): ... - def __ne__(self, other): ... - -def install_conda(conda_context: Optional[Any] = ..., force_conda_build: bool = ...): ... -def install_conda_target(conda_target, conda_context: Optional[Any] = ..., skip_environment: bool = ...): ... -def requirements_to_conda_targets(requirements, conda_context: Optional[Any] = ...): ... diff --git a/typeshed/galaxy/tool_util/deps/container_resolvers/__init__.pyi b/typeshed/galaxy/tool_util/deps/container_resolvers/__init__.pyi deleted file mode 100644 index 4e8c8222c..000000000 --- a/typeshed/galaxy/tool_util/deps/container_resolvers/__init__.pyi +++ /dev/null @@ -1,14 +0,0 @@ -# Stubs for galaxy.tools.deps.container_resolvers (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from galaxy.util.dictifiable import Dictifiable - -class ContainerResolver(Dictifiable): - dict_collection_visible_keys = ... # type: Any - app_info = ... # type: Any - resolver_kwds = ... # type: Any - def __init__(self, app_info: Optional[Any] = ..., **kwds) -> None: ... - def resolve(self, tool_info): ... - def resolver_type(self): ... diff --git a/typeshed/galaxy/tool_util/deps/container_resolvers/explicit.pyi b/typeshed/galaxy/tool_util/deps/container_resolvers/explicit.pyi deleted file mode 100644 index 3f45f9529..000000000 --- a/typeshed/galaxy/tool_util/deps/container_resolvers/explicit.pyi +++ /dev/null @@ -1,9 +0,0 @@ -# Stubs for galaxy.tools.deps.container_resolvers.explicit (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from ..container_resolvers import ContainerResolver - -class ExplicitContainerResolver(ContainerResolver): - resolver_type = ... # type: str - def resolve(self, enabled_container_types, tool_info): ... diff --git a/typeshed/galaxy/tool_util/deps/container_resolvers/mulled.pyi b/typeshed/galaxy/tool_util/deps/container_resolvers/mulled.pyi deleted file mode 100644 index 5f7a6b4ee..000000000 --- a/typeshed/galaxy/tool_util/deps/container_resolvers/mulled.pyi +++ /dev/null @@ -1,55 +0,0 @@ -# Stubs for galaxy.tools.deps.container_resolvers.mulled (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from ..container_resolvers import ContainerResolver -from collections import namedtuple - -CachedMulledImageSingleTarget = namedtuple('CachedMulledImageSingleTarget', ['package_name', 'version', 'build', 'image_identifier']) - -CachedV1MulledImageMultiTarget = namedtuple('CachedV1MulledImageMultiTarget', ['hash', 'build', 'image_identifier']) - -CachedV2MulledImageMultiTarget = namedtuple('CachedV2MulledImageMultiTarget', ['package_hash', 'version_hash', 'build', 'image_identifier']) - -class CachedMulledDockerContainerResolver(ContainerResolver): - resolver_type = ... # type: str - container_type = ... # type: str - namespace = ... # type: Any - hash_func = ... # type: Any - def __init__(self, app_info: Optional[Any] = ..., namespace: Optional[Any] = ..., hash_func: str = ...) -> None: ... - def resolve(self, enabled_container_types, tool_info): ... - -class CachedMulledSingularityContainerResolver(ContainerResolver): - resolver_type = ... # type: str - container_type = ... # type: str - cache_directory = ... # type: Any - hash_func = ... # type: Any - def __init__(self, app_info: Optional[Any] = ..., hash_func: str = ...) -> None: ... - def resolve(self, enabled_container_types, tool_info): ... - -class MulledDockerContainerResolver(ContainerResolver): - resolver_type = ... # type: str - container_type = ... # type: str - namespace = ... # type: Any - hash_func = ... # type: Any - def __init__(self, app_info: Optional[Any] = ..., namespace: str = ..., hash_func: str = ...) -> None: ... - def resolve(self, enabled_container_types, tool_info): ... - -class BuildMulledDockerContainerResolver(ContainerResolver): - resolver_type = ... # type: str - container_type = ... # type: str - namespace = ... # type: Any - hash_func = ... # type: Any - auto_init = ... # type: Any - def __init__(self, app_info: Optional[Any] = ..., namespace: str = ..., hash_func: str = ..., **kwds) -> None: ... - def resolve(self, enabled_container_types, tool_info): ... - -class BuildMulledSingularityContainerResolver(ContainerResolver): - resolver_type = ... # type: str - container_type = ... # type: str - cache_directory = ... # type: Any - hash_func = ... # type: Any - auto_init = ... # type: Any - def __init__(self, app_info: Optional[Any] = ..., hash_func: str = ..., **kwds) -> None: ... - def resolve(self, enabled_container_types, tool_info): ... diff --git a/typeshed/galaxy/tool_util/deps/containers.pyi b/typeshed/galaxy/tool_util/deps/containers.pyi deleted file mode 100644 index bcc023340..000000000 --- a/typeshed/galaxy/tool_util/deps/containers.pyi +++ /dev/null @@ -1,80 +0,0 @@ -# Stubs for galaxy.tools.deps.containers (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional, Text -from .container_resolvers.explicit import ExplicitContainerResolver as ExplicitContainerResolver -from .container_resolvers.mulled import BuildMulledDockerContainerResolver as BuildMulledDockerContainerResolver, BuildMulledSingularityContainerResolver as BuildMulledSingularityContainerResolver, CachedMulledDockerContainerResolver as CachedMulledDockerContainerResolver, CachedMulledSingularityContainerResolver as CachedMulledSingularityContainerResolver, MulledDockerContainerResolver as MulledDockerContainerResolver -from .requirements import ContainerDescription -from .requirements import DEFAULT_CONTAINER_RESOLVE_DEPENDENCIES as DEFAULT_CONTAINER_RESOLVE_DEPENDENCIES, DEFAULT_CONTAINER_SHELL as DEFAULT_CONTAINER_SHELL -from ..deps import docker_util as docker_util -from ..deps import singularity_util as singularity_util - -log = ... # type: Any -DOCKER_CONTAINER_TYPE = ... # type: str -SINGULARITY_CONTAINER_TYPE = ... # type: str -DEFAULT_CONTAINER_TYPE = ... # type: Any -ALL_CONTAINER_TYPES = ... # type: Any -LOAD_CACHED_IMAGE_COMMAND_TEMPLATE = ... # type: str - -class ContainerFinder: - app_info = ... # type: Any - container_registry = ... # type: Any - def __init__(self, app_info) -> None: ... - def find_best_container_description(self, enabled_container_types, tool_info) -> ContainerDescription: ... - def find_container(self, tool_info, destination_info, job_info): ... - -class NullContainerFinder: - def find_container(self, tool_info, destination_info, job_info): ... - -class ContainerRegistry: - resolver_classes = ... # type: Any - enable_beta_mulled_containers = ... # type: Any - app_info = ... # type: Any - container_resolvers = ... # type: Any - def __init__(self, app_info) -> None: ... - def find_best_container_description(self, enabled_container_types, tool_info) -> ContainerDescription: ... - -class JobInfo: - working_directory = ... # type: Any - job_directory = ... # type: Any - tool_directory = ... # type: Any - job_directory_type = ... # type: Any - def __init__(self, working_directory, tool_directory, job_directory, job_directory_type) -> None: ... - -class Container: - container_id = ... # type: Any - app_info = ... # type: Any - tool_info = ... # type: Any - destination_info = ... # type: Any - job_info = ... # type: Any - container_description = ... # type: Any - def __init__(self, container_id, app_info, tool_info, destination_info, job_info, container_description) -> None: ... - @property - def resolve_dependencies(self): ... - @property - def shell(self): ... - def containerize_command(self, command): ... - -def preprocess_volumes(volumes_raw_str, container_type): ... - -class HasDockerLikeVolumes: ... - -class DockerContainer(Container, HasDockerLikeVolumes): - container_type = ... # type: Any - def containerize_command(self, command): ... - -def docker_cache_path(cache_directory, container_id): ... - -class SingularityContainer(Container, HasDockerLikeVolumes): - container_type = ... # type: Any - def containerize_command(self, command): ... - -CONTAINER_CLASSES = ... # type: Any - -class NullContainer: - def __init__(self) -> None: ... - def __bool__(self): ... - __nonzero__ = ... # type: Any - -NULL_CONTAINER = ... # type: Any diff --git a/typeshed/galaxy/tool_util/deps/dependencies.pyi b/typeshed/galaxy/tool_util/deps/dependencies.pyi deleted file mode 100644 index 83bf63c0b..000000000 --- a/typeshed/galaxy/tool_util/deps/dependencies.pyi +++ /dev/null @@ -1,32 +0,0 @@ -# Stubs for galaxy.tools.deps.dependencies (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -class AppInfo: - galaxy_root_dir = ... # type: Any - default_file_path = ... # type: Any - outputs_to_working_directory = ... # type: Any - container_image_cache_path = ... # type: Any - library_import_dir = ... # type: Any - enable_mulled_containers = ... # type: Any - containers_resolvers_config_file = ... # type: Any - involucro_path = ... # type: Any - involucro_auto_init = ... # type: Any - def __init__(self, galaxy_root_dir: Optional[Any] = ..., default_file_path: Optional[Any] = ..., outputs_to_working_directory: bool = ..., container_image_cache_path: Optional[Any] = ..., library_import_dir: Optional[Any] = ..., enable_mulled_containers: bool = ..., containers_resolvers_config_file: Optional[Any] = ..., involucro_path: Optional[Any] = ..., involucro_auto_init: bool = ...) -> None: ... - -class DependenciesDescription: - requirements = ... # type: Any - installed_tool_dependencies = ... # type: Any - def __init__(self, requirements: Any = ..., installed_tool_dependencies: Any = ...) -> None: ... - def to_dict(self): ... - @staticmethod - def from_dict(as_dict): ... - -class ToolInfo: - container_descriptions = ... # type: Any - requirements = ... # type: Any - requires_galaxy_python_environment = ... # type: Any - env_pass_through = ... # type: Any - def __init__(self, container_descriptions: Any = ..., requirements: Any = ..., requires_galaxy_python_environment: bool = ...) -> None: ... diff --git a/typeshed/galaxy/tool_util/deps/docker_util.pyi b/typeshed/galaxy/tool_util/deps/docker_util.pyi deleted file mode 100644 index e98b338cc..000000000 --- a/typeshed/galaxy/tool_util/deps/docker_util.pyi +++ /dev/null @@ -1,41 +0,0 @@ -# Stubs for galaxy.tools.deps.docker_util (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from .commands import argv_to_str as argv_to_str - -DEFAULT_DOCKER_COMMAND = ... # type: str -DEFAULT_SUDO = ... # type: bool -DEFAULT_SUDO_COMMAND = ... # type: str -DEFAULT_HOST = ... # type: Any -DEFAULT_VOLUME_MOUNT_TYPE = ... # type: str -DEFAULT_WORKING_DIRECTORY = ... # type: Any -DEFAULT_NET = ... # type: Any -DEFAULT_MEMORY = ... # type: Any -DEFAULT_VOLUMES_FROM = ... # type: Any -DEFAULT_AUTO_REMOVE = ... # type: bool -DEFAULT_SET_USER = ... # type: str -DEFAULT_RUN_EXTRA_ARGUMENTS = ... # type: Any - -class DockerVolume: - from_path = ... # type: Any - to_path = ... # type: Any - how = ... # type: Any - def __init__(self, path, to_path: Optional[Any] = ..., how: Any = ...) -> None: ... - @staticmethod - def volumes_from_str(volumes_as_str): ... - @staticmethod - def volume_from_str(as_str): ... - -def kill_command(container, signal: Optional[Any] = ..., **kwds): ... -def logs_command(container, **kwds): ... -def build_command(image, docker_build_path, **kwds): ... -def build_save_image_command(image, destination, **kwds): ... -def build_pull_command(tag, **kwds): ... -def build_docker_cache_command(image, **kwds): ... -def build_docker_images_command(truncate: bool = ..., **kwds): ... -def build_docker_load_command(**kwds): ... -def build_docker_run_command(container_command, image, interactive: bool = ..., terminal: bool = ..., tag: Optional[Any] = ..., volumes: Any = ..., volumes_from: Any = ..., memory: Any = ..., env_directives: Any = ..., working_directory: Any = ..., name: Optional[Any] = ..., net: Any = ..., run_extra_arguments: Any = ..., docker_cmd: Any = ..., sudo: Any = ..., sudo_cmd: Any = ..., auto_rm: Any = ..., set_user: Any = ..., host: Any = ...): ... -def command_list(command, command_args: Any = ..., **kwds): ... -def command_shell(command, command_args: Any = ..., **kwds): ... diff --git a/typeshed/galaxy/tool_util/deps/dockerfiles.pyi b/typeshed/galaxy/tool_util/deps/dockerfiles.pyi deleted file mode 100644 index 3cf02d563..000000000 --- a/typeshed/galaxy/tool_util/deps/dockerfiles.pyi +++ /dev/null @@ -1,15 +0,0 @@ -# Stubs for galaxy.tools.deps.dockerfiles (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from ..deps import commands as commands -from ..deps import docker_util as docker_util -from ..deps.containers import docker_cache_path as docker_cache_path -from ..deps.requirements import parse_requirements_from_xml as parse_requirements_from_xml -from ...tools import loader_directory as loader_directory - -log = ... # type: Any - -def docker_host_args(**kwds): ... -def dockerfile_build(path, dockerfile: Optional[Any] = ..., error: Any = ..., **kwds): ... diff --git a/typeshed/galaxy/tool_util/deps/installable.pyi b/typeshed/galaxy/tool_util/deps/installable.pyi deleted file mode 100644 index 818eaa26e..000000000 --- a/typeshed/galaxy/tool_util/deps/installable.pyi +++ /dev/null @@ -1,15 +0,0 @@ -# Stubs for galaxy.tools.deps.installable (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -log = ... # type: Any - -class InstallableContext: - def is_installed(self): ... - def can_install(self): ... - def installable_description(self): ... - def parent_path(self): ... - -def ensure_installed(installable_context, install_func, auto_init): ... diff --git a/typeshed/galaxy/tool_util/deps/mulled/__init__.pyi b/typeshed/galaxy/tool_util/deps/mulled/__init__.pyi deleted file mode 100644 index a3f6bf315..000000000 --- a/typeshed/galaxy/tool_util/deps/mulled/__init__.pyi +++ /dev/null @@ -1,4 +0,0 @@ -# Stubs for galaxy.tools.deps.mulled (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/typeshed/galaxy/tool_util/deps/mulled/_cli.pyi b/typeshed/galaxy/tool_util/deps/mulled/_cli.pyi deleted file mode 100644 index db35991cc..000000000 --- a/typeshed/galaxy/tool_util/deps/mulled/_cli.pyi +++ /dev/null @@ -1,5 +0,0 @@ -# Stubs for galaxy.tools.deps.mulled._cli (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def arg_parser(argv, globals): ... diff --git a/typeshed/galaxy/tool_util/deps/mulled/mulled_build.pyi b/typeshed/galaxy/tool_util/deps/mulled/mulled_build.pyi deleted file mode 100644 index 25650508b..000000000 --- a/typeshed/galaxy/tool_util/deps/mulled/mulled_build.pyi +++ /dev/null @@ -1,24 +0,0 @@ -# Stubs for galaxy.tools.deps.mulled.mulled_build (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -import installable -from sys import platform as _platform - -class BuildExistsException(Exception): ... - -class InvolucroContext(installable.InstallableContext): - installable_description = ... # type: str - involucro_bin = ... # type: str - shell_exec = ... # type: Any - verbose = ... # type: Any - def __init__(self, involucro_bin: Optional[Any] = ..., shell_exec: Optional[Any] = ..., verbose: str = ...) -> None: ... - def build_command(self, involucro_args): ... - def exec_command(self, involucro_args): ... - def is_installed(self): ... - def can_install(self): ... - @property - def parent_path(self): ... - -def main(argv: Optional[Any] = ...): ... diff --git a/typeshed/galaxy/tool_util/deps/mulled/mulled_build_channel.pyi b/typeshed/galaxy/tool_util/deps/mulled/mulled_build_channel.pyi deleted file mode 100644 index c0039bf4d..000000000 --- a/typeshed/galaxy/tool_util/deps/mulled/mulled_build_channel.pyi +++ /dev/null @@ -1,7 +0,0 @@ -# Stubs for galaxy.tools.deps.mulled.mulled_build_channel (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def main(argv: Optional[Any] = ...): ... diff --git a/typeshed/galaxy/tool_util/deps/mulled/mulled_build_files.pyi b/typeshed/galaxy/tool_util/deps/mulled/mulled_build_files.pyi deleted file mode 100644 index 0057d4d8b..000000000 --- a/typeshed/galaxy/tool_util/deps/mulled/mulled_build_files.pyi +++ /dev/null @@ -1,10 +0,0 @@ -# Stubs for galaxy.tools.deps.mulled.mulled_build_files (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from collections import namedtuple - -def main(argv: Optional[Any] = ...): ... - -_Line = namedtuple('_Line', ['targets', 'image_build', 'name_override']) diff --git a/typeshed/galaxy/tool_util/deps/mulled/mulled_build_tool.pyi b/typeshed/galaxy/tool_util/deps/mulled/mulled_build_tool.pyi deleted file mode 100644 index e4af0daca..000000000 --- a/typeshed/galaxy/tool_util/deps/mulled/mulled_build_tool.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for galaxy.tools.deps.mulled.mulled_build_tool (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def main(argv: Optional[Any] = ...): ... -def requirements_to_mulled_targets(requirements): ... diff --git a/typeshed/galaxy/tool_util/deps/mulled/mulled_search.pyi b/typeshed/galaxy/tool_util/deps/mulled/mulled_search.pyi deleted file mode 100644 index 9c8e9c23e..000000000 --- a/typeshed/galaxy/tool_util/deps/mulled/mulled_search.pyi +++ /dev/null @@ -1,23 +0,0 @@ -# Stubs for galaxy.tools.deps.mulled.mulled_search (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -requests = ... # type: Any -Schema = ... # type: Any -TEXT = ... # type: Any -STORED = ... # type: Any -create_in = ... # type: Any -QueryParser = ... # type: Any -QUAY_API_URL = ... # type: str - -class QuaySearch: - index = ... # type: Any - organization = ... # type: Any - def __init__(self, organization) -> None: ... - def build_index(self): ... - def search_repository(self, search_string, non_strict): ... - def get_additional_repository_information(self, repository_string): ... - -def main(argv: Optional[Any] = ...): ... diff --git a/typeshed/galaxy/tool_util/deps/mulled/util.pyi b/typeshed/galaxy/tool_util/deps/mulled/util.pyi deleted file mode 100644 index 33063c28d..000000000 --- a/typeshed/galaxy/tool_util/deps/mulled/util.pyi +++ /dev/null @@ -1,23 +0,0 @@ -# Stubs for galaxy.tools.deps.mulled.util (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from collections import namedtuple - -def quay_versions(namespace, pkg_name): ... -def mulled_tags_for(namespace, image, tag_prefix: Optional[Any] = ...): ... -def split_tag(tag): ... -def version_sorted(elements): ... - -Target = namedtuple('Target', ['package_name', 'version', 'build']) - -def build_target(package_name, version: Optional[Any] = ..., build: Optional[Any] = ..., tag: Optional[Any] = ...): ... -def conda_build_target_str(target): ... -def v1_image_name(targets, image_build: Optional[Any] = ..., name_override: Optional[Any] = ...): ... -def v2_image_name(targets, image_build: Optional[Any] = ..., name_override: Optional[Any] = ...): ... - -image_name = ... # type: Any - -# Names in __all__ with no definition: -# Target diff --git a/typeshed/galaxy/tool_util/deps/requirements.pyi b/typeshed/galaxy/tool_util/deps/requirements.pyi deleted file mode 100644 index 9e6532903..000000000 --- a/typeshed/galaxy/tool_util/deps/requirements.pyi +++ /dev/null @@ -1,75 +0,0 @@ -# Stubs for galaxy.tools.deps.requirements (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Dict, List, Optional, Text - -DEFAULT_REQUIREMENT_TYPE = ... # type: str -DEFAULT_REQUIREMENT_VERSION = ... # type: Any - -class ToolRequirement: - name = ... # type: Any - type = ... # type: Any - version = ... # type: Any - specs = ... # type: Any - def __init__(self, name: Optional[Any] = ..., type: Optional[Any] = ..., version: Optional[Any] = ..., specs: Any = ...) -> None: ... - def to_dict(self) -> Dict[str, Any]: ... - def copy(self): ... - @staticmethod - def from_dict(dict: Dict[str, Any]) -> ToolRequirement: ... - def __eq__(self, other): ... - def __ne__(self, other): ... - def __hash__(self): ... - -class RequirementSpecification: - uri = ... # type: Any - version = ... # type: Any - def __init__(self, uri, version: Optional[Any] = ...) -> None: ... - @property - def specifies_version(self): ... - @property - def short_name(self): ... - def to_dict(self): ... - @staticmethod - def from_dict(dict: Dict[str, Any]) -> ToolRequirements: ... - def __eq__(self, other): ... - def __ne__(self, other): ... - def __hash__(self): ... - -class ToolRequirements: - tool_requirements = ... # type: Any - def __init__(self, tool_requirements: Optional[Any] = ...) -> None: ... - @staticmethod - def from_list(requirements: List[ToolRequirement]) -> ToolRequirements: ... - @property - def resolvable(self): ... - @property - def packages(self): ... - def to_list(self) -> List[ToolRequirement]: ... - def append(self, requirement): ... - def __eq__(self, other): ... - def __ne__(self, other): ... - def __iter__(self): ... - def __getitem__(self, ii): ... - def __len__(self): ... - def __hash__(self): ... - -class ToolRequirementsException(Exception): ... - -DEFAULT_CONTAINER_TYPE = ... # type: str -DEFAULT_CONTAINER_RESOLVE_DEPENDENCIES = ... # type: bool -DEFAULT_CONTAINER_SHELL = ... # type: str - -class ContainerDescription: - identifier = ... # type: Text - type = ... # type: Any - resolve_dependencies = ... # type: Any - shell = ... # type: Any - def __init__(self, identifier: Optional[Any] = ..., type: Any = ..., resolve_dependencies: Any = ..., shell: Any = ...) -> None: ... - def to_dict(self): ... - @staticmethod - def from_dict(dict): ... - -def parse_requirements_from_dict(root_dict): ... -def parse_requirements_from_xml(xml_root): ... -def container_from_element(container_elem): ... diff --git a/typeshed/galaxy/tool_util/deps/resolvers/__init__.pyi b/typeshed/galaxy/tool_util/deps/resolvers/__init__.pyi deleted file mode 100644 index a1ffb20a5..000000000 --- a/typeshed/galaxy/tool_util/deps/resolvers/__init__.pyi +++ /dev/null @@ -1,62 +0,0 @@ -# Stubs for galaxy.tools.deps.resolvers (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from galaxy.util.dictifiable import Dictifiable -from ..requirements import ToolRequirement as ToolRequirement - -class DependencyResolver(Dictifiable): - dict_collection_visible_keys = ... # type: Any - disabled = ... # type: bool - resolves_simple_dependencies = ... # type: bool - can_uninstall_dependencies = ... # type: bool - config_options = ... # type: Any - def resolve(self, requirement, **kwds): ... - -class MultipleDependencyResolver: - def resolve_all(self, requirements, **kwds): ... - -class ListableDependencyResolver: - def list_dependencies(self): ... - -class MappableDependencyResolver: ... - -FROM_UNVERSIONED = ... # type: Any - -class RequirementMapping: - from_name = ... # type: Any - from_version = ... # type: Any - to_name = ... # type: Any - to_version = ... # type: Any - def __init__(self, from_name, from_version, to_name, to_version) -> None: ... - def matches_requirement(self, requirement): ... - def apply(self, requirement): ... - @staticmethod - def from_dict(raw_mapping): ... - -class SpecificationAwareDependencyResolver: ... -class SpecificationPatternDependencyResolver: ... - -class InstallableDependencyResolver: - def install_dependency(self, name, version, type, **kwds): ... - -class Dependency(Dictifiable): - dict_collection_visible_keys = ... # type: Any - cacheable = ... # type: bool - def shell_commands(self, requirement): ... - def exact(self): ... - @property - def resolver_msg(self): ... - -class NullDependency(Dependency): - dependency_type = ... # type: Any - exact = ... # type: bool - version = ... # type: Any - name = ... # type: Any - def __init__(self, version: Optional[Any] = ..., name: Optional[Any] = ...) -> None: ... - @property - def resolver_msg(self): ... - def shell_commands(self, requirement): ... - -class DependencyException(Exception): ... diff --git a/typeshed/galaxy/tool_util/deps/resolvers/brewed_tool_shed_packages.pyi b/typeshed/galaxy/tool_util/deps/resolvers/brewed_tool_shed_packages.pyi deleted file mode 100644 index d581de350..000000000 --- a/typeshed/galaxy/tool_util/deps/resolvers/brewed_tool_shed_packages.pyi +++ /dev/null @@ -1,33 +0,0 @@ -# Stubs for galaxy.tools.deps.resolvers.brewed_tool_shed_packages (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from xml.etree import ElementTree as ET -from .resolver_mixins import UsesHomebrewMixin, UsesInstalledRepositoriesMixin, UsesToolDependencyDirMixin -from ..resolvers import DependencyResolver - -class HomebrewToolShedDependencyResolver(DependencyResolver, UsesHomebrewMixin, UsesToolDependencyDirMixin, UsesInstalledRepositoriesMixin): - resolver_type = ... # type: str - def __init__(self, dependency_manager, **kwds) -> None: ... - def resolve(self, requirement, **kwds): ... - -class RawDependencies: - root = ... # type: Any - dependencies = ... # type: Any - def __init__(self, dependencies_file) -> None: ... - def find(self, package_name, package_version): ... - -class RawDependency: - dependencies = ... # type: Any - package_el = ... # type: Any - repository_el = ... # type: Any - def __init__(self, dependencies, package_el, repository_el) -> None: ... - @property - def repository_owner(self): ... - @property - def repository_name(self): ... - @property - def package_name(self): ... - @property - def package_version(self): ... diff --git a/typeshed/galaxy/tool_util/deps/resolvers/conda.pyi b/typeshed/galaxy/tool_util/deps/resolvers/conda.pyi deleted file mode 100644 index 333954de7..000000000 --- a/typeshed/galaxy/tool_util/deps/resolvers/conda.pyi +++ /dev/null @@ -1,72 +0,0 @@ -# Stubs for galaxy.tools.deps.resolvers.conda (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from ..resolvers import Dependency, DependencyResolver, InstallableDependencyResolver, ListableDependencyResolver, MappableDependencyResolver, MultipleDependencyResolver, SpecificationPatternDependencyResolver - -DEFAULT_ENSURE_CHANNELS = ... # type: str - -class CondaDependencyResolver(DependencyResolver, MultipleDependencyResolver, ListableDependencyResolver, InstallableDependencyResolver, SpecificationPatternDependencyResolver, MappableDependencyResolver): - dict_collection_visible_keys = ... # type: Any - resolver_type = ... # type: str - config_options = ... # type: Any - can_uninstall_dependencies = ... # type: bool - versionless = ... # type: Any - dependency_manager = ... # type: Any - conda_prefix_parent = ... # type: Any - ensure_channels = ... # type: Any - auto_init = ... # type: Any - conda_context = ... # type: Any - disabled = ... # type: Any - auto_install = ... # type: Any - copy_dependencies = ... # type: Any - def __init__(self, dependency_manager, **kwds) -> None: ... - def clean(self, **kwds): ... - def uninstall(self, requirements): ... - def uninstall_environments(self, environments): ... - def install_all(self, conda_targets): ... - def resolve_all(self, requirements, **kwds): ... - def merged_environment_name(self, conda_targets): ... - def resolve(self, requirement, **kwds): ... - def unused_dependency_paths(self, toolbox_requirements_status): ... - def list_dependencies(self): ... - def install_dependency(self, name, version, type, **kwds): ... - @property - def prefix(self): ... - -class MergedCondaDependency(Dependency): - dict_collection_visible_keys = ... # type: Any - dependency_type = ... # type: str - activate = ... # type: Any - conda_context = ... # type: Any - environment_path = ... # type: Any - cache_path = ... # type: Any - def __init__(self, conda_context, environment_path, exact, name: Optional[Any] = ..., version: Optional[Any] = ..., preserve_python_environment: bool = ...) -> None: ... - @property - def exact(self): ... - @property - def name(self): ... - @property - def version(self): ... - def shell_commands(self, requirement): ... - -class CondaDependency(Dependency): - dict_collection_visible_keys = ... # type: Any - dependency_type = ... # type: str - cacheable = ... # type: bool - activate = ... # type: Any - conda_context = ... # type: Any - environment_path = ... # type: Any - cache_path = ... # type: Any - def __init__(self, conda_context, environment_path, exact, name: Optional[Any] = ..., version: Optional[Any] = ..., preserve_python_environment: bool = ...) -> None: ... - @property - def exact(self): ... - @property - def name(self): ... - @property - def version(self): ... - def build_cache(self, cache_path): ... - def set_cache_path(self, cache_path): ... - def build_environment(self): ... - def shell_commands(self, requirement): ... diff --git a/typeshed/galaxy/tool_util/deps/resolvers/galaxy_packages.pyi b/typeshed/galaxy/tool_util/deps/resolvers/galaxy_packages.pyi deleted file mode 100644 index cb4551ffe..000000000 --- a/typeshed/galaxy/tool_util/deps/resolvers/galaxy_packages.pyi +++ /dev/null @@ -1,35 +0,0 @@ -# Stubs for galaxy.tools.deps.resolvers.galaxy_packages (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from .resolver_mixins import UsesToolDependencyDirMixin -from ..resolvers import Dependency, DependencyResolver, ListableDependencyResolver, MappableDependencyResolver - -class GalaxyPackageDependency(Dependency): - dict_collection_visible_keys = ... # type: Any - dependency_type = ... # type: str - script = ... # type: Any - path = ... # type: Any - version = ... # type: Any - name = ... # type: Any - def __init__(self, script, path, version, name, exact: bool = ...) -> None: ... - @property - def exact(self): ... - def shell_commands(self, requirement): ... - -class ToolShedDependency(GalaxyPackageDependency): - dependency_type = ... # type: str - -class BaseGalaxyPackageDependencyResolver(DependencyResolver, UsesToolDependencyDirMixin): - dict_collection_visible_keys = ... # type: Any - dependency_type = ... # type: Any - versionless = ... # type: Any - def __init__(self, dependency_manager, **kwds) -> None: ... - def resolve(self, requirement, **kwds): ... - -class GalaxyPackageDependencyResolver(BaseGalaxyPackageDependencyResolver, ListableDependencyResolver, MappableDependencyResolver): - resolver_type = ... # type: str - def __init__(self, dependency_manager, **kwds) -> None: ... - def resolve(self, requirement, **kwds): ... - def list_dependencies(self): ... diff --git a/typeshed/galaxy/tool_util/deps/resolvers/homebrew.pyi b/typeshed/galaxy/tool_util/deps/resolvers/homebrew.pyi deleted file mode 100644 index 789617317..000000000 --- a/typeshed/galaxy/tool_util/deps/resolvers/homebrew.pyi +++ /dev/null @@ -1,14 +0,0 @@ -# Stubs for galaxy.tools.deps.resolvers.homebrew (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from .resolver_mixins import UsesHomebrewMixin -from ..resolvers import DependencyResolver - -class HomebrewDependencyResolver(DependencyResolver, UsesHomebrewMixin): - resolver_type = ... # type: str - versionless = ... # type: Any - prefer_version = ... # type: Any - def __init__(self, dependency_manager, **kwds) -> None: ... - def resolve(self, requirement, **kwds): ... diff --git a/typeshed/galaxy/tool_util/deps/resolvers/modules.pyi b/typeshed/galaxy/tool_util/deps/resolvers/modules.pyi deleted file mode 100644 index 5762d957d..000000000 --- a/typeshed/galaxy/tool_util/deps/resolvers/modules.pyi +++ /dev/null @@ -1,42 +0,0 @@ -# Stubs for galaxy.tools.deps.resolvers.modules (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from ..resolvers import Dependency, DependencyResolver, MappableDependencyResolver - -class ModuleDependencyResolver(DependencyResolver, MappableDependencyResolver): - dict_collection_visible_keys = ... # type: Any - resolver_type = ... # type: str - versionless = ... # type: Any - modulecmd = ... # type: Any - modulepath = ... # type: Any - default_indicator = ... # type: Any - module_checker = ... # type: Any - def __init__(self, dependency_manager, **kwds) -> None: ... - def resolve(self, requirement, **kwds): ... - -class DirectoryModuleChecker: - module_dependency_resolver = ... # type: Any - directories = ... # type: Any - def __init__(self, module_dependency_resolver, modulepath, prefetch) -> None: ... - def has_module(self, module, version): ... - -class AvailModuleChecker: - module_dependency_resolver = ... # type: Any - modulepath = ... # type: Any - default_indicator = ... # type: Any - prefetched_modules = ... # type: Any - def __init__(self, module_dependency_resolver, modulepath, prefetch, default_indicator: Any = ...) -> None: ... - def has_module(self, module, version): ... - -class ModuleDependency(Dependency): - dict_collection_visible_keys = ... # type: Any - dependency_type = ... # type: str - module_dependency_resolver = ... # type: Any - module_name = ... # type: Any - module_version = ... # type: Any - def __init__(self, module_dependency_resolver, module_name, module_version: Optional[Any] = ..., exact: bool = ...) -> None: ... - @property - def exact(self): ... - def shell_commands(self, requirement): ... diff --git a/typeshed/galaxy/tool_util/deps/resolvers/resolver_mixins.pyi b/typeshed/galaxy/tool_util/deps/resolvers/resolver_mixins.pyi deleted file mode 100644 index 2b90a98d5..000000000 --- a/typeshed/galaxy/tool_util/deps/resolvers/resolver_mixins.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# Stubs for galaxy.tools.deps.resolvers.resolver_mixins (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from ..brew_exts import build_env_statements as build_env_statements, DEFAULT_HOMEBREW_ROOT as DEFAULT_HOMEBREW_ROOT, recipe_cellar_path as recipe_cellar_path -from ..resolvers import Dependency as Dependency, NullDependency as NullDependency - -class UsesHomebrewMixin: ... -class UsesToolDependencyDirMixin: ... -class UsesInstalledRepositoriesMixin: ... - -class HomebrewDependency(Dependency): - commands = ... # type: Any - def __init__(self, commands, exact: bool = ...) -> None: ... - @property - def exact(self): ... - def shell_commands(self, requirement): ... diff --git a/typeshed/galaxy/tool_util/deps/resolvers/tool_shed_packages.pyi b/typeshed/galaxy/tool_util/deps/resolvers/tool_shed_packages.pyi deleted file mode 100644 index 224d377c2..000000000 --- a/typeshed/galaxy/tool_util/deps/resolvers/tool_shed_packages.pyi +++ /dev/null @@ -1,13 +0,0 @@ -# Stubs for galaxy.tools.deps.resolvers.tool_shed_packages (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from .galaxy_packages import BaseGalaxyPackageDependencyResolver -from .resolver_mixins import UsesInstalledRepositoriesMixin - -class ToolShedPackageDependencyResolver(BaseGalaxyPackageDependencyResolver, UsesInstalledRepositoriesMixin): - resolver_type = ... # type: str - dependency_type = ... # type: Any - resolves_simple_dependencies = ... # type: bool - def __init__(self, dependency_manager, **kwds) -> None: ... diff --git a/typeshed/galaxy/tool_util/deps/resolvers/unlinked_tool_shed_packages.pyi b/typeshed/galaxy/tool_util/deps/resolvers/unlinked_tool_shed_packages.pyi deleted file mode 100644 index ddf2ee041..000000000 --- a/typeshed/galaxy/tool_util/deps/resolvers/unlinked_tool_shed_packages.pyi +++ /dev/null @@ -1,25 +0,0 @@ -# Stubs for galaxy.tools.deps.resolvers.unlinked_tool_shed_packages (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from .galaxy_packages import BaseGalaxyPackageDependencyResolver -from ..resolvers import Dependency - -class UnlinkedToolShedPackageDependencyResolver(BaseGalaxyPackageDependencyResolver): - dict_collection_visible_keys = ... # type: Any - resolver_type = ... # type: str - preferred_owners = ... # type: Any - select_by_owner = ... # type: Any - def __init__(self, dependency_manager, **kwds) -> None: ... - -class CandidateDependency(Dependency): - dict_collection_visible_keys = ... # type: Any - dependency_type = ... # type: str - @property - def exact(self): ... - dependency = ... # type: Any - path = ... # type: Any - owner = ... # type: Any - def __init__(self, dependency, path, owner: Any = ...) -> None: ... - def shell_commands(self, requirement): ... diff --git a/typeshed/galaxy/tool_util/deps/singularity_util.pyi b/typeshed/galaxy/tool_util/deps/singularity_util.pyi deleted file mode 100644 index a701d1fd8..000000000 --- a/typeshed/galaxy/tool_util/deps/singularity_util.pyi +++ /dev/null @@ -1,7 +0,0 @@ -# Stubs for galaxy.tools.deps.singularity_util (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -def build_singularity_run_command(container_command, image, volumes: Any = ..., env: Any = ..., working_directory: Any = ..., singularity_cmd: Any = ..., run_extra_arguments: Any = ..., sudo: Any = ..., sudo_cmd: Any = ...): ... diff --git a/typeshed/galaxy/tool_util/deps/views.pyi b/typeshed/galaxy/tool_util/deps/views.pyi deleted file mode 100644 index 2f5799018..000000000 --- a/typeshed/galaxy/tool_util/deps/views.pyi +++ /dev/null @@ -1,32 +0,0 @@ -# Stubs for galaxy.tools.deps.views (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -class DependencyResolversView: - def __init__(self, app) -> None: ... - def index(self): ... - def show(self, index): ... - def reload(self): ... - def manager_requirements(self): ... - def resolver_requirements(self, index): ... - def manager_dependency(self, **kwds): ... - def resolver_dependency(self, index, **kwds): ... - def show_dependencies(self, tool_requirements_d, installed_tool_dependencies: Optional[Any] = ...): ... - def uninstall_dependencies(self, index: Optional[Any] = ..., **payload): ... - @property - def unused_dependency_paths(self): ... - def remove_unused_dependency_paths(self, envs): ... - def install_dependencies(self, requirements): ... - def install_dependency(self, index: Optional[Any] = ..., **payload): ... - @property - def installable_resolvers(self): ... - @property - def uninstallable_resolvers(self): ... - @property - def tool_ids_by_requirements(self): ... - @property - def toolbox_requirements_status(self): ... - def get_requirements_status(self, tool_requirements_d, installed_tool_dependencies: Optional[Any] = ...): ... - def clean(self, index: Optional[Any] = ..., **kwds): ... diff --git a/typeshed/galaxy/tool_util/fetcher.pyi b/typeshed/galaxy/tool_util/fetcher.pyi deleted file mode 100644 index 221bc58a8..000000000 --- a/typeshed/galaxy/tool_util/fetcher.pyi +++ /dev/null @@ -1,10 +0,0 @@ -# Stubs for galaxy.tools.fetcher (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -class ToolLocationFetcher: - resolver_classes = ... # type: Any - def __init__(self) -> None: ... - def to_tool_path(self, path_or_uri_like, **kwds): ... diff --git a/typeshed/galaxy/tool_util/lint.pyi b/typeshed/galaxy/tool_util/lint.pyi deleted file mode 100644 index 9cd7a2631..000000000 --- a/typeshed/galaxy/tool_util/lint.pyi +++ /dev/null @@ -1,33 +0,0 @@ -# Stubs for galaxy.tools.lint (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from .parser import get_tool_source as get_tool_source - -LEVEL_ALL = ... # type: str -LEVEL_WARN = ... # type: str -LEVEL_ERROR = ... # type: str - -def lint_tool_source(tool_source, level: Any = ..., fail_level: Any = ..., extra_modules: Any = ..., skip_types: Any = ...): ... -def lint_xml(tool_xml, level: Any = ..., fail_level: Any = ..., extra_modules: Any = ..., skip_types: Any = ...): ... -def lint_tool_source_with(lint_context, tool_source, extra_modules: Any = ...): ... -def lint_xml_with(lint_context, tool_xml, extra_modules: Any = ...): ... - -class LintContext: - skip_types = ... # type: Any - level = ... # type: Any - found_errors = ... # type: bool - found_warns = ... # type: bool - def __init__(self, level, skip_types: Any = ...) -> None: ... - printed_linter_info = ... # type: bool - valid_messages = ... # type: Any - info_messages = ... # type: Any - warn_messages = ... # type: Any - error_messages = ... # type: Any - def lint(self, name, lint_func, lint_target): ... - def valid(self, message, *args): ... - def info(self, message, *args): ... - def error(self, message, *args): ... - def warn(self, message, *args): ... - def failed(self, fail_level): ... diff --git a/typeshed/galaxy/tool_util/lint_util.pyi b/typeshed/galaxy/tool_util/lint_util.pyi deleted file mode 100644 index e1e1ac02b..000000000 --- a/typeshed/galaxy/tool_util/lint_util.pyi +++ /dev/null @@ -1,5 +0,0 @@ -# Stubs for galaxy.tools.lint_util (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def is_datasource(tool_xml): ... diff --git a/typeshed/galaxy/tool_util/linters/__init__.pyi b/typeshed/galaxy/tool_util/linters/__init__.pyi deleted file mode 100644 index 7f56312cb..000000000 --- a/typeshed/galaxy/tool_util/linters/__init__.pyi +++ /dev/null @@ -1,4 +0,0 @@ -# Stubs for galaxy.tools.linters (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - diff --git a/typeshed/galaxy/tool_util/linters/citations.pyi b/typeshed/galaxy/tool_util/linters/citations.pyi deleted file mode 100644 index 5378b8ded..000000000 --- a/typeshed/galaxy/tool_util/linters/citations.pyi +++ /dev/null @@ -1,5 +0,0 @@ -# Stubs for galaxy.tools.linters.citations (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def lint_citations(tool_xml, lint_ctx): ... diff --git a/typeshed/galaxy/tool_util/linters/command.pyi b/typeshed/galaxy/tool_util/linters/command.pyi deleted file mode 100644 index 2e6863537..000000000 --- a/typeshed/galaxy/tool_util/linters/command.pyi +++ /dev/null @@ -1,6 +0,0 @@ -# Stubs for galaxy.tools.linters.command (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def lint_command(tool_xml, lint_ctx): ... -def get_command(tool_xml): ... diff --git a/typeshed/galaxy/tool_util/linters/cwl.pyi b/typeshed/galaxy/tool_util/linters/cwl.pyi deleted file mode 100644 index a94292e46..000000000 --- a/typeshed/galaxy/tool_util/linters/cwl.pyi +++ /dev/null @@ -1,12 +0,0 @@ -# Stubs for galaxy.tools.linters.cwl (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -lint_tool_types = ... # type: Any - -def lint_cwl_validation(tool_source, lint_ctx): ... -def lint_new_draft(tool_source, lint_ctx): ... -def lint_docker_image(tool_source, lint_ctx): ... -def lint_description(tool_source, lint_ctx): ... diff --git a/typeshed/galaxy/tool_util/linters/general.pyi b/typeshed/galaxy/tool_util/linters/general.pyi deleted file mode 100644 index 812e6e9f7..000000000 --- a/typeshed/galaxy/tool_util/linters/general.pyi +++ /dev/null @@ -1,19 +0,0 @@ -# Stubs for galaxy.tools.linters.general (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -ERROR_VERSION_MSG = ... # type: str -VALID_VERSION_MSG = ... # type: str -ERROR_NAME_MSG = ... # type: str -VALID_NAME_MSG = ... # type: str -ERROR_ID_MSG = ... # type: str -VALID_ID_MSG = ... # type: str -PROFILE_PATTERN = ... # type: Any -PROFILE_INFO_DEFAULT_MSG = ... # type: str -PROFILE_INFO_SPECIFIED_MSG = ... # type: str -PROFILE_INVALID_MSG = ... # type: str -lint_tool_types = ... # type: Any - -def lint_general(tool_source, lint_ctx): ... diff --git a/typeshed/galaxy/tool_util/linters/help.pyi b/typeshed/galaxy/tool_util/linters/help.pyi deleted file mode 100644 index 306fa3bda..000000000 --- a/typeshed/galaxy/tool_util/linters/help.pyi +++ /dev/null @@ -1,6 +0,0 @@ -# Stubs for galaxy.tools.linters.help (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def lint_help(tool_xml, lint_ctx): ... -def rst_invalid(text): ... diff --git a/typeshed/galaxy/tool_util/linters/inputs.pyi b/typeshed/galaxy/tool_util/linters/inputs.pyi deleted file mode 100644 index c06f46c9e..000000000 --- a/typeshed/galaxy/tool_util/linters/inputs.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for galaxy.tools.linters.inputs (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from ..lint_util import is_datasource as is_datasource - -def lint_inputs(tool_xml, lint_ctx): ... -def lint_repeats(tool_xml, lint_ctx): ... diff --git a/typeshed/galaxy/tool_util/linters/outputs.pyi b/typeshed/galaxy/tool_util/linters/outputs.pyi deleted file mode 100644 index ecb922098..000000000 --- a/typeshed/galaxy/tool_util/linters/outputs.pyi +++ /dev/null @@ -1,5 +0,0 @@ -# Stubs for galaxy.tools.linters.outputs (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def lint_output(tool_xml, lint_ctx): ... diff --git a/typeshed/galaxy/tool_util/linters/stdio.pyi b/typeshed/galaxy/tool_util/linters/stdio.pyi deleted file mode 100644 index d7c2927c9..000000000 --- a/typeshed/galaxy/tool_util/linters/stdio.pyi +++ /dev/null @@ -1,7 +0,0 @@ -# Stubs for galaxy.tools.linters.stdio (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from .command import get_command as get_command - -def lint_stdio(tool_source, lint_ctx): ... diff --git a/typeshed/galaxy/tool_util/linters/tests.pyi b/typeshed/galaxy/tool_util/linters/tests.pyi deleted file mode 100644 index d9c7cf0f9..000000000 --- a/typeshed/galaxy/tool_util/linters/tests.pyi +++ /dev/null @@ -1,7 +0,0 @@ -# Stubs for galaxy.tools.linters.tests (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from ..lint_util import is_datasource as is_datasource - -def lint_tsts(tool_xml, lint_ctx): ... diff --git a/typeshed/galaxy/tool_util/linters/xml_order.pyi b/typeshed/galaxy/tool_util/linters/xml_order.pyi deleted file mode 100644 index a3904f6c2..000000000 --- a/typeshed/galaxy/tool_util/linters/xml_order.pyi +++ /dev/null @@ -1,10 +0,0 @@ -# Stubs for galaxy.tools.linters.xml_order (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -TAG_ORDER = ... # type: Any -DATASOURCE_TAG_ORDER = ... # type: Any - -def lint_xml_order(tool_xml, lint_ctx): ... diff --git a/typeshed/galaxy/tool_util/loader.pyi b/typeshed/galaxy/tool_util/loader.pyi deleted file mode 100644 index 4e7cd7fdd..000000000 --- a/typeshed/galaxy/tool_util/loader.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for galaxy.tools.loader (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from galaxy.util.xml_macros import imported_macro_paths as imported_macro_paths, raw_tool_xml_tree as raw_tool_xml_tree, template_macro_params as template_macro_params - -load_tool = ... # type: Any diff --git a/typeshed/galaxy/tool_util/loader_directory.pyi b/typeshed/galaxy/tool_util/loader_directory.pyi deleted file mode 100644 index 628289f72..000000000 --- a/typeshed/galaxy/tool_util/loader_directory.pyi +++ /dev/null @@ -1,15 +0,0 @@ -# Stubs for galaxy.tools.loader_directory (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def find_possible_tools_from_path(path, recursive: bool = ..., enable_beta_formats: bool = ...): ... -def load_tool_sources_from_path(path, load_exception_handler: Any = ..., recursive: bool = ..., register_load_errors: bool = ...): ... -def load_tool_elements_from_path(path, load_exception_handler: Any = ..., recursive: bool = ..., register_load_errors: bool = ...): ... -def is_tool_load_error(obj): ... -def looks_like_a_tool_xml(path): ... -def is_a_yaml_with_class(path, classes): ... -def looks_like_a_tool_yaml(path): ... -def looks_like_a_cwl_artifact(path, classes: Optional[Any] = ...): ... -def looks_like_a_tool_cwl(path): ... diff --git a/typeshed/galaxy/tool_util/locations/__init__.pyi b/typeshed/galaxy/tool_util/locations/__init__.pyi deleted file mode 100644 index af99abd8b..000000000 --- a/typeshed/galaxy/tool_util/locations/__init__.pyi +++ /dev/null @@ -1,7 +0,0 @@ -# Stubs for galaxy.tools.locations (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -class ToolLocationResolver: - def scheme(self): ... - def get_tool_source_path(self, uri_like): ... diff --git a/typeshed/galaxy/tool_util/locations/dockstore.pyi b/typeshed/galaxy/tool_util/locations/dockstore.pyi deleted file mode 100644 index 3420e1eba..000000000 --- a/typeshed/galaxy/tool_util/locations/dockstore.pyi +++ /dev/null @@ -1,19 +0,0 @@ -# Stubs for galaxy.tools.locations.dockstore (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from ..locations import ToolLocationResolver - -class DockStoreResolver(ToolLocationResolver): - scheme = ... # type: str - def get_tool_source_path(self, uri_like): ... - -class _Ga4ghToolClient: - base_url = ... # type: Any - def __init__(self, base_url: str = ...) -> None: ... - def get_tools(self): ... - def get_tool(self, tool_id): ... - def get_tool_version(self, tool_id, version: str = ...): ... - def get_tool_descriptor(self, tool_id, version: str = ..., tool_type: str = ...): ... - def get_tool_cwl(self, tool_id, version: str = ..., as_string: bool = ...): ... diff --git a/typeshed/galaxy/tool_util/locations/file.pyi b/typeshed/galaxy/tool_util/locations/file.pyi deleted file mode 100644 index 8268d650f..000000000 --- a/typeshed/galaxy/tool_util/locations/file.pyi +++ /dev/null @@ -1,9 +0,0 @@ -# Stubs for galaxy.tools.locations.file (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from ..locations import ToolLocationResolver as ToolLocationResolver - -class HttpToolResolver(ToolLocationResolver): - scheme = ... # type: str - def get_tool_source_path(self, uri_like): ... diff --git a/typeshed/galaxy/tool_util/locations/http.pyi b/typeshed/galaxy/tool_util/locations/http.pyi deleted file mode 100644 index 2687afcef..000000000 --- a/typeshed/galaxy/tool_util/locations/http.pyi +++ /dev/null @@ -1,13 +0,0 @@ -# Stubs for galaxy.tools.locations.http (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from ..locations import ToolLocationResolver - -class HttpToolResolver(ToolLocationResolver): - scheme = ... # type: str - def __init__(self, **kwds) -> None: ... - def get_tool_source_path(self, uri_like): ... - -class HttpsToolResolver(HttpToolResolver): - scheme = ... # type: str diff --git a/typeshed/galaxy/tool_util/parser/__init__.pyi b/typeshed/galaxy/tool_util/parser/__init__.pyi deleted file mode 100644 index 0b1bc8142..000000000 --- a/typeshed/galaxy/tool_util/parser/__init__.pyi +++ /dev/null @@ -1,7 +0,0 @@ -# Stubs for galaxy.tools.parser (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from .factory import get_input_source as get_input_source, get_tool_source as get_tool_source -from .interface import ToolSource as ToolSource -from .output_objects import ToolOutputCollectionPart as ToolOutputCollectionPart diff --git a/typeshed/galaxy/tool_util/parser/cwl.pyi b/typeshed/galaxy/tool_util/parser/cwl.pyi deleted file mode 100644 index 1b754a91b..000000000 --- a/typeshed/galaxy/tool_util/parser/cwl.pyi +++ /dev/null @@ -1,41 +0,0 @@ -# Stubs for galaxy.tools.parser.cwl (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from .interface import PageSource as PageSource -from .interface import PagesSource as PagesSource -from .interface import ToolSource as ToolSource -from .interface import ToolStdioExitCode as ToolStdioExitCode -from .output_actions import ToolOutputActionGroup as ToolOutputActionGroup -from .output_objects import ToolOutput as ToolOutput -from .yaml import YamlInputSource as YamlInputSource - -log = ... # type: Any - -class CwlToolSource(ToolSource): - def __init__(self, tool_file, strict_cwl_validation: bool = ...) -> None: ... - @property - def tool_proxy(self): ... - def parse_tool_type(self): ... - def parse_id(self): ... - def parse_name(self): ... - def parse_command(self): ... - def parse_environment_variables(self): ... - def parse_edam_operations(self): ... - def parse_edam_topics(self): ... - def parse_help(self): ... - def parse_sanitize(self): ... - def parse_strict_shell(self): ... - def parse_stdio(self): ... - def parse_interpreter(self): ... - def parse_version(self): ... - def parse_description(self): ... - def parse_input_pages(self): ... - def parse_outputs(self, tool): ... - def parse_requirements_and_containers(self): ... - def parse_profile(self): ... - -class CwlPageSource(PageSource): - def __init__(self, tool_proxy) -> None: ... - def parse_input_sources(self): ... diff --git a/typeshed/galaxy/tool_util/parser/factory.pyi b/typeshed/galaxy/tool_util/parser/factory.pyi deleted file mode 100644 index c6b63d099..000000000 --- a/typeshed/galaxy/tool_util/parser/factory.pyi +++ /dev/null @@ -1,9 +0,0 @@ -# Stubs for galaxy.tools.parser.factory (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from galaxy.tools.loader import load_tool as load_tool_xml - -def get_tool_source(config_file: Optional[Any] = ..., xml_tree: Optional[Any] = ..., enable_beta_formats: bool = ..., tool_location_fetcher: Optional[Any] = ...): ... -def get_input_source(content): ... diff --git a/typeshed/galaxy/tool_util/parser/interface.pyi b/typeshed/galaxy/tool_util/parser/interface.pyi deleted file mode 100644 index e219c74a3..000000000 --- a/typeshed/galaxy/tool_util/parser/interface.pyi +++ /dev/null @@ -1,96 +0,0 @@ -# Stubs for galaxy.tools.parser.interface (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -NOT_IMPLEMENTED_MESSAGE = ... # type: str - -class ToolSource: - default_is_multi_byte = ... # type: bool - def parse_id(self): ... - def parse_version(self): ... - def parse_tool_module(self): ... - def parse_action_module(self): ... - def parse_tool_type(self): ... - def parse_name(self): ... - def parse_description(self): ... - def parse_is_multi_byte(self): ... - def parse_display_interface(self, default): ... - def parse_require_login(self, default): ... - def parse_request_param_translation_elem(self): ... - def parse_command(self): ... - def parse_environment_variables(self): ... - def parse_interpreter(self): ... - def parse_redirect_url_params_elem(self): ... - def parse_version_command(self): ... - def parse_version_command_interpreter(self): ... - def parse_parallelism(self): ... - def parse_hidden(self): ... - def parse_sanitize(self): ... - def parse_refresh(self): ... - def parse_requirements_and_containers(self): ... - def parse_input_pages(self): ... - def parse_outputs(self, tool): ... - def parse_strict_shell(self): ... - def parse_stdio(self): ... - def parse_help(self): ... - def parse_profile(self): ... - def parse_tests_to_dict(self): ... - -class PagesSource: - page_sources = ... # type: Any - def __init__(self, page_sources) -> None: ... - @property - def inputs_defined(self): ... - -class PageSource: - def parse_display(self): ... - def parse_input_sources(self): ... - -class InputSource: - default_optional = ... # type: bool - def elem(self): ... - def get(self, key, value: Optional[Any] = ...): ... - def get_bool(self, key, default): ... - def parse_label(self): ... - def parse_help(self): ... - def parse_sanitizer_elem(self): ... - def parse_validator_elems(self): ... - def parse_optional(self, default: Optional[Any] = ...): ... - def parse_dynamic_options_elem(self): ... - def parse_static_options(self): ... - def parse_conversion_tuples(self): ... - def parse_nested_inputs_source(self): ... - def parse_test_input_source(self): ... - def parse_when_input_sources(self): ... - -class ToolStdioRegex: - match = ... # type: str - stdout_match = ... # type: bool - stderr_match = ... # type: bool - error_level = ... # type: str - desc = ... # type: str - def __init__(self) -> None: ... - -class ToolStdioExitCode: - range_start = ... # type: Any - range_end = ... # type: Any - error_level = ... # type: str - desc = ... # type: str - def __init__(self) -> None: ... - -class TestCollectionDef: - elements = ... # type: Any - collection_type = ... # type: Any - name = ... # type: Any - def __init__(self, elem, parse_param_elem) -> None: ... - def collect_inputs(self): ... - -class TestCollectionOutputDef: - name = ... # type: Any - collection_type = ... # type: Any - count = ... # type: Any - attrib = ... # type: Any - element_tests = ... # type: Any - def __init__(self, name, attrib, element_tests) -> None: ... diff --git a/typeshed/galaxy/tool_util/parser/output_actions.pyi b/typeshed/galaxy/tool_util/parser/output_actions.pyi deleted file mode 100644 index 5945acdcd..000000000 --- a/typeshed/galaxy/tool_util/parser/output_actions.pyi +++ /dev/null @@ -1,215 +0,0 @@ -# Stubs for galaxy.tools.parser.output_actions (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -log = ... # type: Any -COLLECTION_ATTRIBUTES = ... # type: Any - -class ToolOutputActionGroup: - tag = ... # type: str - parent = ... # type: Any - actions = ... # type: Any - def __init__(self, parent, config_elem) -> None: ... - def apply_action(self, output_dataset, other_values): ... - @property - def tool(self): ... - def __len__(self): ... - -class ToolOutputActionConditionalWhen(ToolOutputActionGroup): - tag = ... # type: str - @classmethod - def from_elem(cls, parent, when_elem): ... - value = ... # type: Any - def __init__(self, parent, config_elem, value) -> None: ... - def is_case(self, output_dataset, other_values): ... - def get_ref(self, output_dataset, other_values): ... - def apply_action(self, output_dataset, other_values): ... - -class ValueToolOutputActionConditionalWhen(ToolOutputActionConditionalWhen): - tag = ... # type: str - def is_case(self, output_dataset, other_values): ... - -class DatatypeIsInstanceToolOutputActionConditionalWhen(ToolOutputActionConditionalWhen): - tag = ... # type: str - value = ... # type: Any - def __init__(self, parent, config_elem, value) -> None: ... - def is_case(self, output_dataset, other_values): ... - -class ToolOutputActionConditional: - tag = ... # type: str - parent = ... # type: Any - name = ... # type: Any - cases = ... # type: Any - def __init__(self, parent, config_elem) -> None: ... - def apply_action(self, output_dataset, other_values): ... - @property - def tool(self): ... - -class ToolOutputAction: - tag = ... # type: str - @classmethod - def from_elem(cls, parent, elem): ... - parent = ... # type: Any - default = ... # type: Any - option = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def apply_action(self, output_dataset, other_values): ... - @property - def tool(self): ... - -class ToolOutputActionOption: - tag = ... # type: str - @classmethod - def from_elem(cls, parent, elem): ... - parent = ... # type: Any - filters = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def get_value(self, other_values): ... - @property - def tool(self): ... - -class NullToolOutputActionOption(ToolOutputActionOption): - tag = ... # type: str - def get_value(self, other_values): ... - -class FromFileToolOutputActionOption(ToolOutputActionOption): - tag = ... # type: str - name = ... # type: Any - column = ... # type: Any - offset = ... # type: Any - separator = ... # type: Any - options = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def get_value(self, other_values): ... - -class FromParamToolOutputActionOption(ToolOutputActionOption): - tag = ... # type: str - name = ... # type: Any - column = ... # type: Any - offset = ... # type: Any - param_attribute = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def get_value(self, other_values): ... - -class FromDataTableOutputActionOption(ToolOutputActionOption): - tag = ... # type: str - name = ... # type: Any - missing_tool_data_table_name = ... # type: Any - options = ... # type: Any - column = ... # type: Any - offset = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def get_value(self, other_values): ... - -class MetadataToolOutputAction(ToolOutputAction): - tag = ... # type: str - name = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def apply_action(self, output_dataset, other_values): ... - -class FormatToolOutputAction(ToolOutputAction): - tag = ... # type: str - default = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def apply_action(self, output_dataset, other_values): ... - -class ToolOutputActionOptionFilter: - tag = ... # type: str - @classmethod - def from_elem(cls, parent, elem): ... - parent = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def filter_options(self, options, other_values): ... - @property - def tool(self): ... - -class ParamValueToolOutputActionOptionFilter(ToolOutputActionOptionFilter): - tag = ... # type: str - ref = ... # type: Any - value = ... # type: Any - column = ... # type: Any - keep = ... # type: Any - compare = ... # type: Any - cast = ... # type: Any - param_attribute = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def filter_options(self, options, other_values): ... - -class InsertColumnToolOutputActionOptionFilter(ToolOutputActionOptionFilter): - tag = ... # type: str - ref = ... # type: Any - value = ... # type: Any - column = ... # type: Any - iterate = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def filter_options(self, options, other_values): ... - -class MultipleSplitterFilter(ToolOutputActionOptionFilter): - tag = ... # type: str - column = ... # type: Any - separator = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def filter_options(self, options, other_values): ... - -class ColumnStripFilter(ToolOutputActionOptionFilter): - tag = ... # type: str - column = ... # type: Any - strip = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def filter_options(self, options, other_values): ... - -class ColumnReplaceFilter(ToolOutputActionOptionFilter): - tag = ... # type: str - old_column = ... # type: Any - old_value = ... # type: Any - new_value = ... # type: Any - new_column = ... # type: Any - column = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def filter_options(self, options, other_values): ... - -class MetadataValueFilter(ToolOutputActionOptionFilter): - tag = ... # type: str - ref = ... # type: Any - name = ... # type: Any - column = ... # type: Any - keep = ... # type: Any - compare = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def filter_options(self, options, other_values): ... - -class BooleanFilter(ToolOutputActionOptionFilter): - tag = ... # type: str - column = ... # type: Any - keep = ... # type: Any - cast = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def filter_options(self, options, other_values): ... - -class StringFunctionFilter(ToolOutputActionOptionFilter): - tag = ... # type: str - column = ... # type: Any - function = ... # type: Any - def __init__(self, parent, elem) -> None: ... - def filter_options(self, options, other_values): ... - -action_types = ... # type: Any -option_types = ... # type: Any -filter_types = ... # type: Any - -def parse_cast_attribute(cast): ... -def parse_compare_type(compare): ... -def compare_eq(value1, value2): ... -def compare_neq(value1, value2): ... -def compare_gt(value1, value2): ... -def compare_gte(value1, value2): ... -def compare_lt(value1, value2): ... -def compare_lte(value1, value2): ... -def compare_in(value1, value2): ... -def compare_startswith(value1, value2): ... -def compare_endswith(value1, value2): ... -def compare_re_search(value1, value2): ... - -compare_types = ... # type: Any diff --git a/typeshed/galaxy/tool_util/parser/output_collection_def.pyi b/typeshed/galaxy/tool_util/parser/output_collection_def.pyi deleted file mode 100644 index 2cc4b1bd7..000000000 --- a/typeshed/galaxy/tool_util/parser/output_collection_def.pyi +++ /dev/null @@ -1,29 +0,0 @@ -# Stubs for galaxy.tools.parser.output_collection_def (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -DEFAULT_EXTRA_FILENAME_PATTERN = ... # type: str -DEFAULT_SORT_BY = ... # type: str -DEFAULT_SORT_COMP = ... # type: str -NAMED_PATTERNS = ... # type: Any -INPUT_DBKEY_TOKEN = ... # type: str -LEGACY_DEFAULT_DBKEY = ... # type: Any - -def dataset_collector_descriptions_from_elem(elem, legacy: bool = ...): ... -def dataset_collector_descriptions_from_list(discover_datasets_dicts): ... - -class DatasetCollectionDescription: - pattern = ... # type: Any - default_dbkey = ... # type: Any - default_ext = ... # type: Any - default_visible = ... # type: Any - directory = ... # type: Any - assign_primary_output = ... # type: Any - sort_reverse = ... # type: bool - sort_key = ... # type: Any - sort_comp = ... # type: Any - def __init__(self, **kwargs) -> None: ... - -DEFAULT_DATASET_COLLECTOR_DESCRIPTION = ... # type: Any diff --git a/typeshed/galaxy/tool_util/parser/output_objects.pyi b/typeshed/galaxy/tool_util/parser/output_objects.pyi deleted file mode 100644 index 68f824eaf..000000000 --- a/typeshed/galaxy/tool_util/parser/output_objects.pyi +++ /dev/null @@ -1,68 +0,0 @@ -# Stubs for galaxy.tools.parser.output_objects (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from galaxy.util.dictifiable import Dictifiable - -class ToolOutputBase(Dictifiable): - name = ... # type: Any - label = ... # type: Any - filters = ... # type: Any - hidden = ... # type: Any - collection = ... # type: bool - def __init__(self, name, label: Optional[Any] = ..., filters: Optional[Any] = ..., hidden: bool = ...) -> None: ... - -class ToolOutput(ToolOutputBase): - dict_collection_visible_keys = ... # type: Any - format = ... # type: Any - format_source = ... # type: Any - metadata_source = ... # type: Any - parent = ... # type: Any - actions = ... # type: Any - change_format = ... # type: Any - implicit = ... # type: Any - from_work_dir = ... # type: Any - def __init__(self, name, format: Optional[Any] = ..., format_source: Optional[Any] = ..., metadata_source: Optional[Any] = ..., parent: Optional[Any] = ..., label: Optional[Any] = ..., filters: Optional[Any] = ..., actions: Optional[Any] = ..., hidden: bool = ..., implicit: bool = ...) -> None: ... - def __len__(self): ... - def __getitem__(self, index): ... - def __iter__(self): ... - def to_dict(self, view: str = ..., value_mapper: Optional[Any] = ..., app: Optional[Any] = ...): ... - -class ToolOutputCollection(ToolOutputBase): - collection = ... # type: bool - default_format = ... # type: Any - structure = ... # type: Any - outputs = ... # type: Any - inherit_format = ... # type: Any - inherit_metadata = ... # type: Any - metadata_source = ... # type: Any - format_source = ... # type: Any - change_format = ... # type: Any - def __init__(self, name, structure, label: Optional[Any] = ..., filters: Optional[Any] = ..., hidden: bool = ..., default_format: str = ..., default_format_source: Optional[Any] = ..., default_metadata_source: Optional[Any] = ..., inherit_format: bool = ..., inherit_metadata: bool = ...) -> None: ... - def known_outputs(self, inputs, type_registry): ... - @property - def dynamic_structure(self): ... - @property - def dataset_collector_descriptions(self): ... - -class ToolOutputCollectionStructure: - collection_type = ... # type: Any - collection_type_source = ... # type: Any - structured_like = ... # type: Any - dataset_collector_descriptions = ... # type: Any - dynamic = ... # type: Any - def __init__(self, collection_type, collection_type_source, structured_like, dataset_collector_descriptions) -> None: ... - -class ToolOutputCollectionPart: - output_collection_def = ... # type: Any - element_identifier = ... # type: Any - output_def = ... # type: Any - parent_ids = ... # type: Any - def __init__(self, output_collection_def, element_identifier, output_def, parent_ids: Any = ...) -> None: ... - @property - def effective_output_name(self): ... - @staticmethod - def is_named_collection_part_name(name): ... - @staticmethod - def split_output_name(name): ... diff --git a/typeshed/galaxy/tool_util/parser/util.pyi b/typeshed/galaxy/tool_util/parser/util.pyi deleted file mode 100644 index 97b33962c..000000000 --- a/typeshed/galaxy/tool_util/parser/util.pyi +++ /dev/null @@ -1,9 +0,0 @@ -# Stubs for galaxy.tools.parser.util (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from .interface import ToolStdioExitCode as ToolStdioExitCode -from .interface import ToolStdioRegex as ToolStdioRegex - -def error_on_exit_code(): ... -def aggressive_error_checks(): ... diff --git a/typeshed/galaxy/tool_util/parser/xml.pyi b/typeshed/galaxy/tool_util/parser/xml.pyi deleted file mode 100644 index ffdd7e92f..000000000 --- a/typeshed/galaxy/tool_util/parser/xml.pyi +++ /dev/null @@ -1,89 +0,0 @@ -# Stubs for galaxy.tools.parser.xml (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from .interface import InputSource as InputSource, PageSource as PageSource, PagesSource as PagesSource, TestCollectionDef as TestCollectionDef, TestCollectionOutputDef as TestCollectionOutputDef, ToolSource as ToolSource, ToolStdioExitCode as ToolStdioExitCode, ToolStdioRegex as ToolStdioRegex -from .output_actions import ToolOutputActionGroup as ToolOutputActionGroup -from .output_collection_def import dataset_collector_descriptions_from_elem as dataset_collector_descriptions_from_elem -from .output_objects import ToolOutput as ToolOutput, ToolOutputCollection as ToolOutputCollection, ToolOutputCollectionStructure as ToolOutputCollectionStructure -from .util import aggressive_error_checks as aggressive_error_checks, error_on_exit_code as error_on_exit_code - -log = ... # type: Any - -class XmlToolSource(ToolSource): - xml_tree = ... # type: Any - root = ... # type: Any - legacy_defaults = ... # type: Any - def __init__(self, xml_tree, source_path: Optional[Any] = ...) -> None: ... - def parse_version(self): ... - def parse_id(self): ... - def parse_tool_module(self): ... - def parse_action_module(self): ... - def parse_tool_type(self): ... - def parse_name(self): ... - def parse_edam_operations(self): ... - def parse_edam_topics(self): ... - def parse_description(self): ... - def parse_is_multi_byte(self): ... - def parse_display_interface(self, default): ... - def parse_require_login(self, default): ... - def parse_request_param_translation_elem(self): ... - def parse_command(self): ... - def parse_environment_variables(self): ... - def parse_interpreter(self): ... - def parse_version_command(self): ... - def parse_version_command_interpreter(self): ... - def parse_parallelism(self): ... - def parse_hidden(self): ... - def parse_redirect_url_params_elem(self): ... - def parse_sanitize(self): ... - def parse_refresh(self): ... - def parse_requirements_and_containers(self): ... - def parse_input_pages(self): ... - def parse_outputs(self, tool): ... - def parse_stdio(self): ... - def parse_strict_shell(self): ... - def parse_help(self): ... - def parse_tests_to_dict(self): ... - def parse_profile(self): ... - -class StdioParser: - stdio_exit_codes = ... # type: Any - stdio_regexes = ... # type: Any - def __init__(self, root) -> None: ... - def parse_stdio_exit_codes(self, stdio_elem): ... - def parse_stdio_regexes(self, stdio_elem): ... - def parse_error_level(self, err_level): ... - -class XmlPagesSource(PagesSource): - input_elem = ... # type: Any - def __init__(self, root) -> None: ... - @property - def inputs_defined(self): ... - -class XmlPageSource(PageSource): - parent_elem = ... # type: Any - def __init__(self, parent_elem) -> None: ... - def parse_display(self): ... - def parse_input_sources(self): ... - -class XmlInputSource(InputSource): - input_elem = ... # type: Any - input_type = ... # type: Any - def __init__(self, input_elem) -> None: ... - def parse_input_type(self): ... - def elem(self): ... - def get(self, key, value: Optional[Any] = ...): ... - def get_bool(self, key, default): ... - def parse_label(self): ... - def parse_help(self): ... - def parse_sanitizer_elem(self): ... - def parse_validator_elems(self): ... - def parse_dynamic_options_elem(self): ... - def parse_static_options(self): ... - def parse_optional(self, default: Optional[Any] = ...): ... - def parse_conversion_tuples(self): ... - def parse_nested_inputs_source(self): ... - def parse_test_input_source(self): ... - def parse_when_input_sources(self): ... diff --git a/typeshed/galaxy/tool_util/parser/yaml.pyi b/typeshed/galaxy/tool_util/parser/yaml.pyi deleted file mode 100644 index ccf2afdd7..000000000 --- a/typeshed/galaxy/tool_util/parser/yaml.pyi +++ /dev/null @@ -1,56 +0,0 @@ -# Stubs for galaxy.tools.parser.yaml (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from .interface import InputSource as InputSource -from .interface import PageSource as PageSource -from .interface import PagesSource as PagesSource -from .interface import ToolSource as ToolSource -from .output_actions import ToolOutputActionGroup as ToolOutputActionGroup -from .output_collection_def import dataset_collector_descriptions_from_list as dataset_collector_descriptions_from_list -from .output_objects import ToolOutput as ToolOutput, ToolOutputCollection as ToolOutputCollection, ToolOutputCollectionStructure as ToolOutputCollectionStructure -from .util import error_on_exit_code as error_on_exit_code - -class YamlToolSource(ToolSource): - root_dict = ... # type: Any - def __init__(self, root_dict, source_path: Optional[Any] = ...) -> None: ... - def parse_id(self): ... - def parse_version(self): ... - def parse_name(self): ... - def parse_description(self): ... - def parse_edam_operations(self): ... - def parse_edam_topics(self): ... - def parse_is_multi_byte(self): ... - def parse_sanitize(self): ... - def parse_display_interface(self, default): ... - def parse_require_login(self, default): ... - def parse_command(self): ... - def parse_environment_variables(self): ... - def parse_interpreter(self): ... - def parse_version_command(self): ... - def parse_version_command_interpreter(self): ... - def parse_requirements_and_containers(self): ... - def parse_input_pages(self): ... - def parse_strict_shell(self): ... - def parse_stdio(self): ... - def parse_help(self): ... - def parse_outputs(self, tool): ... - def parse_tests_to_dict(self): ... - def parse_profile(self): ... - -class YamlPageSource(PageSource): - inputs_list = ... # type: Any - def __init__(self, inputs_list) -> None: ... - def parse_input_sources(self): ... - -class YamlInputSource(InputSource): - input_dict = ... # type: Any - def __init__(self, input_dict) -> None: ... - def get(self, key, default: Optional[Any] = ...): ... - def get_bool(self, key, default): ... - def parse_input_type(self): ... - def parse_nested_inputs_source(self): ... - def parse_test_input_source(self): ... - def parse_when_input_sources(self): ... - def parse_static_options(self): ... diff --git a/typeshed/galaxy/tool_util/verify/__init__.pyi b/typeshed/galaxy/tool_util/verify/__init__.pyi deleted file mode 100644 index 624255387..000000000 --- a/typeshed/galaxy/tool_util/verify/__init__.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# Stubs for galaxy.tools.verify (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from .asserts import verify_assertions as verify_assertions -from .test_data import TestDataResolver as TestDataResolver - -log = ... # type: Any -DEFAULT_TEST_DATA_RESOLVER = ... # type: Any - -def verify(item_label, output_content, attributes, filename: Optional[Any] = ..., get_filename: Optional[Any] = ..., keep_outputs_dir: Optional[Any] = ..., verify_extra_files: Optional[Any] = ...): ... -def make_temp_fname(fname: Optional[Any] = ...): ... -def check_command(command, description): ... -def files_diff(file1, file2, attributes: Optional[Any] = ...): ... -def files_re_match(file1, file2, attributes: Optional[Any] = ...): ... -def files_re_match_multiline(file1, file2, attributes: Optional[Any] = ...): ... -def files_contains(file1, file2, attributes: Optional[Any] = ...): ... diff --git a/typeshed/galaxy/tool_util/verify/asserts/__init__.pyi b/typeshed/galaxy/tool_util/verify/asserts/__init__.pyi deleted file mode 100644 index 3ba17d3da..000000000 --- a/typeshed/galaxy/tool_util/verify/asserts/__init__.pyi +++ /dev/null @@ -1,14 +0,0 @@ -# Stubs for galaxy.tools.verify.asserts (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -log = ... # type: Any -assertion_module_names = ... # type: Any -assertion_modules = ... # type: Any -full_assertion_module_name = ... # type: Any -assertion_module = ... # type: Any - -def verify_assertions(data, assertion_description_list): ... -def verify_assertion(data, assertion_description): ... diff --git a/typeshed/galaxy/tool_util/verify/asserts/tabular.pyi b/typeshed/galaxy/tool_util/verify/asserts/tabular.pyi deleted file mode 100644 index 4515eab5f..000000000 --- a/typeshed/galaxy/tool_util/verify/asserts/tabular.pyi +++ /dev/null @@ -1,6 +0,0 @@ -# Stubs for galaxy.tools.verify.asserts.tabular (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def get_first_line(output): ... -def assert_has_n_columns(output, n, sep: str = ...): ... diff --git a/typeshed/galaxy/tool_util/verify/asserts/text.pyi b/typeshed/galaxy/tool_util/verify/asserts/text.pyi deleted file mode 100644 index 549d53481..000000000 --- a/typeshed/galaxy/tool_util/verify/asserts/text.pyi +++ /dev/null @@ -1,9 +0,0 @@ -# Stubs for galaxy.tools.verify.asserts.text (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def assert_has_text(output, text): ... -def assert_not_has_text(output, text): ... -def assert_has_line(output, line): ... -def assert_has_text_matching(output, expression): ... -def assert_has_line_matching(output, expression): ... diff --git a/typeshed/galaxy/tool_util/verify/asserts/xml.pyi b/typeshed/galaxy/tool_util/verify/asserts/xml.pyi deleted file mode 100644 index 57af9c728..000000000 --- a/typeshed/galaxy/tool_util/verify/asserts/xml.pyi +++ /dev/null @@ -1,15 +0,0 @@ -# Stubs for galaxy.tools.verify.asserts.xml (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def to_xml(output): ... -def xml_find_text(output, path): ... -def xml_find(output, path): ... -def assert_is_valid_xml(output): ... -def assert_has_element_with_path(output, path): ... -def assert_has_n_elements_with_path(output, path, n): ... -def assert_element_text_matches(output, path, expression): ... -def assert_element_text_is(output, path, text): ... -def assert_attribute_matches(output, path, attribute, expression): ... -def assert_attribute_is(output, path, attribute, text): ... -def assert_element_text(output, path, verify_assertions_function, children): ... diff --git a/typeshed/galaxy/tool_util/verify/test_data.pyi b/typeshed/galaxy/tool_util/verify/test_data.pyi deleted file mode 100644 index 1fe6f0d38..000000000 --- a/typeshed/galaxy/tool_util/verify/test_data.pyi +++ /dev/null @@ -1,31 +0,0 @@ -# Stubs for galaxy.tools.verify.test_data (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -UPDATE_TEMPLATE = ... # type: Any -UPDATE_FAILED_TEMPLATE = ... # type: Any -LIST_SEP = ... # type: Any - -class TestDataResolver: - resolvers = ... # type: Any - def __init__(self, env_var: str = ..., environ: Any = ...) -> None: ... - def get_filename(self, name): ... - -def build_resolver(uri, environ): ... - -class FileDataResolver: - file_dir = ... # type: Any - def __init__(self, file_dir) -> None: ... - def exists(self, filename): ... - def path(self, filename): ... - -class GitDataResolver(FileDataResolver): - repository = ... # type: Any - updated = ... # type: bool - fetch_data = ... # type: Any - def __init__(self, repository, environ) -> None: ... - def exists(self, filename): ... - def update_repository(self): ... - def execute(self, cmd): ... diff --git a/typeshed/galaxy/util/__init__.pyi b/typeshed/galaxy/util/__init__.pyi deleted file mode 100644 index d0e0292f3..000000000 --- a/typeshed/galaxy/util/__init__.pyi +++ /dev/null @@ -1,130 +0,0 @@ -# Stubs for galaxy.util (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -import collections -from .inflection import English as English, Inflector as Inflector - -grp = ... # type: Any -docutils_core = ... # type: Any -docutils_html4css1 = ... # type: Any -inflector = ... # type: Any -log = ... # type: Any -CHUNK_SIZE = ... # type: int -DATABASE_MAX_STRING_SIZE = ... # type: int -DATABASE_MAX_STRING_SIZE_PRETTY = ... # type: str -gzip_magic = ... # type: str -bz2_magic = ... # type: str -DEFAULT_ENCODING = ... # type: Any -NULL_CHAR = ... # type: str -BINARY_CHARS = ... # type: Any -FILENAME_VALID_CHARS = ... # type: str - -def remove_protocol_from_url(url): ... -def is_binary(value, binary_chars: Optional[Any] = ...): ... -def is_uuid(value): ... -def directory_hash_id(id): ... -def get_charset_from_http_headers(headers, default: Optional[Any] = ...): ... -def synchronized(func): ... -def file_iter(fname, sep: Optional[Any] = ...): ... -def file_reader(fp, chunk_size: Any = ...): ... -def unique_id(KEY_SIZE: int = ...): ... -def parse_xml(fname): ... -def parse_xml_string(xml_string): ... -def xml_to_string(elem, pretty: bool = ...): ... -def xml_element_compare(elem1, elem2): ... -def xml_element_list_compare(elem_list1, elem_list2): ... -def xml_element_to_dict(elem): ... -def pretty_print_xml(elem, level: int = ...): ... -def get_file_size(value, default: Optional[Any] = ...): ... -def shrink_stream_by_size(value, size, join_by: str = ..., left_larger: bool = ..., beginning_on_size_error: bool = ..., end_on_size_error: bool = ...): ... -def shrink_string_by_size(value, size, join_by: str = ..., left_larger: bool = ..., beginning_on_size_error: bool = ..., end_on_size_error: bool = ...): ... -def pretty_print_time_interval(time: bool = ..., precise: bool = ...): ... -def pretty_print_json(json_data, is_json_string: bool = ...): ... - -valid_chars = ... # type: Any -mapped_chars = ... # type: Any - -def restore_text(text, character_map: Any = ...): ... -def sanitize_text(text, valid_characters: Any = ..., character_map: Any = ..., invalid_character: str = ...): ... -def sanitize_lists_to_string(values, valid_characters: Any = ..., character_map: Any = ..., invalid_character: str = ...): ... -def sanitize_param(value, valid_characters: Any = ..., character_map: Any = ..., invalid_character: str = ...): ... - -valid_filename_chars = ... # type: Any -invalid_filenames = ... # type: Any - -def sanitize_for_filename(text, default: Optional[Any] = ...): ... -def mask_password_from_url(url): ... -def ready_name_for_url(raw_name): ... -def which(file): ... -def safe_makedirs(path): ... -def in_directory(file, directory, local_path_module: Any = ...): ... -def merge_sorted_iterables(operator, *iterables): ... - -class Params: - NEVER_SANITIZE = ... # type: Any - def __init__(self, params, sanitize: bool = ...) -> None: ... - def flatten(self): ... - def __getattr__(self, name): ... - def get(self, key, default): ... - def __len__(self): ... - def __iter__(self): ... - def update(self, values): ... - -def rst_to_html(s): ... -def xml_text(root, name: Optional[Any] = ...): ... - -truthy = ... # type: Any -falsy = ... # type: Any - -def asbool(obj): ... -def string_as_bool(string): ... -def string_as_bool_or_none(string): ... -def listify(item, do_strip: bool = ...): ... -def commaify(amount): ... -def roundify(amount, sfs: int = ...): ... -def unicodify(value, encoding: Any = ..., error: str = ..., default: Optional[Any] = ...): ... -def smart_str(s, encoding: Any = ..., strings_only: bool = ..., errors: str = ...): ... -def object_to_string(obj): ... -def string_to_object(s): ... - -class ParamsWithSpecs(collections.defaultdict): - specs = ... # type: Any - params = ... # type: Any - def __init__(self, specs: Optional[Any] = ..., params: Optional[Any] = ...) -> None: ... - def __missing__(self, name): ... - def __getattr__(self, name): ... - -def compare_urls(url1, url2, compare_scheme: bool = ..., compare_hostname: bool = ..., compare_path: bool = ...): ... -def read_dbnames(filename): ... -def read_build_sites(filename, check_builds: bool = ...): ... -def relativize_symlinks(path, start: Optional[Any] = ..., followlinks: bool = ...): ... -def stringify_dictionary_keys(in_dict): ... -def recursively_stringify_dictionary_keys(d): ... -def mkstemp_ln(src, prefix: str = ...): ... -def umask_fix_perms(path, umask, unmasked_perms, gid: Optional[Any] = ...): ... -def docstring_trim(docstring): ... -def nice_size(size): ... -def size_to_bytes(size): ... -def send_mail(frm, to, subject, body, config, html: Optional[Any] = ...): ... -def force_symlink(source, link_name): ... -def move_merge(source, target): ... -def safe_str_cmp(a, b): ... - -galaxy_root_path = ... # type: Any - -def galaxy_directory(): ... -def config_directories_from_setting(directories_setting, galaxy_root: Any = ...): ... -def parse_int(value, min_val: Optional[Any] = ..., max_val: Optional[Any] = ..., default: Optional[Any] = ..., allow_none: bool = ...): ... -def parse_non_hex_float(s): ... -def build_url(base_url, port: int = ..., scheme: str = ..., pathspec: Optional[Any] = ..., params: Optional[Any] = ..., doseq: bool = ...): ... -def url_get(base_url, password_mgr: Optional[Any] = ..., pathspec: Optional[Any] = ..., params: Optional[Any] = ...): ... -def download_to_file(url, dest_file_path, timeout: int = ..., chunk_size: Any = ...): ... -def safe_relpath(path): ... - -class ExecutionTimer: - begin = ... # type: Any - def __init__(self) -> None: ... - @property - def elapsed(self): ... diff --git a/typeshed/galaxy/util/aliaspickler.pyi b/typeshed/galaxy/util/aliaspickler.pyi deleted file mode 100644 index 95c60a9b1..000000000 --- a/typeshed/galaxy/util/aliaspickler.pyi +++ /dev/null @@ -1,20 +0,0 @@ -# Stubs for galaxy.util.aliaspickler (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -import pickle -from six.moves import cStringIO as StringIO - -class AliasUnpickler(pickle.Unpickler): - aliases = ... # type: Any - def __init__(self, aliases, *args, **kw) -> None: ... - def find_class(self, module, name): ... - -class AliasPickleModule: - aliases = ... # type: Any - def __init__(self, aliases) -> None: ... - def dump(self, obj, fileobj, protocol: int = ...): ... - def dumps(self, obj, protocol: int = ...): ... - def load(self, fileobj): ... - def loads(self, string): ... diff --git a/typeshed/galaxy/util/bunch.pyi b/typeshed/galaxy/util/bunch.pyi deleted file mode 100644 index 87dc09bd0..000000000 --- a/typeshed/galaxy/util/bunch.pyi +++ /dev/null @@ -1,17 +0,0 @@ -# Stubs for galaxy.util.bunch (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -class Bunch: - def __init__(self, **kwds) -> None: ... - def dict(self): ... - def get(self, key, default: Optional[Any] = ...): ... - def __iter__(self): ... - def items(self): ... - def keys(self): ... - def values(self): ... - def __nonzero__(self): ... - def __setitem__(self, k, v): ... - def __contains__(self, item): ... diff --git a/typeshed/galaxy/util/checkers.pyi b/typeshed/galaxy/util/checkers.pyi deleted file mode 100644 index cdcb3efb6..000000000 --- a/typeshed/galaxy/util/checkers.pyi +++ /dev/null @@ -1,14 +0,0 @@ -# Stubs for galaxy.util.checkers (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def check_html(file_path, chunk: Optional[Any] = ...): ... -def check_binary(name, file_path: bool = ...): ... -def check_gzip(file_path): ... -def check_bz2(file_path): ... -def check_zip(file_path): ... -def is_bz2(file_path): ... -def is_gzip(file_path): ... -def check_image(file_path): ... diff --git a/typeshed/galaxy/util/compression_utils.pyi b/typeshed/galaxy/util/compression_utils.pyi deleted file mode 100644 index 0c6ca3a79..000000000 --- a/typeshed/galaxy/util/compression_utils.pyi +++ /dev/null @@ -1,7 +0,0 @@ -# Stubs for galaxy.util.compression_utils (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from .checkers import is_bz2 as is_bz2, is_gzip as is_gzip - -def get_fileobj(filename, mode: str = ..., gzip_only: bool = ..., bz2_only: bool = ..., zip_only: bool = ...): ... diff --git a/typeshed/galaxy/util/dictifiable.pyi b/typeshed/galaxy/util/dictifiable.pyi deleted file mode 100644 index babdeb4d3..000000000 --- a/typeshed/galaxy/util/dictifiable.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for galaxy.util.dictifiable (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -class Dictifiable: - def to_dict(self, view: str = ..., value_mapper: Optional[Any] = ...): ... diff --git a/typeshed/galaxy/util/expressions.pyi b/typeshed/galaxy/util/expressions.pyi deleted file mode 100644 index f1eca5ee8..000000000 --- a/typeshed/galaxy/util/expressions.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# Stubs for galaxy.util.expressions (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from collections import MutableMapping - -class ExpressionContext(MutableMapping): - dict = ... # type: Any - parent = ... # type: Any - def __init__(self, dict, parent: Optional[Any] = ...) -> None: ... - def __delitem__(self, key): ... - def __iter__(self): ... - def __len__(self): ... - def __getitem__(self, key): ... - def __setitem__(self, key, value): ... - def __contains__(self, key): ... - def __nonzero__(self): ... diff --git a/typeshed/galaxy/util/filelock.pyi b/typeshed/galaxy/util/filelock.pyi deleted file mode 100644 index f74dd9a4c..000000000 --- a/typeshed/galaxy/util/filelock.pyi +++ /dev/null @@ -1,21 +0,0 @@ -# Stubs for galaxy.util.filelock (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -class FileLockException(Exception): ... - -class FileLock: - is_locked = ... # type: bool - lockfile = ... # type: Any - file_name = ... # type: Any - timeout = ... # type: Any - delay = ... # type: Any - def __init__(self, file_name, timeout: int = ..., delay: float = ...) -> None: ... - fd = ... # type: Any - def acquire(self): ... - def release(self): ... - def __enter__(self): ... - def __exit__(self, type, value, traceback): ... - def __del__(self): ... diff --git a/typeshed/galaxy/util/hash_util.pyi b/typeshed/galaxy/util/hash_util.pyi deleted file mode 100644 index 1a81a16aa..000000000 --- a/typeshed/galaxy/util/hash_util.pyi +++ /dev/null @@ -1,14 +0,0 @@ -# Stubs for galaxy.util.hash_util (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -import hashlib as hashlib - -sha1 = ... # type: Any -sha = ... # type: Any -md5 = ... # type: Any - -def new_secure_hash(text_type: Optional[Any] = ...): ... -def hmac_new(key, value): ... -def is_hashable(value): ... diff --git a/typeshed/galaxy/util/heartbeat.pyi b/typeshed/galaxy/util/heartbeat.pyi deleted file mode 100644 index e7152ae9a..000000000 --- a/typeshed/galaxy/util/heartbeat.pyi +++ /dev/null @@ -1,30 +0,0 @@ -# Stubs for galaxy.util.heartbeat (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -import threading - -def get_current_thread_object_dict(): ... - -class Heartbeat(threading.Thread): - config = ... # type: Any - should_stop = ... # type: bool - period = ... # type: Any - fname = ... # type: Any - file = ... # type: Any - fname_nonsleeping = ... # type: Any - file_nonsleeping = ... # type: Any - pid = ... # type: Any - nonsleeping_heartbeats = ... # type: Any - wait_event = ... # type: Any - def __init__(self, config, name: str = ..., period: int = ..., fname: str = ...) -> None: ... - def run(self): ... - def open_logs(self): ... - def close_logs(self): ... - def dump(self): ... - def shutdown(self): ... - def thread_is_sleeping(self, last_stack_frame): ... - def get_interesting_stack_frame(self, stack_frames): ... - def print_nonsleeping(self, threads_object_dict): ... - def dump_signal_handler(self, signum, frame): ... diff --git a/typeshed/galaxy/util/image_util.pyi b/typeshed/galaxy/util/image_util.pyi deleted file mode 100644 index ce04019bf..000000000 --- a/typeshed/galaxy/util/image_util.pyi +++ /dev/null @@ -1,13 +0,0 @@ -# Stubs for galaxy.util.image_util (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from PIL import Image as PIL - -PIL = ... # type: Any -log = ... # type: Any - -def image_type(filename): ... -def check_image_type(filename, types): ... -def get_image_ext(file_path): ... diff --git a/typeshed/galaxy/util/inflection.pyi b/typeshed/galaxy/util/inflection.pyi deleted file mode 100644 index 92f01cb91..000000000 --- a/typeshed/galaxy/util/inflection.pyi +++ /dev/null @@ -1,46 +0,0 @@ -# Stubs for galaxy.util.inflection (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -class Base: - def cond_plural(self, number_of_records, word): ... - def titleize(self, word, uppercase: str = ...): ... - def camelize(self, word): ... - def underscore(self, word): ... - def humanize(self, word, uppercase: str = ...): ... - def variablize(self, word): ... - def tableize(self, class_name): ... - def classify(self, table_name): ... - def ordinalize(self, number): ... - def unaccent(self, text): ... - def string_replace(self, word, find, replace): ... - def urlize(self, text): ... - def demodulize(self, module_name): ... - def modulize(self, module_description): ... - def foreignKey(self, class_name, separate_class_name_and_id_with_underscore: int = ...): ... - -class English(Base): - def pluralize(self, word): ... - def singularize(self, word): ... - -class Inflector: - Inflector = ... # type: Any - def __init__(self, Inflector: Any = ...) -> None: ... - def pluralize(self, word): ... - def singularize(self, word): ... - def cond_plural(self, number_of_records, word): ... - def titleize(self, word, uppercase: str = ...): ... - def camelize(self, word): ... - def underscore(self, word): ... - def humanize(self, word, uppercase: str = ...): ... - def variablize(self, word): ... - def tableize(self, class_name): ... - def classify(self, table_name): ... - def ordinalize(self, number): ... - def unaccent(self, text): ... - def urlize(self, text): ... - def demodulize(self, module_name): ... - def modulize(self, module_description): ... - def foreignKey(self, class_name, separate_class_name_and_id_with_underscore: int = ...): ... diff --git a/typeshed/galaxy/util/json.pyi b/typeshed/galaxy/util/json.pyi deleted file mode 100644 index d124bd660..000000000 --- a/typeshed/galaxy/util/json.pyi +++ /dev/null @@ -1,12 +0,0 @@ -# Stubs for galaxy.util.json (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def json_fix(val): ... -def safe_dumps(*args, **kwargs): ... -def validate_jsonrpc_request(request, regular_methods, notification_methods): ... -def validate_jsonrpc_response(response, id: Optional[Any] = ...): ... -def jsonrpc_request(method, params: Optional[Any] = ..., id: Optional[Any] = ..., jsonrpc: str = ...): ... -def jsonrpc_response(request: Optional[Any] = ..., id: Optional[Any] = ..., result: Optional[Any] = ..., error: Optional[Any] = ..., jsonrpc: str = ...): ... diff --git a/typeshed/galaxy/util/lazy_process.pyi b/typeshed/galaxy/util/lazy_process.pyi deleted file mode 100644 index 045e42f44..000000000 --- a/typeshed/galaxy/util/lazy_process.pyi +++ /dev/null @@ -1,22 +0,0 @@ -# Stubs for galaxy.util.lazy_process (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -class LazyProcess: - command_and_args = ... # type: Any - thread_lock = ... # type: Any - allow_process_request = ... # type: bool - process = ... # type: Any - def __init__(self, command_and_args) -> None: ... - def start_process(self): ... - def shutdown(self): ... - @property - def running(self): ... - -class NoOpLazyProcess: - def start_process(self): ... - def shutdown(self): ... - @property - def running(self): ... diff --git a/typeshed/galaxy/util/object_wrapper.pyi b/typeshed/galaxy/util/object_wrapper.pyi deleted file mode 100644 index 8a5cda6e6..000000000 --- a/typeshed/galaxy/util/object_wrapper.pyi +++ /dev/null @@ -1,95 +0,0 @@ -# Stubs for galaxy.util.object_wrapper (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from six.moves import copyreg as copy_reg -from galaxy.util import sanitize_lists_to_string as _sanitize_lists_to_string - -NoneType = ... # type: Any -NotImplementedType = ... # type: Any -EllipsisType = ... # type: Any -XRangeType = ... # type: Any -SliceType = ... # type: Any -BufferType = ... # type: Any -DictProxyType = ... # type: Any -log = ... # type: Any -__CALLABLE_TYPES__ = ... # type: Any -__WRAP_NO_SUBCLASS__ = ... # type: Any -__DONT_SANITIZE_TYPES__ = ... # type: Any -__DONT_WRAP_TYPES__ = ... # type: Any -__WRAP_SEQUENCES__ = ... # type: Any -__WRAP_SETS__ = ... # type: Any -__WRAP_MAPPINGS__ = ... # type: Any -VALID_CHARACTERS = ... # type: Any -CHARACTER_MAP = ... # type: Any -INVALID_CHARACTER = ... # type: str - -def coerce(x, y): ... -def cmp(x, y): ... -def sanitize_lists_to_string(values, valid_characters: Any = ..., character_map: Any = ..., invalid_character: Any = ...): ... -def wrap_with_safe_string(value, no_wrap_classes: Optional[Any] = ...): ... - -class SafeStringWrapper: - __UNSANITIZED_ATTRIBUTE_NAME__ = ... # type: str - __NO_WRAP_NAMES__ = ... # type: Any - def __new__(cls, *arg, **kwd): ... - unsanitized = ... # type: Any - __safe_string_wrapper_function__ = ... # type: Any - def __init__(self, value, safe_string_wrapper_function: Any = ...) -> None: ... - def __lt__(self, other): ... - def __le__(self, other): ... - def __eq__(self, other): ... - def __ne__(self, other): ... - def __gt__(self, other): ... - def __ge__(self, other): ... - def __cmp__(self, other): ... - def __hash__(self): ... - def __bool__(self): ... - __nonzero__ = ... # type: Any - def __getattr__(self, name): ... - def __setattr__(self, name, value): ... - def __delattr__(self, name): ... - def __getattribute__(self, name): ... - def __len__(self): ... - def __getitem__(self, key): ... - def __setitem__(self, key, value): ... - def __delitem__(self, key): ... - def __iter__(self): ... - def __contains__(self, item): ... - def __getslice__(self, i, j): ... - def __setslice__(self, i, j, value): ... - def __delslice__(self, i, j): ... - def __add__(self, other): ... - def __sub__(self, other): ... - def __mul__(self, other): ... - def __floordiv__(self, other): ... - def __mod__(self, other): ... - def __divmod__(self, other): ... - def __pow__(self, *other): ... - def __lshift__(self, other): ... - def __rshift__(self, other): ... - def __and__(self, other): ... - def __xor__(self, other): ... - def __or__(self, other): ... - def __div__(self, other): ... - def __truediv__(self, other): ... - def __rpow__(self, other): ... - def __neg__(self): ... - def __pos__(self): ... - def __abs__(self): ... - def __invert__(self): ... - def __complex__(self): ... - def __int__(self): ... - def __float__(self): ... - def __oct__(self): ... - def __hex__(self): ... - def __index__(self): ... - def __coerce__(self, other): ... - def __enter__(self): ... - def __exit__(self, *args): ... - -class CallableSafeStringWrapper(SafeStringWrapper): - def __call__(self, *args, **kwds): ... - -def pickle_SafeStringWrapper(safe_object): ... diff --git a/typeshed/galaxy/util/odict.pyi b/typeshed/galaxy/util/odict.pyi deleted file mode 100644 index 459e30699..000000000 --- a/typeshed/galaxy/util/odict.pyi +++ /dev/null @@ -1,27 +0,0 @@ -# Stubs for galaxy.util.odict (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from six.moves import UserDict - -dict_alias = ... # type: Any - -class odict(UserDict): - def __init__(self, dict: Optional[Any] = ...) -> None: ... - def __delitem__(self, key): ... - def __setitem__(self, key, item): ... - def clear(self): ... - def copy(self): ... - def items(self): ... - def keys(self): ... - def popitem(self): ... - def setdefault(self, key, failobj: Optional[Any] = ...): ... - def update(self, dict): ... - def values(self): ... - def iterkeys(self): ... - def itervalues(self): ... - def iteritems(self): ... - def __iter__(self): ... - def reverse(self): ... - def insert(self, index, key, item): ... diff --git a/typeshed/galaxy/util/oset.pyi b/typeshed/galaxy/util/oset.pyi deleted file mode 100644 index 1d1f7bd80..000000000 --- a/typeshed/galaxy/util/oset.pyi +++ /dev/null @@ -1,19 +0,0 @@ -# Stubs for galaxy.util.oset (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -import collections - -class OrderedSet(collections.MutableSet): - end = ... # type: Any - map = ... # type: Any - def __init__(self, iterable: Optional[Any] = ...) -> None: ... - def __len__(self): ... - def __contains__(self, key): ... - def add(self, key): ... - def discard(self, key): ... - def __iter__(self): ... - def __reversed__(self): ... - def pop(self, last: bool = ...): ... - def __eq__(self, other): ... diff --git a/typeshed/galaxy/util/plugin_config.pyi b/typeshed/galaxy/util/plugin_config.pyi deleted file mode 100644 index 887a82b7b..000000000 --- a/typeshed/galaxy/util/plugin_config.pyi +++ /dev/null @@ -1,11 +0,0 @@ -# Stubs for galaxy.util.plugin_config (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -yaml = ... # type: Any - -def plugins_dict(module, plugin_type_identifier): ... -def load_plugins(plugins_dict, plugin_source, extra_kwds: Any = ...): ... -def plugin_source_from_path(path): ... diff --git a/typeshed/galaxy/util/properties.pyi b/typeshed/galaxy/util/properties.pyi deleted file mode 100644 index b59fdd0c8..000000000 --- a/typeshed/galaxy/util/properties.pyi +++ /dev/null @@ -1,19 +0,0 @@ -# Stubs for galaxy.util.properties (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional -from six.moves.configparser import ConfigParser - -def find_config_file(default, old_default, explicit, cwd: Optional[Any] = ...): ... -def load_app_properties(kwds: Any = ..., ini_file: Optional[Any] = ..., ini_section: str = ..., config_prefix: str = ...): ... - -class NicerConfigParser(ConfigParser): - filename = ... # type: Any - def __init__(self, filename, *args, **kw) -> None: ... - read_file = ... # type: Any - def defaults(self): ... - class InterpolateWrapper: - def __init__(self, original) -> None: ... - def __getattr__(self, name): ... - def before_get(self, parser, section, option, value, defaults): ... diff --git a/typeshed/galaxy/util/simplegraph.pyi b/typeshed/galaxy/util/simplegraph.pyi deleted file mode 100644 index b1aba1a6e..000000000 --- a/typeshed/galaxy/util/simplegraph.pyi +++ /dev/null @@ -1,26 +0,0 @@ -# Stubs for galaxy.util.simplegraph (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -class SimpleGraphNode: - index = ... # type: Any - data = ... # type: Any - def __init__(self, index, **data) -> None: ... - -class SimpleGraphEdge: - source_index = ... # type: Any - target_index = ... # type: Any - data = ... # type: Any - def __init__(self, source_index, target_index, **data) -> None: ... - -class SimpleGraph: - nodes = ... # type: Any - edges = ... # type: Any - def __init__(self, nodes: Optional[Any] = ..., edges: Optional[Any] = ...) -> None: ... - def add_node(self, node_id, **data): ... - def add_edge(self, source_id, target_id, **data): ... - def gen_node_dicts(self): ... - def gen_edge_dicts(self): ... - def as_dict(self): ... diff --git a/typeshed/galaxy/util/sleeper.pyi b/typeshed/galaxy/util/sleeper.pyi deleted file mode 100644 index 600adf989..000000000 --- a/typeshed/galaxy/util/sleeper.pyi +++ /dev/null @@ -1,11 +0,0 @@ -# Stubs for galaxy.util.sleeper (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -class Sleeper: - condition = ... # type: Any - def __init__(self) -> None: ... - def sleep(self, seconds): ... - def wake(self): ... diff --git a/typeshed/galaxy/util/sockets.pyi b/typeshed/galaxy/util/sockets.pyi deleted file mode 100644 index 100aba9a9..000000000 --- a/typeshed/galaxy/util/sockets.pyi +++ /dev/null @@ -1,7 +0,0 @@ -# Stubs for galaxy.util.sockets (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def unused_port(range: Optional[Any] = ...): ... diff --git a/typeshed/galaxy/util/specs.pyi b/typeshed/galaxy/util/specs.pyi deleted file mode 100644 index e3a95b9de..000000000 --- a/typeshed/galaxy/util/specs.pyi +++ /dev/null @@ -1,9 +0,0 @@ -# Stubs for galaxy.util.specs (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def to_str_or_none(value): ... -def to_bool_or_none(value): ... -def to_bool(value): ... -def to_float_or_none(value): ... -def is_in(*args): ... diff --git a/typeshed/galaxy/util/sqlite.pyi b/typeshed/galaxy/util/sqlite.pyi deleted file mode 100644 index 53c7eaeaf..000000000 --- a/typeshed/galaxy/util/sqlite.pyi +++ /dev/null @@ -1,6 +0,0 @@ -# Stubs for galaxy.util.sqlite (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def is_read_only_query(query): ... -def connect(path): ... diff --git a/typeshed/galaxy/util/submodules.pyi b/typeshed/galaxy/util/submodules.pyi deleted file mode 100644 index dbae0501f..000000000 --- a/typeshed/galaxy/util/submodules.pyi +++ /dev/null @@ -1,9 +0,0 @@ -# Stubs for galaxy.util.submodules (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -log = ... # type: Any - -def submodules(module): ... diff --git a/typeshed/galaxy/util/topsort.pyi b/typeshed/galaxy/util/topsort.pyi deleted file mode 100644 index 79396d98a..000000000 --- a/typeshed/galaxy/util/topsort.pyi +++ /dev/null @@ -1,20 +0,0 @@ -# Stubs for galaxy.util.topsort (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any -from galaxy.util.odict import odict as OrderedDict - -class CycleError(Exception): - preds = ... # type: Any - def __init__(self, sofar, numpreds, succs) -> None: ... - def get_partial(self): ... - def get_pred_counts(self): ... - def get_succs(self): ... - def get_elements(self): ... - def get_pairlist(self): ... - def get_preds(self): ... - def pick_a_cycle(self): ... - -def topsort(pairlist): ... -def topsort_levels(pairlist): ... diff --git a/typeshed/galaxy/util/xml_macros.pyi b/typeshed/galaxy/util/xml_macros.pyi deleted file mode 100644 index 27607dfd1..000000000 --- a/typeshed/galaxy/util/xml_macros.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# Stubs for galaxy.util.xml_macros (Python 3.4) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -REQUIRED_PARAMETER = ... # type: Any - -def load(path): ... -def template_macro_params(root): ... -def raw_tool_xml_tree(path): ... -def imported_macro_paths(root): ... - -class XmlMacroDef: - elements = ... # type: Any - parameters = ... # type: Any - def __init__(self, el) -> None: ... - def macro_tokens(self, expand_el): ... diff --git a/typeshed/graphviz/dot.pyi b/typeshed/graphviz/dot.pyi deleted file mode 100644 index 1616346b4..000000000 --- a/typeshed/graphviz/dot.pyi +++ /dev/null @@ -1,39 +0,0 @@ -# Stubs for graphviz.dot (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from . import files -from typing import Any, Optional - -class Dot(files.File): - name: Any = ... - comment: Any = ... - graph_attr: Any = ... - node_attr: Any = ... - edge_attr: Any = ... - body: Any = ... - strict: Any = ... - def __init__(self, name: Optional[Any] = ..., comment: Optional[Any] = ..., filename: Optional[Any] = ..., directory: Optional[Any] = ..., format: Optional[Any] = ..., engine: Optional[Any] = ..., encoding: Any = ..., graph_attr: Optional[Any] = ..., node_attr: Optional[Any] = ..., edge_attr: Optional[Any] = ..., body: Optional[Any] = ..., strict: bool = ...) -> None: ... - def clear(self, keep_attrs: bool = ...): ... - def __iter__(self, subgraph: bool = ...): ... - source: Any = ... - def node(self, name, label: Optional[Any] = ..., _attributes: Optional[Any] = ..., **attrs): ... - def edge(self, tail_name, head_name, label: Optional[Any] = ..., _attributes: Optional[Any] = ..., **attrs): ... - def edges(self, tail_head_iter): ... - def attr(self, kw: Optional[Any] = ..., _attributes: Optional[Any] = ..., **attrs): ... - def subgraph(self, graph: Optional[Any] = ..., name: Optional[Any] = ..., comment: Optional[Any] = ..., graph_attr: Optional[Any] = ..., node_attr: Optional[Any] = ..., edge_attr: Optional[Any] = ..., body: Optional[Any] = ...): ... - -class SubgraphContext: - parent: Any = ... - graph: Any = ... - def __init__(self, parent, kwargs) -> None: ... - def __enter__(self): ... - def __exit__(self, type_, value, traceback): ... - -class Graph(Dot): - @property - def directed(self): ... - -class Digraph(Dot): - @property - def directed(self): ... diff --git a/typeshed/graphviz/files.pyi b/typeshed/graphviz/files.pyi deleted file mode 100644 index f8951640d..000000000 --- a/typeshed/graphviz/files.pyi +++ /dev/null @@ -1,40 +0,0 @@ -# Stubs for graphviz.files (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -class Base: - @property - def format(self): ... - @format.setter - def format(self, format): ... - @property - def engine(self): ... - @engine.setter - def engine(self, engine): ... - @property - def encoding(self): ... - @encoding.setter - def encoding(self, encoding): ... - def copy(self): ... - -class File(Base): - directory: str = ... - filename: Any = ... - format: Any = ... - engine: Any = ... - encoding: Any = ... - def __init__(self, filename: Optional[Any] = ..., directory: Optional[Any] = ..., format: Optional[Any] = ..., engine: Optional[Any] = ..., encoding: Any = ...) -> None: ... - def pipe(self, format: Optional[Any] = ...): ... - @property - def filepath(self): ... - def save(self, filename: Optional[Any] = ..., directory: Optional[Any] = ...): ... - def render(self, filename: Optional[Any] = ..., directory: Optional[Any] = ..., view: bool = ..., cleanup: bool = ...): ... - def view(self, filename: Optional[Any] = ..., directory: Optional[Any] = ..., cleanup: bool = ...): ... - -class Source(File): - @classmethod - def from_file(cls, filename, directory: Optional[Any] = ..., format: Optional[Any] = ..., engine: Optional[Any] = ..., encoding: Any = ...): ... - source: Any = ... - def __init__(self, source, filename: Optional[Any] = ..., directory: Optional[Any] = ..., format: Optional[Any] = ..., engine: Optional[Any] = ..., encoding: Any = ...) -> None: ... diff --git a/typeshed/graphviz/lang.pyi b/typeshed/graphviz/lang.pyi deleted file mode 100644 index 4429b02b4..000000000 --- a/typeshed/graphviz/lang.pyi +++ /dev/null @@ -1,12 +0,0 @@ -# Stubs for graphviz.lang (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def quote(identifier, html: Any = ..., valid_id: Any = ..., dot_keywords: Any = ...): ... -def quote_edge(identifier): ... -def a_list(label: Optional[Any] = ..., kwargs: Optional[Any] = ..., attributes: Optional[Any] = ...): ... -def attr_list(label: Optional[Any] = ..., kwargs: Optional[Any] = ..., attributes: Optional[Any] = ...): ... - -class NoHtml: ... diff --git a/typeshed/mistune.pyi b/typeshed/mistune.pyi deleted file mode 100644 index 3c4279b0f..000000000 --- a/typeshed/mistune.pyi +++ /dev/null @@ -1,196 +0,0 @@ -__author__ = "Aleksandr Slepchenkov" -__email__ = "Sl.aleksandr28@gmail.com" - -from typing import ( - Any, - Dict, - Iterable, - List, - Match, - Optional, - Pattern, - Sequence, - Text, - Tuple, - Type, -) - -Tokens = List[Dict[Text, Any]] -# There are too much levels of optional unions of lists of text in cell and align 385 and 396 lines in mistune - -def escape(text: Text, quote: bool = ..., smart_amp: bool = ...) -> Text: ... - -class BlockGrammar: - def_links = ... # type: Pattern - def_footnotes = ... # type: Pattern - newline = ... # type: Pattern - block_code = ... # type: Pattern - fences = ... # type: Pattern - hrule = ... # type: Pattern - heading = ... # type: Pattern - lheading = ... # type: Pattern - block_quote = ... # type: Pattern - list_block = ... # type: Pattern - list_item = ... # type: Pattern - list_bullet = ... # type: Pattern - paragraph = ... # type: Pattern - block_html = ... # type: Pattern - table = ... # type: Pattern - nptable = ... # type: Pattern - text = ... # type: Pattern - -class BlockLexer: - grammar_class = ... # type: Type[BlockGrammar] - default_rules = ... # type: List[Text] - list_rules = ... # type: Tuple[Text] - footnote_rules = ... # type: Tuple[Text] - tokens = ... # type: Tokens - def_links = ... # type: Dict[Text, Dict[Text, Text]] - def_footnotes = ... # type: Dict[Text, int] - rules = ... # type: BlockGrammar - def __init__(self, rules: Optional[BlockGrammar] = ..., **kwargs) -> None: ... - def __call__(self, text: Text, rules: Optional[Sequence[Text]] = ...) -> Tokens: ... - def parse(self, text: Text, rules: Optional[Sequence[Text]] = ...) -> Tokens: ... - def parse_newline(self, m: Match) -> None: ... - def parse_block_code(self, m: Match) -> None: ... - def parse_fences(self, m: Match) -> None: ... - def parse_heading(self, m: Match) -> None: ... - def parse_lheading(self, m: Match) -> None: ... - def parse_hrule(self, m: Match) -> None: ... - def parse_list_block(self, m: Match) -> None: ... - def parse_block_quote(self, m: Match) -> None: ... - def parse_def_links(self, m: Match) -> None: ... - def parse_def_footnotes(self, m: Match) -> None: ... - def parse_table(self, m: Match) -> None: ... - def parse_nptable(self, m: Match) -> None: ... - def parse_block_html(self, m: Match) -> None: ... - def parse_paragraph(self, m: Match) -> None: ... - def parse_text(self, m: Match) -> None: ... - -class InlineGrammar: - escape = ... # type: Pattern - inline_html = ... # type: Pattern - autolink = ... # type: Pattern - link = ... # type: Pattern - reflink = ... # type: Pattern - nolink = ... # type: Pattern - url = ... # type: Pattern - double_emphasis = ... # type: Pattern - emphasis = ... # type: Pattern - code = ... # type: Pattern - linebreak = ... # type: Pattern - strikethrough = ... # type: Pattern - footnote = ... # type: Pattern - text = ... # type: Pattern - def hard_wrap(self) -> None: ... - -class InlineLexer: - grammar_class = ... # type: Type[InlineGrammar] - default_rules = ... # type: List[Text] - inline_html_rules = ... # type: List[Text] - renderer = ... # type: Renderer - links = ... # type: Dict[Any, Dict] - footnotes = ... # type: Dict[Text, int] - footnote_index = ... # type: int - _in_link = ... # type: bool - _in_footnote = ... # type: bool - _parse_inline_html = ... # type: bool - rules = ... # type: InlineGrammar - def __init__( - self, renderer: Renderer, rules: Optional[InlineGrammar] = ..., **kwargs - ) -> None: ... - def __call__(self, text: Text, rules: Optional[Sequence[Text]] = ...) -> Text: ... - def setup( - self, links: Optional[Dict[Any, Dict]], footnotes: Optional[Dict[Text, int]] - ) -> None: ... - line_match = ... # type: Match - line_started = ... # type: bool - def output(self, text: Text, rules: Optional[Sequence[Text]] = ...) -> Text: ... - def output_escape(self, m: Match) -> Text: ... - def output_autolink(self, m: Match) -> Text: ... - def output_url(self, m: Match) -> Text: ... - def output_inline_html(self, m: Match) -> Text: ... - def output_footnote(self, m: Match) -> Optional[Text]: ... - def output_link(self, m: Match) -> Text: ... - def output_reflink(self, m: Match) -> Optional[Text]: ... - def output_nolink(self, m: Match) -> Optional[Text]: ... - def output_double_emphasis(self, m: Match) -> Text: ... - def output_emphasis(self, m: Match) -> Text: ... - def output_code(self, m: Match) -> Text: ... - def output_linebreak(self, m: Match) -> Text: ... - def output_strikethrough(self, m: Match) -> Text: ... - def output_text(self, m: Match) -> Text: ... - -class Renderer: - options = ... # type: Dict - def __init__(self, **kwargs) -> None: ... - def placeholder(self) -> Text: ... - def block_code( - self, code: Text, lang: Any = ... - ) -> Text: ... # It seems that lang should be string, however other types are valid as well - def block_quote(self, text: Text) -> Text: ... - def block_html(self, html: Text) -> Text: ... - def header(self, text: Text, level: int, raw: Optional[Text] = ...) -> Text: ... - def hrule(self) -> Text: ... - def list( - self, body: Any, ordered: bool = ... - ) -> Text: ... # body - same reason as for lang above, and for other Any in this class - def list_item(self, text: Any) -> Text: ... - def paragraph(self, text: Text) -> Text: ... - def table(self, header: Any, body: Any) -> Text: ... - def table_row(self, content: Any) -> Text: ... - def table_cell(self, content: Any, **flags) -> Text: ... - def double_emphasis(self, text: Any) -> Text: ... - def emphasis(self, text: Any) -> Text: ... - def codespan(self, text: Text) -> Text: ... - def linebreak(self) -> Text: ... - def strikethrough(self, text: Any) -> Text: ... - def text(self, text: Any) -> Text: ... - def escape(self, text: Any) -> Text: ... - def autolink(self, link: Any, is_email: bool = ...) -> Text: ... - def link(self, link: Any, title: Any, text: Any) -> Text: ... - def image(self, src: Any, title: Any, text: Any) -> Text: ... - def inline_html(self, html: Any) -> Text: ... - def newline(self) -> Text: ... - def footnote_ref(self, key: Any, index: int) -> Text: ... - def footnote_item(self, key: Any, text: Text) -> Text: ... - def footnotes(self, text: Any) -> Text: ... - -class Markdown: - renderer = ... # type: Renderer - inline = ... # type: InlineLexer - block = ... # type: BlockLexer - footnotes = ... # type: List[Dict[Text, Any]] - tokens = ... # type: Tokens - def __init__( - self, - renderer: Optional[Renderer] = ..., - inline: Optional[InlineLexer] = ..., - block: Optional[BlockLexer] = ..., - **kwargs - ) -> None: ... - def __call__(self, text: Text) -> Text: ... - def render(self, text: Text) -> Text: ... - def parse(self, text: Text) -> Text: ... - token = ... # type: Dict[Text, Any] - def pop(self) -> Optional[Dict[Text, Any]]: ... - def peek(self) -> Optional[Dict[Text, Any]]: ... - def output(self, text: Text, rules: Optional[Sequence[Text]] = ...): ... - def tok(self) -> Text: ... - def tok_text(self) -> Text: ... - def output_newline(self) -> Text: ... - def output_hrule(self) -> Text: ... - def output_heading(self) -> Text: ... - def output_code(self) -> Text: ... - def output_table(self) -> Text: ... - def output_block_quote(self) -> Text: ... - def output_list(self) -> Text: ... - def output_list_item(self) -> Text: ... - def output_loose_item(self) -> Text: ... - def output_footnote(self) -> Text: ... - def output_close_html(self) -> Text: ... - def output_open_html(self) -> Text: ... - def output_paragraph(self) -> Text: ... - def output_text(self) -> Text: ... - -def markdown(text: Text, escape: bool = ..., **kwargs) -> Text: ... diff --git a/typeshed/networkx/algorithms/assortativity/mixing.pyi b/typeshed/networkx/algorithms/assortativity/mixing.pyi deleted file mode 100644 index c7cd71dfa..000000000 --- a/typeshed/networkx/algorithms/assortativity/mixing.pyi +++ /dev/null @@ -1,12 +0,0 @@ -# Stubs for networkx.algorithms.assortativity.mixing (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def attribute_mixing_dict(G, attribute, nodes: Optional[Any] = ..., normalized: bool = ...): ... -def attribute_mixing_matrix(G, attribute, nodes: Optional[Any] = ..., mapping: Optional[Any] = ..., normalized: bool = ...): ... -def degree_mixing_dict(G, x: str = ..., y: str = ..., weight: Optional[Any] = ..., nodes: Optional[Any] = ..., normalized: bool = ...): ... -def degree_mixing_matrix(G, x: str = ..., y: str = ..., weight: Optional[Any] = ..., nodes: Optional[Any] = ..., normalized: bool = ...): ... -def numeric_mixing_matrix(G, attribute, nodes: Optional[Any] = ..., normalized: bool = ...): ... -def mixing_dict(xy, normalized: bool = ...): ... diff --git a/typeshed/networkx/algorithms/bipartite/edgelist.pyi b/typeshed/networkx/algorithms/bipartite/edgelist.pyi deleted file mode 100644 index 33f4aa4e7..000000000 --- a/typeshed/networkx/algorithms/bipartite/edgelist.pyi +++ /dev/null @@ -1,10 +0,0 @@ -# Stubs for networkx.algorithms.bipartite.edgelist (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def write_edgelist(G, path, comments: str = ..., delimiter: str = ..., data: bool = ..., encoding: str = ...): ... -def generate_edgelist(G, delimiter: str = ..., data: bool = ...): ... -def parse_edgelist(lines, comments: str = ..., delimiter: Optional[Any] = ..., create_using: Optional[Any] = ..., nodetype: Optional[Any] = ..., data: bool = ...): ... -def read_edgelist(path, comments: str = ..., delimiter: Optional[Any] = ..., create_using: Optional[Any] = ..., nodetype: Optional[Any] = ..., data: bool = ..., edgetype: Optional[Any] = ..., encoding: str = ...): ... diff --git a/typeshed/networkx/algorithms/bipartite/matrix.pyi b/typeshed/networkx/algorithms/bipartite/matrix.pyi deleted file mode 100644 index c673f7608..000000000 --- a/typeshed/networkx/algorithms/bipartite/matrix.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for networkx.algorithms.bipartite.matrix (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def biadjacency_matrix(G, row_order, column_order: Optional[Any] = ..., dtype: Optional[Any] = ..., weight: str = ..., format: str = ...): ... -def from_biadjacency_matrix(A, create_using: Optional[Any] = ..., edge_attribute: str = ...): ... diff --git a/typeshed/networkx/algorithms/centrality/betweenness.pyi b/typeshed/networkx/algorithms/centrality/betweenness.pyi deleted file mode 100644 index 5441ed1f1..000000000 --- a/typeshed/networkx/algorithms/centrality/betweenness.pyi +++ /dev/null @@ -1,9 +0,0 @@ -# Stubs for networkx.algorithms.centrality.betweenness (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def betweenness_centrality(G, k: Optional[Any] = ..., normalized: bool = ..., weight: Optional[Any] = ..., endpoints: bool = ..., seed: Optional[Any] = ...): ... -def edge_betweenness_centrality(G, k: Optional[Any] = ..., normalized: bool = ..., weight: Optional[Any] = ..., seed: Optional[Any] = ...): ... -def edge_betweenness(G, k: Optional[Any] = ..., normalized: bool = ..., weight: Optional[Any] = ..., seed: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/centrality/betweenness_subset.pyi b/typeshed/networkx/algorithms/centrality/betweenness_subset.pyi deleted file mode 100644 index 93aa14707..000000000 --- a/typeshed/networkx/algorithms/centrality/betweenness_subset.pyi +++ /dev/null @@ -1,9 +0,0 @@ -# Stubs for networkx.algorithms.centrality.betweenness_subset (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def betweenness_centrality_subset(G, sources, targets, normalized: bool = ..., weight: Optional[Any] = ...): ... -def edge_betweenness_centrality_subset(G, sources, targets, normalized: bool = ..., weight: Optional[Any] = ...): ... -def betweenness_centrality_source(G, normalized: bool = ..., weight: Optional[Any] = ..., sources: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/centrality/current_flow_betweenness.pyi b/typeshed/networkx/algorithms/centrality/current_flow_betweenness.pyi deleted file mode 100644 index 85f907d2a..000000000 --- a/typeshed/networkx/algorithms/centrality/current_flow_betweenness.pyi +++ /dev/null @@ -1,10 +0,0 @@ -# Stubs for networkx.algorithms.centrality.current_flow_betweenness (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from networkx.algorithms.centrality.flow_matrix import * -from typing import Any, Optional - -def approximate_current_flow_betweenness_centrality(G, normalized: bool = ..., weight: Optional[Any] = ..., dtype: Any = ..., solver: str = ..., epsilon: float = ..., kmax: int = ...): ... -def current_flow_betweenness_centrality(G, normalized: bool = ..., weight: Optional[Any] = ..., dtype: Any = ..., solver: str = ...): ... -def edge_current_flow_betweenness_centrality(G, normalized: bool = ..., weight: Optional[Any] = ..., dtype: Any = ..., solver: str = ...): ... diff --git a/typeshed/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi b/typeshed/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi deleted file mode 100644 index fb7bf28db..000000000 --- a/typeshed/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi +++ /dev/null @@ -1,9 +0,0 @@ -# Stubs for networkx.algorithms.centrality.current_flow_betweenness_subset (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from networkx.algorithms.centrality.flow_matrix import * -from typing import Any, Optional - -def current_flow_betweenness_centrality_subset(G, sources, targets, normalized: bool = ..., weight: Optional[Any] = ..., dtype: Any = ..., solver: str = ...): ... -def edge_current_flow_betweenness_centrality_subset(G, sources, targets, normalized: bool = ..., weight: Optional[Any] = ..., dtype: Any = ..., solver: str = ...): ... diff --git a/typeshed/networkx/algorithms/centrality/eigenvector.pyi b/typeshed/networkx/algorithms/centrality/eigenvector.pyi deleted file mode 100644 index cf0dde768..000000000 --- a/typeshed/networkx/algorithms/centrality/eigenvector.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for networkx.algorithms.centrality.eigenvector (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def eigenvector_centrality(G, max_iter: int = ..., tol: float = ..., nstart: Optional[Any] = ..., weight: Optional[Any] = ...): ... -def eigenvector_centrality_numpy(G, weight: Optional[Any] = ..., max_iter: int = ..., tol: int = ...): ... diff --git a/typeshed/networkx/algorithms/centrality/katz.pyi b/typeshed/networkx/algorithms/centrality/katz.pyi deleted file mode 100644 index 9a843dcf3..000000000 --- a/typeshed/networkx/algorithms/centrality/katz.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for networkx.algorithms.centrality.katz (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def katz_centrality(G, alpha: float = ..., beta: float = ..., max_iter: int = ..., tol: float = ..., nstart: Optional[Any] = ..., normalized: bool = ..., weight: Optional[Any] = ...): ... -def katz_centrality_numpy(G, alpha: float = ..., beta: float = ..., normalized: bool = ..., weight: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/centrality/reaching.pyi b/typeshed/networkx/algorithms/centrality/reaching.pyi deleted file mode 100644 index 675b36c0e..000000000 --- a/typeshed/networkx/algorithms/centrality/reaching.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for networkx.algorithms.centrality.reaching (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def global_reaching_centrality(G, weight: Optional[Any] = ..., normalized: bool = ...): ... -def local_reaching_centrality(G, v, paths: Optional[Any] = ..., weight: Optional[Any] = ..., normalized: bool = ...): ... diff --git a/typeshed/networkx/algorithms/community/community_generators.pyi b/typeshed/networkx/algorithms/community/community_generators.pyi deleted file mode 100644 index b6ff9c7cf..000000000 --- a/typeshed/networkx/algorithms/community/community_generators.pyi +++ /dev/null @@ -1,7 +0,0 @@ -# Stubs for networkx.algorithms.community.community_generators (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def LFR_benchmark_graph(n, tau1, tau2, mu, average_degree: Optional[Any] = ..., min_degree: Optional[Any] = ..., max_degree: Optional[Any] = ..., min_community: Optional[Any] = ..., max_community: Optional[Any] = ..., tol: float = ..., max_iters: int = ..., seed: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/connectivity/connectivity.pyi b/typeshed/networkx/algorithms/connectivity/connectivity.pyi deleted file mode 100644 index 67f4a289e..000000000 --- a/typeshed/networkx/algorithms/connectivity/connectivity.pyi +++ /dev/null @@ -1,15 +0,0 @@ -# Stubs for networkx.algorithms.connectivity.connectivity (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from networkx.algorithms.flow import edmonds_karp -from typing import Any, Optional - -default_flow_func = edmonds_karp - -def local_node_connectivity(G, s, t, flow_func: Optional[Any] = ..., auxiliary: Optional[Any] = ..., residual: Optional[Any] = ..., cutoff: Optional[Any] = ...): ... -def node_connectivity(G, s: Optional[Any] = ..., t: Optional[Any] = ..., flow_func: Optional[Any] = ...): ... -def average_node_connectivity(G, flow_func: Optional[Any] = ...): ... -def all_pairs_node_connectivity(G, nbunch: Optional[Any] = ..., flow_func: Optional[Any] = ...): ... -def local_edge_connectivity(G, s, t, flow_func: Optional[Any] = ..., auxiliary: Optional[Any] = ..., residual: Optional[Any] = ..., cutoff: Optional[Any] = ...): ... -def edge_connectivity(G, s: Optional[Any] = ..., t: Optional[Any] = ..., flow_func: Optional[Any] = ..., cutoff: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/connectivity/cuts.pyi b/typeshed/networkx/algorithms/connectivity/cuts.pyi deleted file mode 100644 index be7a69a01..000000000 --- a/typeshed/networkx/algorithms/connectivity/cuts.pyi +++ /dev/null @@ -1,13 +0,0 @@ -# Stubs for networkx.algorithms.connectivity.cuts (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from networkx.algorithms.flow import edmonds_karp -from typing import Any, Optional - -default_flow_func = edmonds_karp - -def minimum_st_edge_cut(G, s, t, flow_func: Optional[Any] = ..., auxiliary: Optional[Any] = ..., residual: Optional[Any] = ...): ... -def minimum_st_node_cut(G, s, t, flow_func: Optional[Any] = ..., auxiliary: Optional[Any] = ..., residual: Optional[Any] = ...): ... -def minimum_node_cut(G, s: Optional[Any] = ..., t: Optional[Any] = ..., flow_func: Optional[Any] = ...): ... -def minimum_edge_cut(G, s: Optional[Any] = ..., t: Optional[Any] = ..., flow_func: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/connectivity/disjoint_paths.pyi b/typeshed/networkx/algorithms/connectivity/disjoint_paths.pyi deleted file mode 100644 index 437d9a0a7..000000000 --- a/typeshed/networkx/algorithms/connectivity/disjoint_paths.pyi +++ /dev/null @@ -1,11 +0,0 @@ -# Stubs for networkx.algorithms.connectivity.disjoint_paths (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from networkx.algorithms.flow import edmonds_karp -from typing import Any, Optional - -default_flow_func = edmonds_karp - -def edge_disjoint_paths(G, s, t, flow_func: Optional[Any] = ..., cutoff: Optional[Any] = ..., auxiliary: Optional[Any] = ..., residual: Optional[Any] = ...): ... -def node_disjoint_paths(G, s, t, flow_func: Optional[Any] = ..., cutoff: Optional[Any] = ..., auxiliary: Optional[Any] = ..., residual: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/flow/maxflow.pyi b/typeshed/networkx/algorithms/flow/maxflow.pyi deleted file mode 100644 index 97f5e0ff4..000000000 --- a/typeshed/networkx/algorithms/flow/maxflow.pyi +++ /dev/null @@ -1,13 +0,0 @@ -# Stubs for networkx.algorithms.flow.maxflow (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from .preflowpush import preflow_push -from typing import Any, Optional - -default_flow_func = preflow_push - -def maximum_flow(flowG, _s, _t, capacity: str = ..., flow_func: Optional[Any] = ..., **kwargs): ... -def maximum_flow_value(flowG, _s, _t, capacity: str = ..., flow_func: Optional[Any] = ..., **kwargs): ... -def minimum_cut(flowG, _s, _t, capacity: str = ..., flow_func: Optional[Any] = ..., **kwargs): ... -def minimum_cut_value(flowG, _s, _t, capacity: str = ..., flow_func: Optional[Any] = ..., **kwargs): ... diff --git a/typeshed/networkx/algorithms/link_analysis/pagerank_alg.pyi b/typeshed/networkx/algorithms/link_analysis/pagerank_alg.pyi deleted file mode 100644 index 6e8e1eb31..000000000 --- a/typeshed/networkx/algorithms/link_analysis/pagerank_alg.pyi +++ /dev/null @@ -1,10 +0,0 @@ -# Stubs for networkx.algorithms.link_analysis.pagerank_alg (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def pagerank(G, alpha: float = ..., personalization: Optional[Any] = ..., max_iter: int = ..., tol: float = ..., nstart: Optional[Any] = ..., weight: str = ..., dangling: Optional[Any] = ...): ... -def google_matrix(G, alpha: float = ..., personalization: Optional[Any] = ..., nodelist: Optional[Any] = ..., weight: str = ..., dangling: Optional[Any] = ...): ... -def pagerank_numpy(G, alpha: float = ..., personalization: Optional[Any] = ..., weight: str = ..., dangling: Optional[Any] = ...): ... -def pagerank_scipy(G, alpha: float = ..., personalization: Optional[Any] = ..., max_iter: int = ..., tol: float = ..., weight: str = ..., dangling: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/shortest_paths/astar.pyi b/typeshed/networkx/algorithms/shortest_paths/astar.pyi deleted file mode 100644 index 37b2fdd6a..000000000 --- a/typeshed/networkx/algorithms/shortest_paths/astar.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for networkx.algorithms.shortest_paths.astar (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def astar_path(G, source, target, heuristic: Optional[Any] = ..., weight: str = ...): ... -def astar_path_length(G, source, target, heuristic: Optional[Any] = ..., weight: str = ...): ... diff --git a/typeshed/networkx/algorithms/shortest_paths/weighted.pyi b/typeshed/networkx/algorithms/shortest_paths/weighted.pyi deleted file mode 100644 index e5777a2ef..000000000 --- a/typeshed/networkx/algorithms/shortest_paths/weighted.pyi +++ /dev/null @@ -1,30 +0,0 @@ -# Stubs for networkx.algorithms.shortest_paths.weighted (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def dijkstra_path(G, source, target, weight: str = ...): ... -def dijkstra_path_length(G, source, target, weight: str = ...): ... -def single_source_dijkstra_path(G, source, cutoff: Optional[Any] = ..., weight: str = ...): ... -def single_source_dijkstra_path_length(G, source, cutoff: Optional[Any] = ..., weight: str = ...): ... -def single_source_dijkstra(G, source, target: Optional[Any] = ..., cutoff: Optional[Any] = ..., weight: str = ...): ... -def multi_source_dijkstra_path(G, sources, cutoff: Optional[Any] = ..., weight: str = ...): ... -def multi_source_dijkstra_path_length(G, sources, cutoff: Optional[Any] = ..., weight: str = ...): ... -def multi_source_dijkstra(G, sources, target: Optional[Any] = ..., cutoff: Optional[Any] = ..., weight: str = ...): ... -def dijkstra_predecessor_and_distance(G, source, cutoff: Optional[Any] = ..., weight: str = ...): ... -def all_pairs_dijkstra(G, cutoff: Optional[Any] = ..., weight: str = ...): ... -def all_pairs_dijkstra_path_length(G, cutoff: Optional[Any] = ..., weight: str = ...): ... -def all_pairs_dijkstra_path(G, cutoff: Optional[Any] = ..., weight: str = ...): ... -def bellman_ford_predecessor_and_distance(G, source, target: Optional[Any] = ..., cutoff: Optional[Any] = ..., weight: str = ...): ... -def bellman_ford_path(G, source, target, weight: str = ...): ... -def bellman_ford_path_length(G, source, target, weight: str = ...): ... -def single_source_bellman_ford_path(G, source, cutoff: Optional[Any] = ..., weight: str = ...): ... -def single_source_bellman_ford_path_length(G, source, cutoff: Optional[Any] = ..., weight: str = ...): ... -def single_source_bellman_ford(G, source, target: Optional[Any] = ..., cutoff: Optional[Any] = ..., weight: str = ...): ... -def all_pairs_bellman_ford_path_length(G, cutoff: Optional[Any] = ..., weight: str = ...): ... -def all_pairs_bellman_ford_path(G, cutoff: Optional[Any] = ..., weight: str = ...): ... -def goldberg_radzik(G, source, weight: str = ...): ... -def negative_edge_cycle(G, weight: str = ...): ... -def bidirectional_dijkstra(G, source, target, weight: str = ...): ... -def johnson(G, weight: str = ...): ... diff --git a/typeshed/networkx/algorithms/similarity.pyi b/typeshed/networkx/algorithms/similarity.pyi deleted file mode 100644 index 2192aba2c..000000000 --- a/typeshed/networkx/algorithms/similarity.pyi +++ /dev/null @@ -1,11 +0,0 @@ -# Stubs for networkx.algorithms.similarity (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from operator import * -from typing import Any, Optional - -def graph_edit_distance(G1, G2, node_match: Optional[Any] = ..., edge_match: Optional[Any] = ..., node_subst_cost: Optional[Any] = ..., node_del_cost: Optional[Any] = ..., node_ins_cost: Optional[Any] = ..., edge_subst_cost: Optional[Any] = ..., edge_del_cost: Optional[Any] = ..., edge_ins_cost: Optional[Any] = ..., upper_bound: Optional[Any] = ...): ... -def optimal_edit_paths(G1, G2, node_match: Optional[Any] = ..., edge_match: Optional[Any] = ..., node_subst_cost: Optional[Any] = ..., node_del_cost: Optional[Any] = ..., node_ins_cost: Optional[Any] = ..., edge_subst_cost: Optional[Any] = ..., edge_del_cost: Optional[Any] = ..., edge_ins_cost: Optional[Any] = ..., upper_bound: Optional[Any] = ...): ... -def optimize_graph_edit_distance(G1, G2, node_match: Optional[Any] = ..., edge_match: Optional[Any] = ..., node_subst_cost: Optional[Any] = ..., node_del_cost: Optional[Any] = ..., node_ins_cost: Optional[Any] = ..., edge_subst_cost: Optional[Any] = ..., edge_del_cost: Optional[Any] = ..., edge_ins_cost: Optional[Any] = ..., upper_bound: Optional[Any] = ...): ... -def optimize_edit_paths(G1, G2, node_match: Optional[Any] = ..., edge_match: Optional[Any] = ..., node_subst_cost: Optional[Any] = ..., node_del_cost: Optional[Any] = ..., node_ins_cost: Optional[Any] = ..., edge_subst_cost: Optional[Any] = ..., edge_del_cost: Optional[Any] = ..., edge_ins_cost: Optional[Any] = ..., upper_bound: Optional[Any] = ..., strictly_decreasing: bool = ...): ... diff --git a/typeshed/networkx/algorithms/traversal/depth_first_search.pyi b/typeshed/networkx/algorithms/traversal/depth_first_search.pyi deleted file mode 100644 index dc8fecf60..000000000 --- a/typeshed/networkx/algorithms/traversal/depth_first_search.pyi +++ /dev/null @@ -1,13 +0,0 @@ -# Stubs for networkx.algorithms.traversal.depth_first_search (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def dfs_edges(G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ...): ... -def dfs_tree(G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ...): ... -def dfs_predecessors(G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ...): ... -def dfs_successors(G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ...): ... -def dfs_postorder_nodes(G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ...): ... -def dfs_preorder_nodes(G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ...): ... -def dfs_labeled_edges(G, source: Optional[Any] = ..., depth_limit: Optional[Any] = ...): ... diff --git a/typeshed/networkx/algorithms/tree/mst.pyi b/typeshed/networkx/algorithms/tree/mst.pyi deleted file mode 100644 index e268af33e..000000000 --- a/typeshed/networkx/algorithms/tree/mst.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for networkx.algorithms.tree.mst (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -def minimum_spanning_edges(G, algorithm: str = ..., weight: str = ..., keys: bool = ..., data: bool = ..., ignore_nan: bool = ...): ... -def maximum_spanning_edges(G, algorithm: str = ..., weight: str = ..., keys: bool = ..., data: bool = ..., ignore_nan: bool = ...): ... -def minimum_spanning_tree(G, weight: str = ..., algorithm: str = ..., ignore_nan: bool = ...): ... -def maximum_spanning_tree(G, weight: str = ..., algorithm: str = ..., ignore_nan: bool = ...): ... diff --git a/typeshed/networkx/convert_matrix.pyi b/typeshed/networkx/convert_matrix.pyi deleted file mode 100644 index fa379ae0b..000000000 --- a/typeshed/networkx/convert_matrix.pyi +++ /dev/null @@ -1,17 +0,0 @@ -# Stubs for networkx.convert_matrix (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def to_pandas_adjacency(G, nodelist: Optional[Any] = ..., dtype: Optional[Any] = ..., order: Optional[Any] = ..., multigraph_weight: Any = ..., weight: str = ..., nonedge: float = ...): ... -def from_pandas_adjacency(df, create_using: Optional[Any] = ...): ... -def to_pandas_edgelist(G, source: str = ..., target: str = ..., nodelist: Optional[Any] = ..., dtype: Optional[Any] = ..., order: Optional[Any] = ...): ... -def from_pandas_edgelist(df, source: str = ..., target: str = ..., edge_attr: Optional[Any] = ..., create_using: Optional[Any] = ...): ... -def to_numpy_matrix(G, nodelist: Optional[Any] = ..., dtype: Optional[Any] = ..., order: Optional[Any] = ..., multigraph_weight: Any = ..., weight: str = ..., nonedge: float = ...): ... -def from_numpy_matrix(A, parallel_edges: bool = ..., create_using: Optional[Any] = ...): ... -def to_numpy_recarray(G, nodelist: Optional[Any] = ..., dtype: Optional[Any] = ..., order: Optional[Any] = ...): ... -def to_scipy_sparse_matrix(G, nodelist: Optional[Any] = ..., dtype: Optional[Any] = ..., weight: str = ..., format: str = ...): ... -def from_scipy_sparse_matrix(A, parallel_edges: bool = ..., create_using: Optional[Any] = ..., edge_attribute: str = ...): ... -def to_numpy_array(G, nodelist: Optional[Any] = ..., dtype: Optional[Any] = ..., order: Optional[Any] = ..., multigraph_weight: Any = ..., weight: str = ..., nonedge: float = ...): ... -def from_numpy_array(A, parallel_edges: bool = ..., create_using: Optional[Any] = ...): ... diff --git a/typeshed/networkx/drawing/layout.pyi b/typeshed/networkx/drawing/layout.pyi deleted file mode 100644 index 9d8917c49..000000000 --- a/typeshed/networkx/drawing/layout.pyi +++ /dev/null @@ -1,15 +0,0 @@ -# Stubs for networkx.drawing.layout (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def random_layout(G, center: Optional[Any] = ..., dim: int = ..., random_state: Optional[Any] = ...): ... -def circular_layout(G, scale: int = ..., center: Optional[Any] = ..., dim: int = ...): ... -def shell_layout(G, nlist: Optional[Any] = ..., scale: int = ..., center: Optional[Any] = ..., dim: int = ...): ... -def fruchterman_reingold_layout(G, k: Optional[Any] = ..., pos: Optional[Any] = ..., fixed: Optional[Any] = ..., iterations: int = ..., threshold: float = ..., weight: str = ..., scale: int = ..., center: Optional[Any] = ..., dim: int = ..., random_state: Optional[Any] = ...): ... -spring_layout = fruchterman_reingold_layout - -def kamada_kawai_layout(G, dist: Optional[Any] = ..., pos: Optional[Any] = ..., weight: str = ..., scale: int = ..., center: Optional[Any] = ..., dim: int = ...): ... -def spectral_layout(G, weight: str = ..., scale: int = ..., center: Optional[Any] = ..., dim: int = ...): ... -def rescale_layout(pos, scale: int = ...): ... diff --git a/typeshed/networkx/drawing/nx_pylab.pyi b/typeshed/networkx/drawing/nx_pylab.pyi deleted file mode 100644 index 5c2487265..000000000 --- a/typeshed/networkx/drawing/nx_pylab.pyi +++ /dev/null @@ -1,18 +0,0 @@ -# Stubs for networkx.drawing.nx_pylab (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def draw(G, pos: Optional[Any] = ..., ax: Optional[Any] = ..., **kwds): ... -def draw_networkx(G, pos: Optional[Any] = ..., arrows: bool = ..., with_labels: bool = ..., **kwds): ... -def draw_networkx_nodes(G, pos, nodelist: Optional[Any] = ..., node_size: int = ..., node_color: str = ..., node_shape: str = ..., alpha: float = ..., cmap: Optional[Any] = ..., vmin: Optional[Any] = ..., vmax: Optional[Any] = ..., ax: Optional[Any] = ..., linewidths: Optional[Any] = ..., edgecolors: Optional[Any] = ..., label: Optional[Any] = ..., **kwds): ... -def draw_networkx_edges(G, pos, edgelist: Optional[Any] = ..., width: float = ..., edge_color: str = ..., style: str = ..., alpha: float = ..., arrowstyle: str = ..., arrowsize: int = ..., edge_cmap: Optional[Any] = ..., edge_vmin: Optional[Any] = ..., edge_vmax: Optional[Any] = ..., ax: Optional[Any] = ..., arrows: bool = ..., label: Optional[Any] = ..., node_size: int = ..., nodelist: Optional[Any] = ..., node_shape: str = ..., **kwds): ... -def draw_networkx_labels(G, pos, labels: Optional[Any] = ..., font_size: int = ..., font_color: str = ..., font_family: str = ..., font_weight: str = ..., alpha: float = ..., bbox: Optional[Any] = ..., ax: Optional[Any] = ..., **kwds): ... -def draw_networkx_edge_labels(G, pos, edge_labels: Optional[Any] = ..., label_pos: float = ..., font_size: int = ..., font_color: str = ..., font_family: str = ..., font_weight: str = ..., alpha: float = ..., bbox: Optional[Any] = ..., ax: Optional[Any] = ..., rotate: bool = ..., **kwds): ... -def draw_circular(G, **kwargs): ... -def draw_kamada_kawai(G, **kwargs): ... -def draw_random(G, **kwargs): ... -def draw_spectral(G, **kwargs): ... -def draw_spring(G, **kwargs): ... -def draw_shell(G, **kwargs): ... diff --git a/typeshed/networkx/generators/directed.pyi b/typeshed/networkx/generators/directed.pyi deleted file mode 100644 index ab2784f1d..000000000 --- a/typeshed/networkx/generators/directed.pyi +++ /dev/null @@ -1,11 +0,0 @@ -# Stubs for networkx.generators.directed (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def gn_graph(n, kernel: Optional[Any] = ..., create_using: Optional[Any] = ..., seed: Optional[Any] = ...): ... -def gnr_graph(n, p, create_using: Optional[Any] = ..., seed: Optional[Any] = ...): ... -def gnc_graph(n, create_using: Optional[Any] = ..., seed: Optional[Any] = ...): ... -def scale_free_graph(n, alpha: float = ..., beta: float = ..., gamma: float = ..., delta_in: float = ..., delta_out: int = ..., create_using: Optional[Any] = ..., seed: Optional[Any] = ...): ... -def random_k_out_graph(n, k, alpha, self_loops: bool = ..., seed: Optional[Any] = ...): ... diff --git a/typeshed/networkx/generators/geometric.pyi b/typeshed/networkx/generators/geometric.pyi deleted file mode 100644 index a904eb8e1..000000000 --- a/typeshed/networkx/generators/geometric.pyi +++ /dev/null @@ -1,12 +0,0 @@ -# Stubs for networkx.generators.geometric (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def random_geometric_graph(n, radius, dim: int = ..., pos: Optional[Any] = ..., p: int = ...): ... -def soft_random_geometric_graph(n, radius, dim: int = ..., pos: Optional[Any] = ..., p: int = ..., p_dist: Optional[Any] = ...): ... -def geographical_threshold_graph(n, theta, dim: int = ..., pos: Optional[Any] = ..., weight: Optional[Any] = ..., metric: Optional[Any] = ..., p_dist: Optional[Any] = ...): ... -def waxman_graph(n, beta: float = ..., alpha: float = ..., L: Optional[Any] = ..., domain: Any = ..., metric: Optional[Any] = ...): ... -def navigable_small_world_graph(n, p: int = ..., q: int = ..., r: int = ..., dim: int = ..., seed: Optional[Any] = ...): ... -def thresholded_random_geometric_graph(n, radius, theta, dim: int = ..., pos: Optional[Any] = ..., weight: Optional[Any] = ..., p: int = ...): ... diff --git a/typeshed/networkx/linalg/attrmatrix.pyi b/typeshed/networkx/linalg/attrmatrix.pyi deleted file mode 100644 index e10548bc5..000000000 --- a/typeshed/networkx/linalg/attrmatrix.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for networkx.linalg.attrmatrix (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def attr_matrix(G, edge_attr: Optional[Any] = ..., node_attr: Optional[Any] = ..., normalized: bool = ..., rc_order: Optional[Any] = ..., dtype: Optional[Any] = ..., order: Optional[Any] = ...): ... -def attr_sparse_matrix(G, edge_attr: Optional[Any] = ..., node_attr: Optional[Any] = ..., normalized: bool = ..., rc_order: Optional[Any] = ..., dtype: Optional[Any] = ...): ... diff --git a/typeshed/networkx/linalg/laplacianmatrix.pyi b/typeshed/networkx/linalg/laplacianmatrix.pyi deleted file mode 100644 index f02f21051..000000000 --- a/typeshed/networkx/linalg/laplacianmatrix.pyi +++ /dev/null @@ -1,9 +0,0 @@ -# Stubs for networkx.linalg.laplacianmatrix (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def laplacian_matrix(G, nodelist: Optional[Any] = ..., weight: str = ...): ... -def normalized_laplacian_matrix(G, nodelist: Optional[Any] = ..., weight: str = ...): ... -def directed_laplacian_matrix(G, nodelist: Optional[Any] = ..., weight: str = ..., walk_type: Optional[Any] = ..., alpha: float = ...): ... diff --git a/typeshed/networkx/linalg/modularitymatrix.pyi b/typeshed/networkx/linalg/modularitymatrix.pyi deleted file mode 100644 index 05b07df19..000000000 --- a/typeshed/networkx/linalg/modularitymatrix.pyi +++ /dev/null @@ -1,8 +0,0 @@ -# Stubs for networkx.linalg.modularitymatrix (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def modularity_matrix(G, nodelist: Optional[Any] = ..., weight: Optional[Any] = ...): ... -def directed_modularity_matrix(G, nodelist: Optional[Any] = ..., weight: Optional[Any] = ...): ... diff --git a/typeshed/networkx/readwrite/adjlist.pyi b/typeshed/networkx/readwrite/adjlist.pyi deleted file mode 100644 index c59eb8504..000000000 --- a/typeshed/networkx/readwrite/adjlist.pyi +++ /dev/null @@ -1,10 +0,0 @@ -# Stubs for networkx.readwrite.adjlist (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def generate_adjlist(G, delimiter: str = ...): ... -def write_adjlist(G, path, comments: str = ..., delimiter: str = ..., encoding: str = ...): ... -def parse_adjlist(lines, comments: str = ..., delimiter: Optional[Any] = ..., create_using: Optional[Any] = ..., nodetype: Optional[Any] = ...): ... -def read_adjlist(path, comments: str = ..., delimiter: Optional[Any] = ..., create_using: Optional[Any] = ..., nodetype: Optional[Any] = ..., encoding: str = ...): ... diff --git a/typeshed/networkx/readwrite/edgelist.pyi b/typeshed/networkx/readwrite/edgelist.pyi deleted file mode 100644 index 3b3414961..000000000 --- a/typeshed/networkx/readwrite/edgelist.pyi +++ /dev/null @@ -1,12 +0,0 @@ -# Stubs for networkx.readwrite.edgelist (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def generate_edgelist(G, delimiter: str = ..., data: bool = ...): ... -def write_edgelist(G, path, comments: str = ..., delimiter: str = ..., data: bool = ..., encoding: str = ...): ... -def parse_edgelist(lines, comments: str = ..., delimiter: Optional[Any] = ..., create_using: Optional[Any] = ..., nodetype: Optional[Any] = ..., data: bool = ...): ... -def read_edgelist(path, comments: str = ..., delimiter: Optional[Any] = ..., create_using: Optional[Any] = ..., nodetype: Optional[Any] = ..., data: bool = ..., edgetype: Optional[Any] = ..., encoding: str = ...): ... -def write_weighted_edgelist(G, path, comments: str = ..., delimiter: str = ..., encoding: str = ...): ... -def read_weighted_edgelist(path, comments: str = ..., delimiter: Optional[Any] = ..., create_using: Optional[Any] = ..., nodetype: Optional[Any] = ..., encoding: str = ...): ... diff --git a/typeshed/networkx/readwrite/multiline_adjlist.pyi b/typeshed/networkx/readwrite/multiline_adjlist.pyi deleted file mode 100644 index db2522392..000000000 --- a/typeshed/networkx/readwrite/multiline_adjlist.pyi +++ /dev/null @@ -1,10 +0,0 @@ -# Stubs for networkx.readwrite.multiline_adjlist (Python 3.5) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -def generate_multiline_adjlist(G, delimiter: str = ...): ... -def write_multiline_adjlist(G, path, delimiter: str = ..., comments: str = ..., encoding: str = ...): ... -def parse_multiline_adjlist(lines, comments: str = ..., delimiter: Optional[Any] = ..., create_using: Optional[Any] = ..., nodetype: Optional[Any] = ..., edgetype: Optional[Any] = ...): ... -def read_multiline_adjlist(path, comments: str = ..., delimiter: Optional[Any] = ..., create_using: Optional[Any] = ..., nodetype: Optional[Any] = ..., edgetype: Optional[Any] = ..., encoding: str = ...): ... diff --git a/typeshed/prov/__init__.pyi b/typeshed/prov/__init__.pyi deleted file mode 100644 index 8518ac7f0..000000000 --- a/typeshed/prov/__init__.pyi +++ /dev/null @@ -1,12 +0,0 @@ -# Stubs for prov (Python 3.6) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any, Optional - -class Error(Exception): ... - -def read(source: Any, format: Optional[Any] = ...): ... - -# Names in __all__ with no definition: -# model diff --git a/typeshed/prov/constants.pyi b/typeshed/prov/constants.pyi deleted file mode 100644 index 7481b7e25..000000000 --- a/typeshed/prov/constants.pyi +++ /dev/null @@ -1,94 +0,0 @@ -# Stubs for prov.constants (Python 3.6) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -__email__: str -XSD: Any -PROV: Any -XSI: Any -PROV_ENTITY: Any -PROV_ACTIVITY: Any -PROV_GENERATION: Any -PROV_USAGE: Any -PROV_COMMUNICATION: Any -PROV_START: Any -PROV_END: Any -PROV_INVALIDATION: Any -PROV_DERIVATION: Any -PROV_AGENT: Any -PROV_ATTRIBUTION: Any -PROV_ASSOCIATION: Any -PROV_DELEGATION: Any -PROV_INFLUENCE: Any -PROV_BUNDLE: Any -PROV_ALTERNATE: Any -PROV_SPECIALIZATION: Any -PROV_MENTION: Any -PROV_MEMBERSHIP: Any -PROV_N_MAP: Any -ADDITIONAL_N_MAP: Any -PROV_BASE_CLS: Any -PROV_ATTR_ENTITY: Any -PROV_ATTR_ACTIVITY: Any -PROV_ATTR_TRIGGER: Any -PROV_ATTR_INFORMED: Any -PROV_ATTR_INFORMANT: Any -PROV_ATTR_STARTER: Any -PROV_ATTR_ENDER: Any -PROV_ATTR_AGENT: Any -PROV_ATTR_PLAN: Any -PROV_ATTR_DELEGATE: Any -PROV_ATTR_RESPONSIBLE: Any -PROV_ATTR_GENERATED_ENTITY: Any -PROV_ATTR_USED_ENTITY: Any -PROV_ATTR_GENERATION: Any -PROV_ATTR_USAGE: Any -PROV_ATTR_SPECIFIC_ENTITY: Any -PROV_ATTR_GENERAL_ENTITY: Any -PROV_ATTR_ALTERNATE1: Any -PROV_ATTR_ALTERNATE2: Any -PROV_ATTR_BUNDLE: Any -PROV_ATTR_INFLUENCEE: Any -PROV_ATTR_INFLUENCER: Any -PROV_ATTR_COLLECTION: Any -PROV_ATTR_TIME: Any -PROV_ATTR_STARTTIME: Any -PROV_ATTR_ENDTIME: Any -PROV_ATTRIBUTE_QNAMES: Any -PROV_ATTRIBUTE_LITERALS: Any -PROV_ATTRIBUTES: Any -PROV_RECORD_ATTRIBUTES: Any -PROV_RECORD_IDS_MAP: Any -PROV_ID_ATTRIBUTES_MAP: Any -PROV_ATTRIBUTES_ID_MAP: Any -PROV_TYPE: Any -PROV_LABEL: Any -PROV_VALUE: Any -PROV_LOCATION: Any -PROV_ROLE: Any -PROV_QUALIFIEDNAME: Any -XSD_ANYURI: Any -XSD_QNAME: Any -XSD_DATETIME: Any -XSD_TIME: Any -XSD_DATE: Any -XSD_STRING: Any -XSD_BOOLEAN: Any -XSD_INTEGER: Any -XSD_LONG: Any -XSD_INT: Any -XSD_SHORT: Any -XSD_BYTE: Any -XSD_NONNEGATIVEINTEGER: Any -XSD_UNSIGNEDLONG: Any -XSD_UNSIGNEDINT: Any -XSD_UNSIGNEDSHORT: Any -XSD_UNSIGNEDBYTE: Any -XSD_POSITIVEINTEGER: Any -XSD_NONPOSITIVEINTEGER: Any -XSD_NEGATIVEINTEGER: Any -XSD_FLOAT: Any -XSD_DOUBLE: Any -XSD_DECIMAL: Any diff --git a/typeshed/prov/graph.pyi b/typeshed/prov/graph.pyi deleted file mode 100644 index cfd94ccb3..000000000 --- a/typeshed/prov/graph.pyi +++ /dev/null @@ -1,11 +0,0 @@ -# Stubs for prov.graph (Python 3.6) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -__email__: str -INFERRED_ELEMENT_CLASS: Any - -def prov_to_graph(prov_document: Any): ... -def graph_to_prov(g: Any): ... diff --git a/typeshed/prov/identifier.pyi b/typeshed/prov/identifier.pyi deleted file mode 100644 index f8c2c6a8c..000000000 --- a/typeshed/prov/identifier.pyi +++ /dev/null @@ -1,37 +0,0 @@ -# Stubs for prov.identifier (Python 3.6) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from typing import Any - -__email__: str - -class Identifier: - def __init__(self, uri: Any) -> None: ... - @property - def uri(self): ... - def __eq__(self, other: Any): ... - def __hash__(self): ... - def provn_representation(self): ... - -class QualifiedName(Identifier): - def __init__(self, namespace: Any, localpart: Any) -> None: ... - @property - def namespace(self): ... - @property - def localpart(self): ... - def __hash__(self): ... - def provn_representation(self): ... - -class Namespace: - def __init__(self, prefix: Any, uri: Any) -> None: ... - @property - def uri(self): ... - @property - def prefix(self): ... - def contains(self, identifier: Any): ... - def qname(self, identifier: Any): ... - def __eq__(self, other: Any): ... - def __ne__(self, other: Any): ... - def __hash__(self): ... - def __getitem__(self, localpart: Any): ... diff --git a/typeshed/prov/model.pyi b/typeshed/prov/model.pyi deleted file mode 100644 index e27637146..000000000 --- a/typeshed/prov/model.pyi +++ /dev/null @@ -1,257 +0,0 @@ -# Stubs for prov.model (Python 3.6) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from prov.constants import * -from prov import Error -from typing import Any, List, Optional - -__email__: str -logger: Any - -def parse_xsd_datetime(value: Any): ... -def parse_boolean(value: Any): ... - -DATATYPE_PARSERS: Any -XSD_DATATYPE_PARSERS: Any - -def parse_xsd_types(value: Any, datatype: Any): ... -def first(a_set: Any): ... -def encoding_provn_value(value: Any): ... - -class Literal: - def __init__(self, value: Any, datatype: Optional[Any] = ..., langtag: Optional[Any] = ...) -> None: ... - def __eq__(self, other: Any): ... - def __ne__(self, other: Any): ... - def __hash__(self): ... - @property - def value(self): ... - @property - def datatype(self): ... - @property - def langtag(self): ... - def has_no_langtag(self): ... - def provn_representation(self): ... - -class ProvException(Error): ... -class ProvWarning(Warning): ... - -class ProvExceptionInvalidQualifiedName(ProvException): - qname: Any = ... - def __init__(self, qname: Any) -> None: ... - -class ProvElementIdentifierRequired(ProvException): ... - -class ProvRecord: - FORMAL_ATTRIBUTES: Any = ... - def __init__(self, bundle: Any, identifier: Any, attributes: Optional[Any] = ...) -> None: ... - def __hash__(self): ... - def copy(self): ... - def get_type(self): ... - def get_asserted_types(self): ... - def add_asserted_type(self, type_identifier: Any) -> None: ... - def get_attribute(self, attr_name: Any): ... - @property - def identifier(self): ... - @property - def attributes(self): ... - @property - def args(self): ... - @property - def formal_attributes(self): ... - @property - def extra_attributes(self): ... - @property - def bundle(self): ... - @property - def label(self): ... - @property - def value(self): ... - def add_attributes(self, attributes: Any) -> None: ... - def __eq__(self, other: Any): ... - def get_provn(self): ... - def is_element(self): ... - def is_relation(self): ... - -class ProvElement(ProvRecord): - def __init__(self, bundle: Any, identifier: Any, attributes: Optional[Any] = ...) -> None: ... - def is_element(self): ... - -class ProvRelation(ProvRecord): - def is_relation(self): ... - -class ProvEntity(ProvElement): - def wasGeneratedBy(self, activity: Any, time: Optional[Any] = ..., attributes: Optional[Any] = ...): ... - def wasInvalidatedBy(self, activity: Any, time: Optional[Any] = ..., attributes: Optional[Any] = ...): ... - def wasDerivedFrom(self, usedEntity: Any, activity: Optional[Any] = ..., generation: Optional[Any] = ..., usage: Optional[Any] = ..., attributes: Optional[Any] = ...): ... - def wasAttributedTo(self, agent: Any, attributes: Optional[Any] = ...): ... - def alternateOf(self, alternate2: Any): ... - def specializationOf(self, generalEntity: Any): ... - def hadMember(self, entity: Any): ... - -class ProvActivity(ProvElement): - FORMAL_ATTRIBUTES: Any = ... - def set_time(self, startTime: Optional[Any] = ..., endTime: Optional[Any] = ...) -> None: ... - def get_startTime(self): ... - def get_endTime(self): ... - def used(self, entity: Any, time: Optional[Any] = ..., attributes: Optional[Any] = ...): ... - def wasInformedBy(self, informant: Any, attributes: Optional[Any] = ...): ... - def wasStartedBy(self, trigger: Any, starter: Optional[Any] = ..., time: Optional[Any] = ..., attributes: Optional[Any] = ...): ... - def wasEndedBy(self, trigger: Any, ender: Optional[Any] = ..., time: Optional[Any] = ..., attributes: Optional[Any] = ...): ... - def wasAssociatedWith(self, agent: Any, plan: Optional[Any] = ..., attributes: Optional[Any] = ...): ... - -class ProvGeneration(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvUsage(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvCommunication(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvStart(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvEnd(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvInvalidation(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvDerivation(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvAgent(ProvElement): - def actedOnBehalfOf(self, responsible: Any, activity: Optional[Any] = ..., attributes: Optional[Any] = ...): ... - -class ProvAttribution(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvAssociation(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvDelegation(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvInfluence(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvSpecialization(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvAlternate(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -class ProvMention(ProvSpecialization): - FORMAL_ATTRIBUTES: Any = ... - -class ProvMembership(ProvRelation): - FORMAL_ATTRIBUTES: Any = ... - -PROV_REC_CLS: Any -DEFAULT_NAMESPACES: Any - -class NamespaceManager(dict): - parent: Any = ... - def __init__(self, namespaces: Optional[Any] = ..., default: Optional[Any] = ..., parent: Optional[Any] = ...) -> None: ... - def get_namespace(self, uri: Any): ... - def get_registered_namespaces(self): ... - def set_default_namespace(self, uri: Any) -> None: ... - def get_default_namespace(self): ... - def add_namespace(self, namespace: Any): ... - def add_namespaces(self, namespaces: Any) -> None: ... - def valid_qualified_name(self, qname: Any): ... - def get_anonymous_identifier(self, local_prefix: str = ...): ... - -class ProvBundle: - def __init__(self, records: Optional[Any] = ..., identifier: Optional[Any] = ..., namespaces: Optional[Any] = ..., document: Optional[Any] = ...) -> None: ... - @property - def namespaces(self): ... - @property - def default_ns_uri(self): ... - @property - def document(self): ... - @property - def identifier(self): ... - @property - def records(self): ... - def set_default_namespace(self, uri: Any) -> None: ... - def get_default_namespace(self): ... - def add_namespace(self, namespace_or_prefix: Any, uri: Optional[Any] = ...): ... - def get_registered_namespaces(self): ... - def valid_qualified_name(self, identifier: Any): ... - def get_records(self, class_or_type_or_tuple: Optional[Any] = ...): ... - def get_record(self, identifier: Any) -> Optional[List[ProvEntity]]: ... - def is_document(self): ... - def is_bundle(self): ... - def has_bundles(self): ... - @property - def bundles(self): ... - def get_provn(self, _indent_level: int = ...): ... - def __eq__(self, other: Any): ... - def __ne__(self, other: Any): ... - __hash__: Any = ... - def unified(self): ... - def update(self, other: Any) -> None: ... - def new_record(self, record_type: Any, identifier: Any, attributes: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def add_record(self, record: Any): ... - def entity(self, identifier: Any, other_attributes: Optional[Any] = ...) -> ProvEntity: ... - def activity(self, identifier: Any, startTime: Optional[Any] = ..., endTime: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def generation(self, entity: Any, activity: Optional[Any] = ..., time: Optional[Any] = ..., identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def usage(self, activity: Any, entity: Optional[Any] = ..., time: Optional[Any] = ..., identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def start(self, activity: Any, trigger: Optional[Any] = ..., starter: Optional[Any] = ..., time: Optional[Any] = ..., identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def end(self, activity: Any, trigger: Optional[Any] = ..., ender: Optional[Any] = ..., time: Optional[Any] = ..., identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def invalidation(self, entity: Any, activity: Optional[Any] = ..., time: Optional[Any] = ..., identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def communication(self, informed: Any, informant: Any, identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def agent(self, identifier: Any, other_attributes: Optional[Any] = ...): ... - def attribution(self, entity: Any, agent: Any, identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def association(self, activity: Any, agent: Optional[Any] = ..., plan: Optional[Any] = ..., identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def delegation(self, delegate: Any, responsible: Any, activity: Optional[Any] = ..., identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def influence(self, influencee: Any, influencer: Any, identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def derivation(self, generatedEntity: Any, usedEntity: Any, activity: Optional[Any] = ..., generation: Optional[Any] = ..., usage: Optional[Any] = ..., identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def revision(self, generatedEntity: Any, usedEntity: Any, activity: Optional[Any] = ..., generation: Optional[Any] = ..., usage: Optional[Any] = ..., identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def quotation(self, generatedEntity: Any, usedEntity: Any, activity: Optional[Any] = ..., generation: Optional[Any] = ..., usage: Optional[Any] = ..., identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def primary_source(self, generatedEntity: Any, usedEntity: Any, activity: Optional[Any] = ..., generation: Optional[Any] = ..., usage: Optional[Any] = ..., identifier: Optional[Any] = ..., other_attributes: Optional[Any] = ...): ... - def specialization(self, specificEntity: Any, generalEntity: Any): ... - def alternate(self, alternate1: Any, alternate2: Any): ... - def mention(self, specificEntity: Any, generalEntity: Any, bundle: Any): ... - def collection(self, identifier: Any, other_attributes: Optional[Any] = ...): ... - def membership(self, collection: Any, entity: Any): ... - def plot(self, filename: Optional[Any] = ..., show_nary: bool = ..., use_labels: bool = ..., show_element_attributes: bool = ..., show_relation_attributes: bool = ...) -> None: ... - wasGeneratedBy: Any = ... - used: Any = ... - wasStartedBy: Any = ... - wasEndedBy: Any = ... - wasInvalidatedBy: Any = ... - wasInformedBy: Any = ... - wasAttributedTo: Any = ... - wasAssociatedWith: Any = ... - actedOnBehalfOf: Any = ... - wasInfluencedBy: Any = ... - wasDerivedFrom: Any = ... - wasRevisionOf: Any = ... - wasQuotedFrom: Any = ... - hadPrimarySource: Any = ... - alternateOf: Any = ... - specializationOf: Any = ... - mentionOf: Any = ... - hadMember: Any = ... - -class ProvDocument(ProvBundle): - def __init__(self, records: Optional[Any] = ..., namespaces: Optional[Any] = ...) -> None: ... - def __eq__(self, other: Any): ... - def is_document(self): ... - def is_bundle(self): ... - def has_bundles(self): ... - @property - def bundles(self): ... - def flattened(self) -> ProvDocument: ... - def unified(self): ... - def update(self, other: Any) -> None: ... - def add_bundle(self, bundle: Any, identifier: Optional[Any] = ...) -> None: ... - def bundle(self, identifier: Any): ... - def serialize(self, destination: Optional[Any] = ..., format: str = ..., **args: Any): ... - @staticmethod - def deserialize(source: Optional[Any] = ..., content: Optional[Any] = ..., format: str = ..., **args: Any): ... - -def sorted_attributes(element: Any, attributes: Any): ... diff --git a/typeshed/prov/serializers/__init__.pyi b/typeshed/prov/serializers/__init__.pyi deleted file mode 100644 index ffddb709c..000000000 --- a/typeshed/prov/serializers/__init__.pyi +++ /dev/null @@ -1,21 +0,0 @@ -# Stubs for prov.serializers (Python 3.6) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from prov import Error -from typing import Any, Optional - -class Serializer: - document: Any = ... - def __init__(self, document: Optional[Any] = ...) -> None: ... - def serialize(self, stream: Any, **kwargs: Any) -> None: ... - def deserialize(self, stream: Any, **kwargs: Any) -> None: ... - -class DoNotExist(Error): ... - -class Registry: - serializers: Any = ... - @staticmethod - def load_serializers() -> None: ... - -def get(format_name: Any): ... diff --git a/typeshed/prov/serializers/provjson.pyi b/typeshed/prov/serializers/provjson.pyi deleted file mode 100644 index 9ae7c5d2c..000000000 --- a/typeshed/prov/serializers/provjson.pyi +++ /dev/null @@ -1,38 +0,0 @@ -# Stubs for prov.serializers.provjson (Python 3.6) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from prov.constants import * -import json -from prov.serializers import Error, Serializer -from typing import Any - -logger: Any -__email__: str - -class ProvJSONException(Error): ... - -class AnonymousIDGenerator: - def __init__(self) -> None: ... - def get_anon_id(self, obj: Any, local_prefix: str = ...): ... - -LITERAL_XSDTYPE_MAP: Any - -class ProvJSONSerializer(Serializer): - def serialize(self, stream: Any, **kwargs: Any) -> None: ... - def deserialize(self, stream: Any, **kwargs: Any): ... - -class ProvJSONEncoder(json.JSONEncoder): - def default(self, o: Any): ... - -class ProvJSONDecoder(json.JSONDecoder): - def decode(self, s: Any, *args: Any, **kwargs: Any): ... - -def valid_qualified_name(bundle: Any, value: Any): ... -def encode_json_document(document: Any): ... -def encode_json_container(bundle: Any): ... -def decode_json_document(content: Any, document: Any) -> None: ... -def decode_json_container(jc: Any, bundle: Any) -> None: ... -def encode_json_representation(value: Any): ... -def decode_json_representation(literal: Any, bundle: Any): ... -def literal_json_representation(literal: Any): ... diff --git a/typeshed/prov/serializers/provn.pyi b/typeshed/prov/serializers/provn.pyi deleted file mode 100644 index 31762b068..000000000 --- a/typeshed/prov/serializers/provn.pyi +++ /dev/null @@ -1,13 +0,0 @@ -# Stubs for prov.serializers.provn (Python 3.6) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from prov.serializers import Serializer -from typing import Any - -__email__: str -logger: Any - -class ProvNSerializer(Serializer): - def serialize(self, stream: Any, **kwargs: Any) -> None: ... - def deserialize(self, stream: Any, **kwargs: Any) -> None: ... diff --git a/typeshed/prov/serializers/provrdf.pyi b/typeshed/prov/serializers/provrdf.pyi deleted file mode 100644 index 9683a2e3f..000000000 --- a/typeshed/prov/serializers/provrdf.pyi +++ /dev/null @@ -1,34 +0,0 @@ -# Stubs for prov.serializers.provrdf (Python 3.6) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from prov.serializers import Error, Serializer -from typing import Any, Optional - -__email__: str - -class ProvRDFException(Error): ... - -class AnonymousIDGenerator: - def __init__(self) -> None: ... - def get_anon_id(self, obj: Any, local_prefix: str = ...): ... - -LITERAL_XSDTYPE_MAP: Any - -def attr2rdf(attr: Any): ... -def valid_qualified_name(bundle: Any, value: Any, xsd_qname: bool = ...): ... - -class ProvRDFSerializer(Serializer): - def serialize(self, stream: Optional[Any] = ..., rdf_format: str = ..., **kwargs: Any) -> None: ... - document: Any = ... - def deserialize(self, stream: Any, rdf_format: str = ..., **kwargs: Any): ... - def valid_identifier(self, value: Any): ... - def encode_rdf_representation(self, value: Any): ... - def decode_rdf_representation(self, literal: Any, graph: Any): ... - def encode_document(self, document: Any): ... - def encode_container(self, bundle: Any, container: Optional[Any] = ..., identifier: Optional[Any] = ...): ... - def decode_document(self, content: Any, document: Any) -> None: ... - def decode_container(self, graph: Any, bundle: Any) -> None: ... - -def walk(children: Any, level: int = ..., path: Optional[Any] = ..., usename: bool = ...): ... -def literal_rdf_representation(literal: Any): ... diff --git a/typeshed/prov/serializers/provxml.pyi b/typeshed/prov/serializers/provxml.pyi deleted file mode 100644 index bf95af4c5..000000000 --- a/typeshed/prov/serializers/provxml.pyi +++ /dev/null @@ -1,23 +0,0 @@ -# Stubs for prov.serializers.provxml (Python 3.6) -# -# NOTE: This dynamically typed stub was automatically generated by stubgen. - -from prov.constants import * -import prov.identifier -from typing import Any, Optional - -__email__: str -logger: Any -FULL_NAMES_MAP: Any -FULL_PROV_RECORD_IDS_MAP: Any -XML_XSD_URI: str - -class ProvXMLException(prov.Error): ... - -class ProvXMLSerializer(prov.serializers.Serializer): - def serialize(self, stream: Any, force_types: bool = ..., **kwargs: Any) -> None: ... - def serialize_bundle(self, bundle: Any, element: Optional[Any] = ..., force_types: bool = ...): ... - def deserialize(self, stream: Any, **kwargs: Any): ... - def deserialize_subtree(self, xml_doc: Any, bundle: Any): ... - -def xml_qname_to_QualifiedName(element: Any, qname_str: Any): ... diff --git a/typeshed/pydot.pyi b/typeshed/pydot.pyi deleted file mode 100644 index e836da853..000000000 --- a/typeshed/pydot.pyi +++ /dev/null @@ -1,135 +0,0 @@ -from typing import Any, List - -PY3: Any -str_type = str -GRAPH_ATTRIBUTES: Any -EDGE_ATTRIBUTES: Any -NODE_ATTRIBUTES: Any -CLUSTER_ATTRIBUTES: Any -DEFAULT_PROGRAMS: Any - -def is_windows() -> bool: ... -def is_anaconda() -> bool: ... -def get_executable_extension() -> str: ... -def call_graphviz(program, arguments, working_dir, **kwargs): ... - -class frozendict(dict): - __delitem__: Any - __setitem__: Any - clear: Any - pop: Any - popitem: Any - setdefault: Any - update: Any - def __new__(cls, *args, **kw): ... - def __init__(self, *args, **kw) -> None: ... - def __hash__(self): ... - -dot_keywords: Any -id_re_alpha_nums: Any -id_re_alpha_nums_with_ports: Any -id_re_num: Any -id_re_with_port: Any -id_re_dbl_quoted: Any -id_re_html: Any - -def needs_quotes(s): ... -def quote_if_necessary(s): ... -def graph_from_dot_data(s) -> List['Dot']: ... -def graph_from_dot_file(path, encoding: Any | None = ...): ... -def graph_from_edges(edge_list, node_prefix: str = ..., directed: bool = ...): ... -def graph_from_adjacency_matrix(matrix, node_prefix: str = ..., directed: bool = ...): ... -def graph_from_incidence_matrix(matrix, node_prefix: str = ..., directed: bool = ...): ... - -class Common: - def __get_attribute__(self, attr): ... - def set_parent_graph(self, parent_graph) -> None: ... - def get_parent_graph(self): ... - def set(self, name, value) -> None: ... - def get(self, name): ... - def get_attributes(self): ... - def set_sequence(self, seq) -> None: ... - def get_sequence(self): ... - def create_attribute_methods(self, obj_attributes: List[str]): ... - -class Error(Exception): - value: Any - def __init__(self, value) -> None: ... - -class InvocationException(Exception): - value: Any - def __init__(self, value) -> None: ... - -class Node(Common): - obj_dict: Any - def __init__(self, name: str = ..., obj_dict: Any | None = ..., **attrs) -> None: ... - def set_name(self, node_name) -> None: ... - def get_name(self): ... - def get_port(self): ... - def add_style(self, style) -> None: ... - def to_string(self) -> str: ... - -class Edge(Common): - obj_dict: Any - def __init__(self, src: str = ..., dst: str = ..., obj_dict: Any | None = ..., **attrs) -> None: ... - def get_source(self): ... - def get_destination(self): ... - def __hash__(self): ... - def __eq__(self, edge): ... - def parse_node_ref(self, node_str): ... - def to_string(self) -> str: ... - -class Graph(Common): - obj_dict: Any - def __init__(self, graph_name: str = ..., obj_dict: Any | None = ..., graph_type: str = ..., strict: bool = ..., suppress_disconnected: bool = ..., simplify: bool = ..., **attrs) -> None: ... - def get_graph_type(self): ... - def get_top_graph_type(self): ... - def set_graph_defaults(self, **attrs) -> None: ... - def get_graph_defaults(self, **attrs): ... - def set_node_defaults(self, **attrs) -> None: ... - def get_node_defaults(self, **attrs): ... - def set_edge_defaults(self, **attrs) -> None: ... - def get_edge_defaults(self, **attrs): ... - def set_simplify(self, simplify) -> None: ... - def get_simplify(self): ... - def set_type(self, graph_type) -> None: ... - def get_type(self): ... - def set_name(self, graph_name) -> None: ... - def get_name(self): ... - def set_strict(self, val) -> None: ... - def get_strict(self, val): ... - def set_suppress_disconnected(self, val) -> None: ... - def get_suppress_disconnected(self, val): ... - def get_next_sequence_number(self): ... - def add_node(self, graph_node) -> None: ... - def del_node(self, name, index: Any | None = ...): ... - def get_node(self, name): ... - def get_nodes(self): ... - def get_node_list(self): ... - def add_edge(self, graph_edge) -> None: ... - def del_edge(self, src_or_list, dst: Any | None = ..., index: Any | None = ...): ... - def get_edge(self, src_or_list, dst: Any | None = ...): ... - def get_edges(self): ... - def get_edge_list(self): ... - def add_subgraph(self, sgraph) -> None: ... - def get_subgraph(self, name): ... - def get_subgraphs(self): ... - def get_subgraph_list(self): ... - def set_parent_graph(self, parent_graph) -> None: ... - def to_string(self) -> str: ... - -class Subgraph(Graph): - def __init__(self, graph_name: str = ..., obj_dict: Any | None = ..., suppress_disconnected: bool = ..., simplify: bool = ..., **attrs) -> None: ... - -class Cluster(Graph): - def __init__(self, graph_name: str = ..., obj_dict: Any | None = ..., suppress_disconnected: bool = ..., simplify: bool = ..., **attrs) -> None: ... - -class Dot(Graph): - shape_files: Any - formats: Any - prog: str - def __init__(self, *argsl, **argsd): ... - def set_shape_files(self, file_paths) -> None: ... - def set_prog(self, prog) -> None: ... - def write(self, path, prog: Any | None = ..., format: str = ..., encoding: Any | None = ...): ... - def create(self, prog: Any | None = ..., format: str = ..., encoding: Any | None = ...): ... diff --git a/typeshed/rdflib/parser.pyi b/typeshed/rdflib/parser.pyi deleted file mode 100644 index bc786b165..000000000 --- a/typeshed/rdflib/parser.pyi +++ /dev/null @@ -1,27 +0,0 @@ -from typing import Any -from xml.sax import xmlreader - -class Parser: - def __init__(self) -> None: ... - def parse(self, source, sink) -> None: ... - -class InputSource(xmlreader.InputSource): - content_type: Any - auto_close: bool - def __init__(self, system_id: Any | None = ...) -> None: ... - def close(self) -> None: ... - -class StringInputSource(InputSource): - def __init__(self, value, system_id: Any | None = ...) -> None: ... - -class URLInputSource(InputSource): - url: Any - content_type: Any - response_info: Any - def __init__( - self, system_id: Any | None = ..., format: Any | None = ... - ) -> None: ... - -class FileInputSource(InputSource): - file: Any - def __init__(self, file) -> None: ... diff --git a/typeshed/rdflib/paths.pyi b/typeshed/rdflib/paths.pyi deleted file mode 100644 index 8858dcb3b..000000000 --- a/typeshed/rdflib/paths.pyi +++ /dev/null @@ -1,67 +0,0 @@ -from typing import Any, Callable, Union - -from rdflib.term import Node as Node -from rdflib.term import URIRef as URIRef - -ZeroOrMore: str -OneOrMore: str -ZeroOrOne: str - -class Path: - __or__: Callable[[Path, Union[URIRef, Path]], AlternativePath] - __invert__: Callable[[Path], InvPath] - __neg__: Callable[[Path], NegatedPath] - __truediv__: Callable[[Path, Union[URIRef, Path]], SequencePath] - __mul__: Callable[[Path, str], MulPath] - def eval(self, graph, subj: Any | None = ..., obj: Any | None = ...) -> None: ... - def __hash__(self): ... - def __eq__(self, other): ... - def __lt__(self, other): ... - def __le__(self, other): ... - def __ne__(self, other): ... - def __gt__(self, other): ... - def __ge__(self, other): ... - -class InvPath(Path): - arg: Any - def __init__(self, arg) -> None: ... - def eval(self, graph, subj: Any | None = ..., obj: Any | None = ...) -> None: ... - def n3(self): ... - -class SequencePath(Path): - args: Any - def __init__(self, *args) -> None: ... - def eval(self, graph, subj: Any | None = ..., obj: Any | None = ...): ... - def n3(self): ... - -class AlternativePath(Path): - args: Any - def __init__(self, *args) -> None: ... - def eval(self, graph, subj: Any | None = ..., obj: Any | None = ...) -> None: ... - def n3(self): ... - -class MulPath(Path): - path: Any - mod: Any - zero: bool - more: bool - def __init__(self, path, mod) -> None: ... - def eval( - self, graph, subj: Any | None = ..., obj: Any | None = ..., first: bool = ... - ) -> None: ... - def n3(self): ... - -class NegatedPath(Path): - args: Any - def __init__(self, arg) -> None: ... - def eval(self, graph, subj: Any | None = ..., obj: Any | None = ...) -> None: ... - def n3(self): ... - -class PathList(list): ... - -def path_alternative(self, other): ... -def path_sequence(self, other): ... -def evalPath(graph, t): ... -def mul_path(p, mul): ... -def inv_path(p): ... -def neg_path(p): ... diff --git a/typeshed/rdflib/plugin.pyi b/typeshed/rdflib/plugin.pyi deleted file mode 100644 index fbd2810fb..000000000 --- a/typeshed/rdflib/plugin.pyi +++ /dev/null @@ -1,27 +0,0 @@ -from typing import Any, Type, TypeVar - -from rdflib.exceptions import Error - -class PluginException(Error): ... - -class Plugin: - name: Any - kind: Any - module_path: Any - class_name: Any - def __init__(self, name, kind, module_path, class_name) -> None: ... - def getClass(self): ... - -class PKGPlugin(Plugin): - name: Any - kind: Any - ep: Any - def __init__(self, name, kind, ep) -> None: ... - def getClass(self): ... - -def register(name: str, kind, module_path, class_name): ... - -PluginT = TypeVar("PluginT") - -def get(name: str, kind: Type[PluginT]) -> Type[PluginT]: ... -def plugins(name: Any | None = ..., kind: Any | None = ...) -> None: ... diff --git a/typeshed/rdflib/query.pyi b/typeshed/rdflib/query.pyi deleted file mode 100644 index e9cd37a56..000000000 --- a/typeshed/rdflib/query.pyi +++ /dev/null @@ -1,62 +0,0 @@ -from io import BufferedIOBase -from typing import Any, Optional, Union - -class Processor: - def __init__(self, graph) -> None: ... - def query( - self, strOrQuery, initBindings=..., initNs=..., DEBUG: bool = ... - ) -> None: ... - -class UpdateProcessor: - def __init__(self, graph) -> None: ... - def update(self, strOrQuery, initBindings=..., initNs=...) -> None: ... - -class ResultException(Exception): ... - -class EncodeOnlyUnicode: - def __init__(self, stream) -> None: ... - def write(self, arg) -> None: ... - def __getattr__(self, name): ... - -class ResultRow(tuple): - def __new__(cls, values, labels): ... - def __getattr__(self, name): ... - def __getitem__(self, name): ... - def get(self, name, default: Any | None = ...): ... - def asdict(self): ... - -class Result: - type: Any - vars: Any - askAnswer: Any - graph: Any - def __init__(self, type_) -> None: ... - bindings: Any - @staticmethod - def parse( - source: Any | None = ..., - format: Any | None = ..., - content_type: Any | None = ..., - **kwargs - ): ... - def serialize( - self, - destination: Optional[Union[str, BufferedIOBase]] = ..., - encoding: str = ..., - format: str = ..., - **args - ) -> Optional[bytes]: ... - def __len__(self): ... - def __bool__(self): ... - def __iter__(self): ... - def __getattr__(self, name): ... - def __eq__(self, other): ... - -class ResultParser: - def __init__(self) -> None: ... - def parse(self, source, **kwargs) -> None: ... - -class ResultSerializer: - result: Any - def __init__(self, result) -> None: ... - def serialize(self, stream, encoding: str = ..., **kwargs) -> None: ... diff --git a/typeshed/rdflib/term.pyi b/typeshed/rdflib/term.pyi deleted file mode 100644 index 2bc8e40ca..000000000 --- a/typeshed/rdflib/term.pyi +++ /dev/null @@ -1,98 +0,0 @@ -from typing import Any, Callable, Union - -from .paths import AlternativePath, InvPath, NegatedPath, Path, SequencePath - -class Node: ... - -class Identifier(Node, str): - def __new__(cls, value): ... - def eq(self, other): ... - def neq(self, other): ... - def __ne__(self, other): ... - def __eq__(self, other): ... - def __gt__(self, other): ... - def __lt__(self, other): ... - def __le__(self, other): ... - def __ge__(self, other): ... - def startswith(self, prefix, start=..., end=...) -> bool: ... - __hash__: Any - -class URIRef(Identifier): - __or__: Callable[[URIRef, Union[URIRef, Path]], AlternativePath] - __invert__: Callable[[URIRef], InvPath] - __neg__: Callable[[URIRef], NegatedPath] - __truediv__: Callable[[URIRef, Union[URIRef, Path]], SequencePath] - def __new__(cls, value, base: Any | None = ...): ... - def toPython(self): ... - def n3(self, namespace_manager: Any | None = ...) -> str: ... - def defrag(self): ... - def __reduce__(self): ... - def __getnewargs__(self): ... - def __add__(self, other): ... - def __radd__(self, other): ... - def __mod__(self, other): ... - def de_skolemize(self): ... - -class Genid(URIRef): ... -class RDFLibGenid(Genid): ... - -class BNode(Identifier): - def __new__(cls, value: Any | None = ..., _sn_gen=..., _prefix=...): ... - def toPython(self): ... - def n3(self, namespace_manager: Any | None = ...): ... - def __getnewargs__(self): ... - def __reduce__(self): ... - def skolemize(self, authority: Any | None = ..., basepath: Any | None = ...): ... - -class Literal(Identifier): - __doc__: str - def __new__( - cls, - lexical_or_value, - lang: Any | None = ..., - datatype: Any | None = ..., - normalize: Any | None = ..., - ): ... - def normalize(self): ... - @property - def value(self): ... - @property - def language(self): ... - @property - def datatype(self): ... - def __reduce__(self): ... - def __add__(self, val): ... - def __bool__(self): ... - def __neg__(self): ... - def __pos__(self): ... - def __abs__(self): ... - def __invert__(self): ... - def __gt__(self, other): ... - def __lt__(self, other): ... - def __le__(self, other): ... - def __ge__(self, other): ... - def __hash__(self): ... - def __eq__(self, other): ... - def eq(self, other): ... - def neq(self, other): ... - def n3(self, namespace_manager: Any | None = ...): ... - def toPython(self): ... - -def bind( - datatype, - pythontype, - constructor: Any | None = ..., - lexicalizer: Any | None = ..., - datatype_specific: bool = ..., -) -> None: ... - -class Variable(Identifier): - def __new__(cls, value): ... - def toPython(self): ... - def n3(self, namespace_manager: Any | None = ...): ... - def __reduce__(self): ... - -class Statement(Node, tuple): - def __new__(cls, triple, context): ... - def __reduce__(self): ... - def toPython(self): ...