@@ -710,22 +710,12 @@ def __init__(self, *args, **kwargs):
710710 super ().__init__ (* args , ** kwargs )
711711 self ._yaml_formatter = YAMLCommentFormatter (self )
712712
713- @deprecated (
714- """
715- The add_yaml_comments method is deprecated and will be removed in v5.0.0.
716- Use :class:`YAMLCommentFormatter` instead.
717- """
718- )
713+ @deprecated ("The add_yaml_comments method is deprecated and will be removed in v5.0.0." )
719714 def add_yaml_comments (self , cfg : str ) -> str :
720715 """Adds help text as yaml comments."""
721716 return self ._yaml_formatter .add_yaml_comments (cfg )
722717
723- @deprecated (
724- """
725- The set_yaml_start_comment method is deprecated and will be removed in v5.0.0.
726- Use :class:`YAMLCommentFormatter` instead.
727- """
728- )
718+ @deprecated ("The set_yaml_start_comment method is deprecated and will be removed in v5.0.0." )
729719 def set_yaml_start_comment (self , text : str , cfg : ruyamlCommentedMap ):
730720 """Sets the start comment to a ruyaml object.
731721
@@ -735,12 +725,7 @@ def set_yaml_start_comment(self, text: str, cfg: ruyamlCommentedMap):
735725 """
736726 self ._yaml_formatter .set_yaml_start_comment (text , cfg )
737727
738- @deprecated (
739- """
740- The set_yaml_group_comment method is deprecated and will be removed in v5.0.0.
741- Use :class:`YAMLCommentFormatter` instead.
742- """
743- )
728+ @deprecated ("The set_yaml_group_comment method is deprecated and will be removed in v5.0.0." )
744729 def set_yaml_group_comment (self , text : str , cfg : ruyamlCommentedMap , key : str , depth : int ):
745730 """Sets the comment for a group to a ruyaml object.
746731
@@ -752,12 +737,7 @@ def set_yaml_group_comment(self, text: str, cfg: ruyamlCommentedMap, key: str, d
752737 """
753738 self ._yaml_formatter .set_yaml_group_comment (text , cfg , key , depth )
754739
755- @deprecated (
756- """
757- The set_yaml_argument_comment method is deprecated and will be removed in v5.0.0.
758- Use :class:`YAMLCommentFormatter` instead.
759- """
760- )
740+ @deprecated ("The set_yaml_argument_comment method is deprecated and will be removed in v5.0.0." )
761741 def set_yaml_argument_comment (self , text : str , cfg : ruyamlCommentedMap , key : str , depth : int ):
762742 """Sets the comment for an argument to a ruyaml object.
763743
0 commit comments