dcicutils 8.18.1.1b1__py3-none-any.whl → 8.18.1.1b2__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.
- dcicutils/portal_utils.py +4 -5
- {dcicutils-8.18.1.1b1.dist-info → dcicutils-8.18.1.1b2.dist-info}/METADATA +1 -1
- {dcicutils-8.18.1.1b1.dist-info → dcicutils-8.18.1.1b2.dist-info}/RECORD +6 -6
- {dcicutils-8.18.1.1b1.dist-info → dcicutils-8.18.1.1b2.dist-info}/LICENSE.txt +0 -0
- {dcicutils-8.18.1.1b1.dist-info → dcicutils-8.18.1.1b2.dist-info}/WHEEL +0 -0
- {dcicutils-8.18.1.1b1.dist-info → dcicutils-8.18.1.1b2.dist-info}/entry_points.txt +0 -0
dcicutils/portal_utils.py
CHANGED
@@ -473,16 +473,15 @@ class Portal:
|
|
473
473
|
|
474
474
|
@lru_cache(maxsize=100)
|
475
475
|
def get_schema_super_type_names(self, schema_name: str, include_schema_name: bool = False) -> List[str]:
|
476
|
+
super_types = set()
|
476
477
|
if isinstance(schema_name, str) and (schema_name := self.schema_name(schema_name)):
|
477
478
|
if isinstance(super_type_map := self.get_schemas_super_type_map(), dict):
|
478
|
-
super_types = set()
|
479
479
|
for super_type_name in super_type_map:
|
480
480
|
if schema_name in super_type_map[super_type_name]:
|
481
481
|
super_types.add(super_type_name)
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
return []
|
482
|
+
if (include_schema_name is True) and self.get_schema(schema_name):
|
483
|
+
super_types.insert(0, schema_name)
|
484
|
+
return list(super_types)
|
486
485
|
|
487
486
|
@lru_cache(maxsize=100)
|
488
487
|
def get_schema_subtype_names(self, type_name: str) -> List[str]:
|
@@ -49,7 +49,7 @@ dcicutils/misc_utils.py,sha256=U6dABhaswQA_QPJgkx535WZuZ_ECfc3KvamOEdIMUtc,11607
|
|
49
49
|
dcicutils/obfuscation_utils.py,sha256=fo2jOmDRC6xWpYX49u80bVNisqRRoPskFNX3ymFAmjw,5963
|
50
50
|
dcicutils/opensearch_utils.py,sha256=V2exmFYW8Xl2_pGFixF4I2Cc549Opwe4PhFi5twC0M8,1017
|
51
51
|
dcicutils/portal_object_utils.py,sha256=Az3n1aL-PQkN5gOFE6ZqC2XkYsqiwKlq7-tZggs1QN4,11062
|
52
|
-
dcicutils/portal_utils.py,sha256=
|
52
|
+
dcicutils/portal_utils.py,sha256=nnZy5wP62n-ZRgmAFCtRX9QYVH-LL9XXra9w6dTPqcs,48215
|
53
53
|
dcicutils/progress_bar.py,sha256=R3bWLMYM3Xq9PY7U0JadcFT1m7QmCbrbDp9qs9_Kf_c,19472
|
54
54
|
dcicutils/project_utils.py,sha256=qPdCaFmWUVBJw4rw342iUytwdQC0P-XKpK4mhyIulMM,31250
|
55
55
|
dcicutils/qa_checkers.py,sha256=j0kzo_T5VduKTxgsMTp7xjneyNokumZzI_iz55Y0Jjs,20505
|
@@ -77,8 +77,8 @@ dcicutils/trace_utils.py,sha256=g8kwV4ebEy5kXW6oOrEAUsurBcCROvwtZqz9fczsGRE,1769
|
|
77
77
|
dcicutils/validation_utils.py,sha256=cMZIU2cY98FYtzK52z5WUYck7urH6JcqOuz9jkXpqzg,14797
|
78
78
|
dcicutils/variant_utils.py,sha256=2H9azNx3xAj-MySg-uZ2SFqbWs4kZvf61JnK6b-h4Qw,4343
|
79
79
|
dcicutils/zip_utils.py,sha256=_Y9EmL3D2dUZhxucxHvrtmmlbZmK4FpSsHEb7rGSJLU,3265
|
80
|
-
dcicutils-8.18.1.
|
81
|
-
dcicutils-8.18.1.
|
82
|
-
dcicutils-8.18.1.
|
83
|
-
dcicutils-8.18.1.
|
84
|
-
dcicutils-8.18.1.
|
80
|
+
dcicutils-8.18.1.1b2.dist-info/LICENSE.txt,sha256=IrWHOFtMb2inTgr2ZqwQriRC8H3uMQfQVO6lniaaoE0,1102
|
81
|
+
dcicutils-8.18.1.1b2.dist-info/METADATA,sha256=JsSWzeet9AgeZ6LtdPmTS1wFcpzkrDPrY2klxr76tr0,3493
|
82
|
+
dcicutils-8.18.1.1b2.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
83
|
+
dcicutils-8.18.1.1b2.dist-info/entry_points.txt,sha256=W6kEWdUJk9tQ4myAgpehPdebcwvCAZ7UgB-wyPgDUMg,335
|
84
|
+
dcicutils-8.18.1.1b2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|