industrial-model 0.1.0__py3-none-any.whl → 0.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.
@@ -33,9 +33,8 @@ def get_schema_properties(
33
33
  def _get_type_properties(
34
34
  cls: type[BaseModel], visited_count: defaultdict[type, int]
35
35
  ) -> dict[str, Any] | None:
36
- if visited_count[cls] > 2:
36
+ if visited_count[cls] > 3:
37
37
  return None
38
- visited_count[cls] += visited_count[cls] + 1
39
38
 
40
39
  hints = get_type_hints(cls)
41
40
  origins = {
@@ -60,6 +59,7 @@ def _get_field_type(
60
59
  [_cast_base_model(type_hint)], visited_count
61
60
  )
62
61
 
62
+ visited_count[type_hint] += visited_count[type_hint] + 1
63
63
  entries: list[type[BaseModel] | None] = []
64
64
  for arg in get_args(type_hint):
65
65
  if _type_is_list_or_union(arg):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: industrial-model
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Industrial Model ORM
5
5
  Author-email: Lucas Alves <lucasrosaalves@gmail.com>
6
6
  Classifier: Programming Language :: Python
@@ -8,7 +8,7 @@ industrial_model/cognite_adapters/filter_mapper.py,sha256=NqH-OW7_iKFY9POCG8W3Kj
8
8
  industrial_model/cognite_adapters/optimizer.py,sha256=msOXAU2nY2-7U0-AlST3_SWuLHnyQ9wNa5_BzMRQfdw,2166
9
9
  industrial_model/cognite_adapters/query_mapper.py,sha256=lYKRiIEmFiX7CQUnrOh5_-t1UkAMcT3dr9ORgErDXOY,6233
10
10
  industrial_model/cognite_adapters/query_result_mapper.py,sha256=jUreXqsaLnq7hp6T_JZQNRtL8TL8hoLSFvD4SkJ4TEE,7002
11
- industrial_model/cognite_adapters/schemas.py,sha256=5sR0HPBWx9o11p_EN2sZR58XHovsfeoMsKwFHJAHrFI,3352
11
+ industrial_model/cognite_adapters/schemas.py,sha256=Td9pcIj1vr9hrmI9noFKBxK6SNS9EAwol6tosz9HEdg,3364
12
12
  industrial_model/cognite_adapters/sort_mapper.py,sha256=RJUAYlZGXoYzK0PwX63cibRF_L-MUq9g2ZsC2EeNIF4,696
13
13
  industrial_model/cognite_adapters/utils.py,sha256=nBYHK8697L2yGEAcyKjQV9NEZQmWy_aSGq_iMl7gofM,907
14
14
  industrial_model/cognite_adapters/view_mapper.py,sha256=lnv64KezSQTAr6XdcExa8d92GU5Ll9K9HfMcQGzhX6k,488
@@ -23,6 +23,6 @@ industrial_model/queries/models.py,sha256=iiHQ7-cfg0nukEv5PoCx9QPF-w1gVSnoNbXBOK
23
23
  industrial_model/queries/params.py,sha256=ehgCoR5n6E-tkEuoymZ2lkLcSzMaBAx_HnyJ7sWpqz0,964
24
24
  industrial_model/statements/__init__.py,sha256=mqPIvfQ-XZ_IILwha7RbkdIKH_MRAdAvfrw80pCKU1c,1753
25
25
  industrial_model/statements/expressions.py,sha256=bsUnkFDGVHpOQ1RUtEbSPE1nfVkF0zC3m5-9JFkSqu8,4751
26
- industrial_model-0.1.0.dist-info/METADATA,sha256=jZmhsTJkulF0xz4IMktuaiizIgVOTriD2G7zimsmozw,763
27
- industrial_model-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
- industrial_model-0.1.0.dist-info/RECORD,,
26
+ industrial_model-0.1.1.dist-info/METADATA,sha256=0Ba1Ye2htMw494FFTBpUVg-vDhUmUVLDCI28jVB97LU,763
27
+ industrial_model-0.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
28
+ industrial_model-0.1.1.dist-info/RECORD,,