Skip to content

Commit 27dbda8

Browse files
committed
make function private
1 parent 5b4d697 commit 27dbda8

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
@@ -1832,7 +1832,7 @@ def get_type_designator_slot(self, cn: CLASS_NAME, imports: bool = True) -> Slot
18321832
return None
18331833

18341834
@lru_cache(None)
1835-
def get_string_type(self) -> TypeDefinition:
1835+
def _get_string_type(self) -> TypeDefinition:
18361836
"""Get the type used for representing strings.
18371837
18381838
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
@@ -2202,7 +2202,7 @@ def test_induced_get_string_type(enum_string_type_schema: str, expected: Any, te
22022202
sv = SchemaView(enum_string_type_schema + text_for_schema)
22032203

22042204
with expected as e:
2205-
assert sv.get_string_type() == sv.get_type(e)
2205+
assert sv._get_string_type() == sv.get_type(e)
22062206

22072207

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

0 commit comments

Comments
 (0)