MCPcopy Create free account
hub / github.com/apache/fory / get_effective_evolving

Method get_effective_evolving

compiler/fory_compiler/generators/base.py:307–316  ·  view source on GitHub ↗

Return effective evolving flag for a message.

(self, message)

Source from the content-addressed store, hash-verified

305 return type_id is not None
306
307 def get_effective_evolving(self, message) -> bool:
308 """Return effective evolving flag for a message."""
309 if message is None:
310 return True
311 if "evolving" in message.options:
312 return bool(message.options.get("evolving"))
313 file_default = self.schema.get_option("evolving")
314 if file_default is None:
315 return True
316 return bool(file_default)
317
318 def format_idl_type(self, field_type: FieldType) -> str:
319 """Return an IDL-style type name for display purposes."""

Callers 11

get_struct_annotationMethod · 0.80
generate_messageMethod · 0.80
generate_messageMethod · 0.80
generate_messageMethod · 0.80
generate_messageMethod · 0.80
get_type_id_exprMethod · 0.80
generate_messageMethod · 0.80
_type_evolvingMethod · 0.80

Calls 3

boolFunction · 0.85
get_optionMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected