Skip to content

Commit

Permalink
fix: change method of calling _cls_meta_args_resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
movedempackets committed Aug 7, 2024
1 parent ed4ae4f commit 85e8d84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yapyang/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def __init__(self, *args, **kwargs) -> None:
args."""

super().__init__()
for cls_arg, value in super()._cls_meta_args_resolver(args, kwargs):
for cls_arg, value in self._cls_meta_args_resolver(args, kwargs):
setattr(self, cls_arg, value)


Expand Down Expand Up @@ -214,7 +214,7 @@ def append(self, *args, **kwargs) -> None:
"""

entry_attr: t.Dict[str, t.Any] = dict()
for cls_arg, value in super()._cls_meta_args_resolver(args, kwargs):
for cls_arg, value in self._cls_meta_args_resolver(args, kwargs):
entry_attr[cls_arg] = value
self.entries.add(ListEntry(entry_attr, key=self._key))

Expand Down Expand Up @@ -253,7 +253,7 @@ def append(self, *value) -> None:
list entries.
"""

for _, value in super()._cls_meta_args_resolver(value, dict()):
for _, value in self._cls_meta_args_resolver(value, dict()):
self.entries.add(value)

def to_xml(self, /, *, attrs: t.Optional[t.Dict[str, str]] = None) -> str:
Expand Down

0 comments on commit 85e8d84

Please sign in to comment.