From 3531bb91a3c6e9f1967bb5c3f2445829a7cf9331 Mon Sep 17 00:00:00 2001 From: rlskoeser Date: Fri, 8 Nov 2024 17:43:15 -0500 Subject: [PATCH] Clean up items flagged by ruff check --- examples/notebooks/edtf-support.ipynb | 6 +----- src/undate/__init__.py | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/examples/notebooks/edtf-support.ipynb b/examples/notebooks/edtf-support.ipynb index 70c29e2..880808c 100644 --- a/examples/notebooks/edtf-support.ipynb +++ b/examples/notebooks/edtf-support.ipynb @@ -164,8 +164,6 @@ "metadata": {}, "outputs": [], "source": [ - "from undate.undate import UndateInterval\n", - "\n", "# Example 1\n", "year_range = Undate.parse(\"1964/2008\", \"EDTF\")\n", "assert isinstance(year_range, UndateInterval)\n", @@ -214,13 +212,11 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 16, "id": "8d98a139-627b-40bd-b1c5-d0028e538a53", "metadata": {}, "outputs": [], "source": [ - "from undate.undate import UndateInterval\n", - "\n", "# Example 1\n", "assert UndateInterval(Undate(1964), Undate(2008)).format(\"EDTF\") == \"1964/2008\"\n", "# Example 2\n", diff --git a/src/undate/__init__.py b/src/undate/__init__.py index 588ef83..9f82cb5 100644 --- a/src/undate/__init__.py +++ b/src/undate/__init__.py @@ -1,4 +1,6 @@ __version__ = "0.3.0.dev0" -from undate.undate import Undate, UndateInterval from undate.date import DatePrecision +from undate.undate import Undate, UndateInterval + +__all__ = ["Undate", "UndateInterval", "DatePrecision"]