From 0d9f3b1ef3804b128bf4c9547e17ea5a54158174 Mon Sep 17 00:00:00 2001 From: Colin Watson <cjwatson@canonical.com> Date: Tue, 16 Nov 2021 21:15:36 +0000 Subject: [PATCH] Declare public API names `mypy --strict` enforces these by default. --- craft_cli/errors.py | 4 ++++ craft_cli/messages.py | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/craft_cli/errors.py b/craft_cli/errors.py index 102a328..fed1d7e 100644 --- a/craft_cli/errors.py +++ b/craft_cli/errors.py @@ -16,6 +16,10 @@ """Error classes.""" +__all__ = [ + "CraftError", +] + from typing import Optional diff --git a/craft_cli/messages.py b/craft_cli/messages.py index 3b37acd..8307a81 100644 --- a/craft_cli/messages.py +++ b/craft_cli/messages.py @@ -16,6 +16,12 @@ """Support for all messages, ok or after errors, to screen and log file.""" +__all__ = [ + "EmitterMode", + "TESTMODE", + "emit", +] + import enum import itertools import logging