Skip to content

Commit 82624a2

Browse files
Merge branch 'main' into schemaview_fix_permissible_value_parent_plurality
2 parents d0e9d93 + 4c4bbc9 commit 82624a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

linkml_runtime/utils/schemaview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,7 @@ def get_type_designator_slot(self, cn: CLASS_NAME, imports: bool = True) -> Slot
18461846
return None
18471847

18481848
@lru_cache(None)
1849-
def get_string_type(self) -> TypeDefinition:
1849+
def _get_string_type(self) -> TypeDefinition:
18501850
"""Get the type used for representing strings.
18511851
18521852
This can be used for (e.g.) retrieving the appropriate type for a slot where the range is an enum.

tests/test_utils/test_schemaview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2203,7 +2203,7 @@ def test_induced_get_string_type(enum_string_type_schema: str, expected: Any, te
22032203
sv = SchemaView(enum_string_type_schema + text_for_schema)
22042204

22052205
with expected as e:
2206-
assert sv.get_string_type() == sv.get_type(e)
2206+
assert sv._get_string_type() == sv.get_type(e)
22072207

22082208

22092209
def test_permissible_value_relationships(schema_view_no_imports: SchemaView) -> None:

0 commit comments

Comments
 (0)