File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,25 +60,6 @@ class YamlAble(AbstractYamlAble):
6060 __yaml_tag_suffix__ = None
6161 """ placeholder for a class-wide yaml tag. It will be prefixed with '!yamlable/', stored in `YAMLABLE_PREFIX` """
6262
63- def __init__ (self , * args ,
64- # yaml_tag=None, # type: str Not supported in python 2
65- ** kwargs ):
66- """
67- Constructor to create an object with the given yaml tag.
68- The tag is optional so that class-wide attribute is used when None is provided
69-
70- :param yaml_tag:
71- """
72- # python 2 compatibility: no keyword arguments can follow an *args.
73- yaml_tag = kwargs .pop ('yaml_tag' , None )
74-
75- if yaml_tag is not None :
76- # hide class-wide attribute with an instance-specific one
77- self .__yaml_tag_suffix__ = yaml_tag
78-
79- # multiple-inheritance friendly: propagate to other constructors
80- super (YamlAble , self ).__init__ (* args , ** kwargs )
81-
8263 @classmethod
8364 def is_yaml_tag_supported (cls ,
8465 yaml_tag # type: str
You can’t perform that action at this time.
0 commit comments