From 91deca6ac4b06c0db7b7e90866be429f8739c6e6 Mon Sep 17 00:00:00 2001 From: RitikShah Date: Mon, 10 Apr 2023 22:07:03 -0700 Subject: [PATCH] fix: add `py.typed` + `__all__` for typing --- github_action_utils.py | 30 ++++++++++++++++++++++++++++++ py.typed | 0 2 files changed, 30 insertions(+) create mode 100644 py.typed diff --git a/github_action_utils.py b/github_action_utils.py index eaa0291..4d2f98a 100644 --- a/github_action_utils.py +++ b/github_action_utils.py @@ -8,6 +8,36 @@ from typing import Any, Dict, Generator, Union from warnings import warn +__all__ = [ + "CommandTypes", + "LogCommandTypes", + "set_output", + "echo", + "debug", + "notice", + "warning", + "error", + "save_state", + "get_state", + "get_user_input", + "start_group", + "end_group", + "group", + "add_mask", + "begin_stop_commands", + "end_stop_commands", + "stop_commands", + "set_env", + "get_workflow_environment_variables", + "get_env", + "append_job_summary", + "overwrite_job_summary", + "remove_job_summary", + "add_system_path", + "event_payload", +] + + if sys.version_info >= (3, 8): from typing import Literal diff --git a/py.typed b/py.typed new file mode 100644 index 0000000..e69de29