Skip to content

Commit 7190830

Browse files
authored
Update server.py
1 parent e02fd11 commit 7190830

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

  • rewrite-python/rewrite/src/rewrite/rpc

rewrite-python/rewrite/src/rewrite/rpc/server.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -878,13 +878,7 @@ def _category_descriptor_to_dict(descriptor) -> dict:
878878

879879

880880
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-
"""
881+
"""Convert a RecipeDescriptor to a dict for JSON serialization."""
888882
return {
889883
'name': descriptor.name,
890884
'displayName': descriptor.display_name,

0 commit comments

Comments
 (0)