soia-client 1.0.9__py3-none-any.whl → 1.0.10__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 soia-client might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soia-client
3
- Version: 1.0.9
3
+ Version: 1.0.10
4
4
  Author-email: Tyler Fibonacci <gepheum@gmail.com>
5
5
  License: MIT License
6
6
 
@@ -1,4 +1,4 @@
1
- soia_client-1.0.9.dist-info/licenses/LICENSE,sha256=SaAftKkX6hfSOiPdENQPS70tifH3PDHgazq8eK2Pwfw,1064
1
+ soia_client-1.0.10.dist-info/licenses/LICENSE,sha256=SaAftKkX6hfSOiPdENQPS70tifH3PDHgazq8eK2Pwfw,1064
2
2
  soialib/__init__.py,sha256=h_ENkLJEdrh1mGhCoKgIadDasSulW3zK9_qhEsTviXY,429
3
3
  soialib/keyed_items.py,sha256=q7MCn82obf-0jh7FcAhuw4eh9-wtuHIpkEFcSfc8EaY,338
4
4
  soialib/method.py,sha256=2qWG4jMqYhS3hA8y8YDu3iqzhXA_AKebpB38RWNmsYQ,452
@@ -9,15 +9,15 @@ soialib/serializers.py,sha256=vNLNsfuu6dF0ivJF6v7wQj5Yr6uo2kZHXG5tMrYiVTA,2564
9
9
  soialib/spec.py,sha256=w-eMMUqOchOlCJaXppyAa2JpSBrMo9lrMvqz8VaEX4I,3699
10
10
  soialib/timestamp.py,sha256=lXBNH8mPmzflkNjSKZSBl2XS-ot9N8N92B_zGO2SMtU,4078
11
11
  soialib/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- soialib/impl/arrays.py,sha256=4p-4FoM_hrQfwSIF1KmYGjJyP6SGyV7rD_L7D46d9Z4,4863
12
+ soialib/impl/arrays.py,sha256=fghIo1Uhn0wx-b4IjZVOqqPyKHI0KmcAfboNhCdzAi0,4871
13
13
  soialib/impl/enums.py,sha256=kSH0Puub0pZJ4hAVw52y0ktDX1IkHpPan3IDp6OHIIs,15990
14
14
  soialib/impl/function_maker.py,sha256=MvCDv1WwzKGJzZbNCnJ_8-MP3m1xTIabumXA-9Ydd9M,5639
15
15
  soialib/impl/optionals.py,sha256=pWuhfTIYM7669Rko-oVlBhHLqO3vgASW7fL0Yos3AWM,2076
16
16
  soialib/impl/primitives.py,sha256=AHMVvs3BWvPfggsdFnY5dwwqAwiNVFYJa_rJ-WjMJfk,7424
17
17
  soialib/impl/repr.py,sha256=7WX0bEAVENTjlyZIcbT8TcJylS7IRIyafGCmqaIMxFM,1413
18
- soialib/impl/structs.py,sha256=GKTw6p_HasS9E520l74QFldIjUhjxM8sm4poPnR7fFg,25539
18
+ soialib/impl/structs.py,sha256=g__J0w6FAteHW2ZF69yuhZGNfm5-XCorBQW_T1r3PCg,25621
19
19
  soialib/impl/type_adapter.py,sha256=e72nBDqOP0uWNY10EtG7qOvRTzujA-LUVA30Ff7eeac,1935
20
- soia_client-1.0.9.dist-info/METADATA,sha256=ACwdLcQ3vRHTS1sWzLRk1A14mQxlhEP7WX0KtQU_8FY,1666
21
- soia_client-1.0.9.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
22
- soia_client-1.0.9.dist-info/top_level.txt,sha256=2vPmAo5G0SrCxYrNdJKJJVdpalYppgjO2mmz2PtsFUI,8
23
- soia_client-1.0.9.dist-info/RECORD,,
20
+ soia_client-1.0.10.dist-info/METADATA,sha256=R762Xlk_IeNnEQaVy2Ib1ZNFJTrt34vnP-loB5sBq0Y,1667
21
+ soia_client-1.0.10.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
22
+ soia_client-1.0.10.dist-info/top_level.txt,sha256=2vPmAo5G0SrCxYrNdJKJJVdpalYppgjO2mmz2PtsFUI,8
23
+ soia_client-1.0.10.dist-info/RECORD,,
soialib/impl/arrays.py CHANGED
@@ -118,14 +118,14 @@ def _new_listuple_class() -> type:
118
118
  return Listuple
119
119
 
120
120
 
121
- def _new_keyed_items_class(attributes: tuple[str, ...], default_expr: ExprLike):
121
+ def _new_keyed_items_class(key_attributes: tuple[str, ...], default_expr: ExprLike):
122
122
  key_items = make_function(
123
123
  name="key_items",
124
124
  params=["items"],
125
125
  body=[
126
126
  "ret = {}",
127
127
  "for item in items:",
128
- f" ret[item.{'.'.join(attributes)}] = item",
128
+ f" ret[item.{'.'.join(key_attributes)}] = item",
129
129
  "return ret",
130
130
  ],
131
131
  )
soialib/impl/structs.py CHANGED
@@ -457,6 +457,8 @@ def _make_eq_fn(
457
457
  """
458
458
 
459
459
  builder = BodyBuilder()
460
+ builder.append_ln("if other is self:")
461
+ builder.append_ln(" return True")
460
462
  builder.append_ln("if other.__class__ is self.__class__:")
461
463
  operands: list[ExprLike]
462
464
  if fields: