From 256a7053c65f97875f9467667d579f1f0cef9498 Mon Sep 17 00:00:00 2001 From: "C. Titus Brown" Date: Mon, 25 Sep 2023 10:25:50 -0700 Subject: [PATCH] MRG: add `__all__` to `sig/__main__.py` (#2778) This change limits what is imported with `from sourmash.sig.__main__ import *`. Fixes https://github.com/sourmash-bio/sourmash/issues/2714 --- src/sourmash/sig/__main__.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/sourmash/sig/__main__.py b/src/sourmash/sig/__main__.py index 48addfe1e4..809b00ab78 100644 --- a/src/sourmash/sig/__main__.py +++ b/src/sourmash/sig/__main__.py @@ -1,6 +1,27 @@ """ Command-line entry point for 'python -m sourmash.sig' """ +__all__ = ["cat", + "split", + "describe", + "manifest", + "overlap", + "merge", + "intersect", + "inflate", + "subtract", + "rename", + "extract", + "filter", + "flatten", + "downsample", + "sig_import", + "export", + "kmers", + "fileinfo", + "check", + "collect"] + import sys import csv import json