uiprotect 7.21.0__py3-none-any.whl → 7.21.1__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.
Potentially problematic release.
This version of uiprotect might be problematic. Click here for more details.
- uiprotect/test_util/anonymize.py +2 -3
- {uiprotect-7.21.0.dist-info → uiprotect-7.21.1.dist-info}/METADATA +1 -1
- {uiprotect-7.21.0.dist-info → uiprotect-7.21.1.dist-info}/RECORD +6 -6
- {uiprotect-7.21.0.dist-info → uiprotect-7.21.1.dist-info}/LICENSE +0 -0
- {uiprotect-7.21.0.dist-info → uiprotect-7.21.1.dist-info}/WHEEL +0 -0
- {uiprotect-7.21.0.dist-info → uiprotect-7.21.1.dist-info}/entry_points.txt +0 -0
uiprotect/test_util/anonymize.py
CHANGED
|
@@ -3,11 +3,10 @@ from __future__ import annotations
|
|
|
3
3
|
import secrets
|
|
4
4
|
import string
|
|
5
5
|
import uuid
|
|
6
|
+
import warnings
|
|
6
7
|
from typing import Any
|
|
7
8
|
from urllib.parse import urlparse
|
|
8
9
|
|
|
9
|
-
import typer
|
|
10
|
-
|
|
11
10
|
from ..data import ModelType
|
|
12
11
|
|
|
13
12
|
object_id_mapping: dict[str, str] = {}
|
|
@@ -111,7 +110,7 @@ def anonymize_dict(obj: dict[str, Any], name: str | None = None) -> dict[str, An
|
|
|
111
110
|
if obj["modelKey"] in [m.value for m in ModelType]:
|
|
112
111
|
obj_type = ModelType(obj["modelKey"])
|
|
113
112
|
else:
|
|
114
|
-
|
|
113
|
+
warnings.warn(f"Unknown modelKey: {obj['modelKey']}", stacklevel=2)
|
|
115
114
|
|
|
116
115
|
if obj_type == ModelType.USER:
|
|
117
116
|
return anonymize_user(obj)
|
|
@@ -29,11 +29,11 @@ uiprotect/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
29
29
|
uiprotect/release_cache.json,sha256=NamnSFy78hOWY0DPO87J9ELFCAN6NnVquv8gQO75ZG4,386
|
|
30
30
|
uiprotect/stream.py,sha256=ls65vMOXF4IlJ5axewFITfhcaTh_ihaFeCkCTfhy0Nk,5168
|
|
31
31
|
uiprotect/test_util/__init__.py,sha256=O22HGFX5Mb0j9LPzO48tm4ZqZTqGVBHo0jnye2FdT_I,19803
|
|
32
|
-
uiprotect/test_util/anonymize.py,sha256=
|
|
32
|
+
uiprotect/test_util/anonymize.py,sha256=3YG56B6bJcjrfZLWPfmPNlePr88NTvftTvigvPEMxks,8483
|
|
33
33
|
uiprotect/utils.py,sha256=4EIblOcOxlApiXkI2rwram4SkgiMu_JTDRIZOul83Bc,20749
|
|
34
34
|
uiprotect/websocket.py,sha256=BedfEVLWhiTP5Il4ULerw2cUNGlr2OLyb_91QOh3iSs,8176
|
|
35
|
-
uiprotect-7.21.
|
|
36
|
-
uiprotect-7.21.
|
|
37
|
-
uiprotect-7.21.
|
|
38
|
-
uiprotect-7.21.
|
|
39
|
-
uiprotect-7.21.
|
|
35
|
+
uiprotect-7.21.1.dist-info/LICENSE,sha256=INx18jhdbVXMEiiBANeKEbrbz57ckgzxk5uutmmcxGk,1111
|
|
36
|
+
uiprotect-7.21.1.dist-info/METADATA,sha256=NnrgES3bAbCCgLmYPjSTlg0M0v25syizik4C7yBXmIY,11167
|
|
37
|
+
uiprotect-7.21.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
38
|
+
uiprotect-7.21.1.dist-info/entry_points.txt,sha256=J78AUTPrTTxgI3s7SVgrmGqDP7piX2wuuEORzhDdVRA,47
|
|
39
|
+
uiprotect-7.21.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|