File tree Expand file tree Collapse file tree 3 files changed +756
-757
lines changed Expand file tree Collapse file tree 3 files changed +756
-757
lines changed Original file line number Diff line number Diff line change 1+ from __future__ import annotations
2+
13import sys
24from functools import lru_cache
35from pathlib import Path
46from types import ModuleType
5- from typing import Union
67
78from linkml_runtime .linkml_model import ClassDefinition
89from linkml_runtime .utils .distroutils import get_schema_string
910from linkml_runtime .utils .schemaview import SchemaView
1011from linkml_runtime .utils .yamlutils import YAMLRoot
1112
12-
1313SCHEMA_PATH_VAR = "schema_path"
1414
1515
16- def package_schema_path (package : Union [ str , ModuleType ] ) -> Path :
16+ def package_schema_path (package : str | ModuleType ) -> Path :
1717 if isinstance (package , str ):
1818 package = sys .modules [package ]
1919 if SCHEMA_PATH_VAR in vars (package ):
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ classes:
1212 attributes :
1313 value :
1414 range : string
15- ifabsent : " Main"
15+ ifabsent : " Main"
You can’t perform that action at this time.
0 commit comments