misc: Add type hints, cleanup

Add some type hints to the misc module, and remove the unused
silentremove functionality. Also, make the jwutils facade follow the
move.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-06-16 07:41:08 +02:00 • committed by janware DevOps
commit 7bfe80a761
Signed by: DevOps
SSH key fingerprint: SHA256:cZiw7ExG5q3KAVm7Jse3rGITowu0VjgUgNMPbifmY8g
2 changed files with 64 additions and 54 deletions

View file

@ -32,7 +32,6 @@ from .log import remove_from_prefix as remove_from_prefix
from .log import set_filename_length as set_filename_length
from .log import set_module_name_length as set_module_name_length
from .log import add_log_file as add_log_file
from .misc import silentremove as silentremove
from .misc import atomic_store as atomic_store
from .misc import object_builtin_name as object_builtin_name
from .misc import get_derived_classes as get_derived_classes

View file

@ -1,5 +1,4 @@
# ruff: noqa: E501
from jw.util.misc import silentremove as silentremove
from jw.util.misc import atomic_store as atomic_store
from jw.util.misc import object_builtin_name as object_builtin_name
from jw.util.misc import get_derived_classes as get_derived_classes
@ -13,7 +12,6 @@ from jw.util.misc import multi_regex_edit as multi_regex_edit
from jw.util.misc import dump as dump
__all__ = [
"silentremove",
"atomic_store",
"object_builtin_name",
"get_derived_classes",