From 461d6ef91e3f3b00fac068e094354641ae4c67f5 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 8 Jun 2023 19:28:56 -0700 Subject: [PATCH] Persistent should be a type. --- examples/reminder/reminder.py | 3 ++- src/pyutils/parallelize/executors.py | 11 ++--------- src/pyutils/{ => typez}/persistent.py | 0 3 files changed, 4 insertions(+), 10 deletions(-) rename src/pyutils/{ => typez}/persistent.py (100%) diff --git a/examples/reminder/reminder.py b/examples/reminder/reminder.py index f2ea267..ff4aa2c 100755 --- a/examples/reminder/reminder.py +++ b/examples/reminder/reminder.py @@ -12,10 +12,11 @@ import sys from collections import defaultdict from typing import Dict, List, Optional -from pyutils import argparse_utils, bootstrap, config, persistent, string_utils +from pyutils import argparse_utils, bootstrap, config, string_utils from pyutils.ansi import fg, reset from pyutils.datetimes import dateparse_utils as dateparse from pyutils.files import file_utils +from pyutils.typez import persistent logger = logging.getLogger(__name__) cfg = config.add_commandline_args( diff --git a/src/pyutils/parallelize/executors.py b/src/pyutils/parallelize/executors.py index 04d6a80..1519119 100644 --- a/src/pyutils/parallelize/executors.py +++ b/src/pyutils/parallelize/executors.py @@ -58,19 +58,12 @@ import cloudpickle # type: ignore from overrides import overrides import pyutils.typez.histogram as hist -from pyutils import ( - argparse_utils, - config, - dataclass_utils, - math_utils, - persistent, - string_utils, -) +from pyutils import argparse_utils, config, dataclass_utils, math_utils, string_utils from pyutils.ansi import bg, fg, reset, underline from pyutils.decorator_utils import singleton from pyutils.exec_utils import cmd_exitcode, cmd_in_background, run_silently from pyutils.parallelize.thread_utils import background_thread -from pyutils.typez import type_utils +from pyutils.typez import persistent, type_utils logger = logging.getLogger(__name__) diff --git a/src/pyutils/persistent.py b/src/pyutils/typez/persistent.py similarity index 100% rename from src/pyutils/persistent.py rename to src/pyutils/typez/persistent.py -- 2.46.0