Skip to content

Commit 437f151

Browse files
committed
YamlAble does not provide a constructor anymore. Fixes #6
1 parent aaac5e1 commit 437f151

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

yamlable/main.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)