Commit c37badc5 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

[reader/abbreviations] rename defobject function argument to definition_object

parent 12d9f05b209a
......@@ -319,8 +319,9 @@ class SchemaLoader:
@deprecation.argument_renamed(old_name="filepath", new_name="file_path")
@deprecation.argument_renamed(old_name="defobject", new_name="definition_object")
def add_definition(
self, defobject: Type[buildobjs.Definition], file_path: Optional[str] = None
self, definition_object: Type[buildobjs.Definition], file_path: Optional[str] = None
) -> None:
"""file handler callback to add a definition object
......@@ -328,10 +329,10 @@ class SchemaLoader:
all definition objects (here), then create actual schema objects (done in
if not issubclass(defobject, buildobjs.Definition):
if not issubclass(definition_object, buildobjs.Definition):
raise BadSchemaDefinition(file_path, "invalid definition object")
@deprecation.argument_renamed(old_name="filepath", new_name="file_path")
@deprecation.argument_renamed(old_name="modname", new_name="module_name")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment