diff --git a/src/neuroconv/utils/json_schema.py b/src/neuroconv/utils/json_schema.py index 902f99e7d..a7e6e0518 100644 --- a/src/neuroconv/utils/json_schema.py +++ b/src/neuroconv/utils/json_schema.py @@ -142,7 +142,6 @@ def get_json_schema_from_method_signature(method: Callable, exclude: Optional[li # If no annotation is provided (inspect._empty), use Any instead annotation = Any if parameter.annotation is inspect._empty else parameter.annotation - annotation = parameter.annotation # Pydantic uses ellipsis for required pydantic_default = ... if parameter.default is inspect._empty else parameter.default