stouputils 1.19.1__py3-none-any.whl → 1.19.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- stouputils/decorators.py +1 -4
- stouputils/decorators.pyi +1 -1
- stouputils/typing.py +2 -2
- stouputils/typing.pyi +1 -1
- {stouputils-1.19.1.dist-info → stouputils-1.19.2.dist-info}/METADATA +1 -1
- {stouputils-1.19.1.dist-info → stouputils-1.19.2.dist-info}/RECORD +8 -8
- {stouputils-1.19.1.dist-info → stouputils-1.19.2.dist-info}/WHEEL +0 -0
- {stouputils-1.19.1.dist-info → stouputils-1.19.2.dist-info}/entry_points.txt +0 -0
stouputils/decorators.py
CHANGED
|
@@ -619,15 +619,12 @@ def _get_wrapper_name(decorator_name: str, func: Callable[..., Any]) -> str:
|
|
|
619
619
|
|
|
620
620
|
|
|
621
621
|
def _set_wrapper_name(wrapper: Callable[..., Any], name: str) -> None:
|
|
622
|
-
""" Set the wrapper function's visible name
|
|
622
|
+
""" Set the wrapper function's visible name (code object name) for clearer tracebacks.
|
|
623
623
|
|
|
624
624
|
Args:
|
|
625
625
|
wrapper (Callable[..., Any]): Wrapper function to update
|
|
626
626
|
name (str): New name to set
|
|
627
627
|
"""
|
|
628
|
-
# __name__ affects repr and some introspection
|
|
629
|
-
wrapper.__name__ = name
|
|
630
|
-
|
|
631
628
|
# Update the code object's co_name so tracebacks show the new name
|
|
632
629
|
try:
|
|
633
630
|
wrapper.__code__ = wrapper.__code__.replace(co_name=name)
|
stouputils/decorators.pyi
CHANGED
|
@@ -251,7 +251,7 @@ def _get_wrapper_name(decorator_name: str, func: Callable[..., Any]) -> str:
|
|
|
251
251
|
\t\tstr: Combined name for the wrapper function (e.g., "stouputils.decorators.handle_error@function_name")
|
|
252
252
|
\t'''
|
|
253
253
|
def _set_wrapper_name(wrapper: Callable[..., Any], name: str) -> None:
|
|
254
|
-
""" Set the wrapper function's visible name
|
|
254
|
+
""" Set the wrapper function's visible name (code object name) for clearer tracebacks.
|
|
255
255
|
|
|
256
256
|
\tArgs:
|
|
257
257
|
\t\twrapper\t(Callable[..., Any]):\tWrapper function to update
|
stouputils/typing.py
CHANGED
|
@@ -3,7 +3,7 @@ This module provides utilities for typing enhancements such as JSON type aliases
|
|
|
3
3
|
- JsonDict
|
|
4
4
|
- JsonList
|
|
5
5
|
- JsonMap
|
|
6
|
-
-
|
|
6
|
+
- JsonMutMap
|
|
7
7
|
- IterAny
|
|
8
8
|
"""
|
|
9
9
|
|
|
@@ -19,7 +19,7 @@ JsonList = list[Any]
|
|
|
19
19
|
""" A type alias for JSON lists """
|
|
20
20
|
JsonMap = Mapping[str, Any]
|
|
21
21
|
""" A type alias for JSON mapping """
|
|
22
|
-
|
|
22
|
+
JsonMutMap = MutableMapping[str, Any]
|
|
23
23
|
""" A type alias for mutable JSON mapping """
|
|
24
24
|
IterAny = Iterable[Any]
|
|
25
25
|
""" A type alias for iterable of any type """
|
stouputils/typing.pyi
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: stouputils
|
|
3
|
-
Version: 1.19.
|
|
3
|
+
Version: 1.19.2
|
|
4
4
|
Summary: Stouputils is a collection of utility modules designed to simplify and enhance the development process. It includes a range of tools for tasks such as execution of doctests, display utilities, decorators, as well as context managers, and many more.
|
|
5
5
|
Keywords: utilities,tools,helpers,development,python
|
|
6
6
|
Author: Stoupy51
|
|
@@ -109,8 +109,8 @@ stouputils/data_science/scripts/exhaustive_process.py,sha256=Dc5gceIlIiP8U0m1qt3
|
|
|
109
109
|
stouputils/data_science/scripts/preprocess_dataset.py,sha256=OLC2KjEtSMeyHHPpNOATfNDuq0lZ09utKhsuzBA4MN4,2929
|
|
110
110
|
stouputils/data_science/scripts/routine.py,sha256=FkTLzmcdm_qUp69D-dPAKJm2RfXZZLtPgje6lEopu2I,7662
|
|
111
111
|
stouputils/data_science/utils.py,sha256=HFXI2RQZ53RbBOn_4Act2bi0z4xQlTtsuR5Am80v9JU,11084
|
|
112
|
-
stouputils/decorators.py,sha256=
|
|
113
|
-
stouputils/decorators.pyi,sha256=
|
|
112
|
+
stouputils/decorators.py,sha256=rr0CoxFGmcZdk0si8WBpS_Zhw2OlEDbeseLzPzBKLQs,22440
|
|
113
|
+
stouputils/decorators.pyi,sha256=IFevgctRPIJU2GHoc-yIE2-8CSa8MDTZ2NsILWun1wo,11237
|
|
114
114
|
stouputils/image.py,sha256=E6RYfLhE19KGxn9VdgPCTYXVmOUNK8Qe3RrwSp9OiPs,16479
|
|
115
115
|
stouputils/image.pyi,sha256=bGbNTG4piQ2PCLFqZCE360O8yE635cKX94SGK0aHNJ8,8311
|
|
116
116
|
stouputils/installer/__init__.py,sha256=DBwI9w3xvw0NR_jDMxmURwPi1F79kPLe7EuNjmrxW_U,502
|
|
@@ -152,11 +152,11 @@ stouputils/parallel/subprocess.pyi,sha256=gzRtpTslvoENLtSNk79fe3Xz8lV3IwuopT9uMH
|
|
|
152
152
|
stouputils/print.py,sha256=86Qjyyj_riU7w3RQdYIHTlPVICUzKsfEBF6NBwZc20g,26745
|
|
153
153
|
stouputils/print.pyi,sha256=qu7Pr1c6let2fLcBvbfrrcfCg0s3rf_1jD8FDhR1bgk,11188
|
|
154
154
|
stouputils/py.typed,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
155
|
-
stouputils/typing.py,sha256=
|
|
156
|
-
stouputils/typing.pyi,sha256=
|
|
155
|
+
stouputils/typing.py,sha256=9sj6-_lW9pyQFmxW2K1SinGCy7IWeRouUfWjPU2qDsk,2205
|
|
156
|
+
stouputils/typing.pyi,sha256=XRKhGA7jWjcE-DtS2UznevBxBIFqj8IZI8-J48_3GQc,1341
|
|
157
157
|
stouputils/version_pkg.py,sha256=Jsp-s03L14DkiZ94vQgrlQmaxApfn9DC8M_nzT1SJLk,7014
|
|
158
158
|
stouputils/version_pkg.pyi,sha256=QPvqp1U3QA-9C_CC1dT9Vahv1hXEhstbM7x5uzMZSsQ,755
|
|
159
|
-
stouputils-1.19.
|
|
160
|
-
stouputils-1.19.
|
|
161
|
-
stouputils-1.19.
|
|
162
|
-
stouputils-1.19.
|
|
159
|
+
stouputils-1.19.2.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
|
|
160
|
+
stouputils-1.19.2.dist-info/entry_points.txt,sha256=tx0z9VOnE-sfkmbFbA93zaBMzV3XSsKEJa_BWIqUzxw,57
|
|
161
|
+
stouputils-1.19.2.dist-info/METADATA,sha256=4YSIMD11_I4XpSiMxVPHJYFCSNflyjXIn_DIRkBSBwo,13931
|
|
162
|
+
stouputils-1.19.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|