soia-client 1.1.0__py3-none-any.whl → 1.1.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.
- soia/_impl/structs.py +3 -3
- {soia_client-1.1.0.dist-info → soia_client-1.1.1.dist-info}/METADATA +1 -1
- {soia_client-1.1.0.dist-info → soia_client-1.1.1.dist-info}/RECORD +6 -6
- {soia_client-1.1.0.dist-info → soia_client-1.1.1.dist-info}/WHEEL +0 -0
- {soia_client-1.1.0.dist-info → soia_client-1.1.1.dist-info}/licenses/LICENSE +0 -0
- {soia_client-1.1.0.dist-info → soia_client-1.1.1.dist-info}/top_level.txt +0 -0
soia/_impl/structs.py
CHANGED
|
@@ -429,7 +429,7 @@ def _make_replace_method(
|
|
|
429
429
|
"""
|
|
430
430
|
|
|
431
431
|
keep_local = Expr.local("KEEP", KEEP)
|
|
432
|
-
params: Params = []
|
|
432
|
+
params: Params = ["_self"]
|
|
433
433
|
if fields:
|
|
434
434
|
params.append("*")
|
|
435
435
|
params.extend(
|
|
@@ -442,7 +442,7 @@ def _make_replace_method(
|
|
|
442
442
|
|
|
443
443
|
def field_to_arg_assigment(attr: str) -> LineSpan:
|
|
444
444
|
return LineSpan.join(
|
|
445
|
-
f"{attr}=
|
|
445
|
+
f"{attr}=_self.{attr} if {attr} is ", keep_local, f" else {attr}"
|
|
446
446
|
)
|
|
447
447
|
|
|
448
448
|
builder = BodyBuilder()
|
|
@@ -458,7 +458,7 @@ def _make_replace_method(
|
|
|
458
458
|
)
|
|
459
459
|
|
|
460
460
|
return make_function(
|
|
461
|
-
name="
|
|
461
|
+
name="replace",
|
|
462
462
|
params=params,
|
|
463
463
|
body=builder.build(),
|
|
464
464
|
)
|
|
@@ -17,11 +17,11 @@ soia/_impl/serializer.py,sha256=28IwkjtUnLpbnPQfVNfJXkApCK4JhXHwLkC5MVhF8xo,3529
|
|
|
17
17
|
soia/_impl/serializers.py,sha256=IL9jHHMo11pgrL1-crarOEElvTyV5YM6FTcgumjW6IU,2564
|
|
18
18
|
soia/_impl/service.py,sha256=3dpcH4XEBTEShyjzxMA_zDGg9_amTFF5A49U6hivAdQ,14792
|
|
19
19
|
soia/_impl/service_client.py,sha256=0WgiN6Stg548FAdZQMuezZoooe4MYw2frEQ5KUE7xag,5311
|
|
20
|
-
soia/_impl/structs.py,sha256=
|
|
20
|
+
soia/_impl/structs.py,sha256=1XhjZmqtD7IMURdSVR0DwMdrIhWPZft1eCfwVW84c0E,28230
|
|
21
21
|
soia/_impl/timestamp.py,sha256=upnEkvW-7AaMJ9_nNqntvhJ4pFWWCAXNjEOPtszdwgE,5645
|
|
22
22
|
soia/_impl/type_adapter.py,sha256=RyIyh4Fnt9rMy0HRzC-a2v2JAdZsV9FBzoGEUVygVRE,2101
|
|
23
|
-
soia_client-1.1.
|
|
24
|
-
soia_client-1.1.
|
|
25
|
-
soia_client-1.1.
|
|
26
|
-
soia_client-1.1.
|
|
27
|
-
soia_client-1.1.
|
|
23
|
+
soia_client-1.1.1.dist-info/licenses/LICENSE,sha256=SaAftKkX6hfSOiPdENQPS70tifH3PDHgazq8eK2Pwfw,1064
|
|
24
|
+
soia_client-1.1.1.dist-info/METADATA,sha256=WqVO1QsXh3w0mjkhuPC71WcCWlwSOnKeAX40_Mt2zFU,2121
|
|
25
|
+
soia_client-1.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
26
|
+
soia_client-1.1.1.dist-info/top_level.txt,sha256=lsYG9JrvauFe1oIV5zvnwsS9hsx3ztwfK_937op9mxc,5
|
|
27
|
+
soia_client-1.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|