From 798b92de6b7ee72bbf00a836cb9d67546f320560 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Tue, 20 Aug 2024 23:21:40 -0700 Subject: [PATCH] name change in imports from schema -> is_schema --- nwb_linkml/src/nwb_linkml/providers/pydantic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nwb_linkml/src/nwb_linkml/providers/pydantic.py b/nwb_linkml/src/nwb_linkml/providers/pydantic.py index faf24b5..5d5975c 100644 --- a/nwb_linkml/src/nwb_linkml/providers/pydantic.py +++ b/nwb_linkml/src/nwb_linkml/providers/pydantic.py @@ -182,7 +182,7 @@ class PydanticProvider(Provider): imported_schema: dict[str, SchemaDefinition] = { gen.generate_module_import(sch): sch for sch in gen.schemaview.schema_map.values() } - generated_imports = [i for i in rendered.python_imports if i.schema] + generated_imports = [i for i in rendered.python_imports if i.is_schema] # each task has an expected output file a corresponding SchemaDefinition import_paths = [ (ns_file.parent / _import_to_path(an_import.module)).resolve()