From: Scott Gasch Date: Fri, 9 Jun 2023 02:28:56 +0000 (-0700) Subject: Persistent should be a type. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=461d6ef91e3f3b00fac068e094354641ae4c67f5;p=pyutils.git Persistent should be a type. --- 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