From d493cea22138298ceb067243a9a50f4012719b02 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 9 Mar 2021 16:04:58 -0500 Subject: [PATCH] chore: support version in mypy (#524) --- setup.cfg | 3 --- src/boost_histogram/version.pyi | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 src/boost_histogram/version.pyi diff --git a/setup.cfg b/setup.cfg index ab88e429..116e27c9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -99,9 +99,6 @@ warn_return_any = True no_implicit_reexport = True strict_equality = True -[mypy-boost_histogram.version] -ignore_missing_imports = True - [check-manifest] ignore = .all-contributorsrc diff --git a/src/boost_histogram/version.pyi b/src/boost_histogram/version.pyi new file mode 100644 index 00000000..5bb2b22f --- /dev/null +++ b/src/boost_histogram/version.pyi @@ -0,0 +1,2 @@ +version: str +version_tuple: tuple[int, int, int] | tuple[int, int, int, str, str]