From 8f6e948ee9da179d4da1c5f7365b34fa56d6fee9 Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Tue, 14 Jan 2025 19:04:25 +0100 Subject: [PATCH] woopsie --- .../src/codegen/python/mod.rs | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/crates/build/re_types_builder/src/codegen/python/mod.rs b/crates/build/re_types_builder/src/codegen/python/mod.rs index 4ff348759c72d..24b4d257df9d3 100644 --- a/crates/build/re_types_builder/src/codegen/python/mod.rs +++ b/crates/build/re_types_builder/src/codegen/python/mod.rs @@ -2416,32 +2416,7 @@ fn quote_init_method( let parameters = compute_init_parameters(obj, objects); let head = format!("def __init__(self: Any, {}):", parameters.join(", ")); - let parameter_docs = if obj.is_union() { - Vec::new() - } else { - obj.fields - .iter() - .filter_map(|field| { - let doc_content = field.docs.lines_for(reporter, objects, Target::Python); - if doc_content.is_empty() { - if !field.is_testing() && obj.fields.len() > 1 { - reporter.error( - &field.virtpath, - &field.fqname, - format!("Field {} is missing documentation", field.name), - ); - } - None - } else { - Some(format!( - "{}:\n {}", - field.name, - doc_content.join("\n ") - )) - } - }) - .collect::>() - }; + let parameter_docs = compute_init_parameter_docs(reporter, obj, objects); let mut doc_string_lines = vec![format!( "Create a new instance of the {} {}.", obj.name,