We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e02fd11 commit 7190830Copy full SHA for 7190830
1 file changed
rewrite-python/rewrite/src/rewrite/rpc/server.py
@@ -878,13 +878,7 @@ def _category_descriptor_to_dict(descriptor) -> dict:
878
879
880
def _recipe_descriptor_to_dict(descriptor) -> dict:
881
- """Convert a RecipeDescriptor to a dict for JSON serialization.
882
-
883
- Java's `RecipeDescriptor.getXxx()` getters for collection-valued fields
884
- are treated as never-null by callers (matching what `Recipe.getDescriptor()`
885
- upholds locally). Always emit the collection keys, even when empty, so
886
- Jackson on the Java side never leaves them null.
887
- """
+ """Convert a RecipeDescriptor to a dict for JSON serialization."""
888
return {
889
'name': descriptor.name,
890
'displayName': descriptor.display_name,
0 commit comments