Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 6c69ec1

Browse files
committed
Use plural in attribute name.
1 parent 6d9e5ed commit 6c69ec1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: src/oidcmsg/impexp.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,32 @@ class ImpExp:
2727
def __init__(self):
2828
pass
2929

30-
def _dump(self, cls, item, exclude_attribute: Optional[list] = None):
30+
def _dump(self, cls, item, exclude_attributes: Optional[List[str]] = None) -> dict:
3131
if cls in [None, "", [], {}]:
3232
val = item
3333
elif isinstance(item, Message):
3434
val = {qualified_name(item.__class__): item.to_dict()}
3535
elif cls == object:
3636
val = qualified_name(item)
3737
elif isinstance(cls, list):
38-
val = [self._dump(cls[0], v, exclude_attribute) for v in item]
38+
val = [self._dump(cls[0], v, exclude_attributes) for v in item]
3939
else:
40-
val = item.dump(exclude_attribute=exclude_attribute)
40+
val = item.dump(exclude_attributes=exclude_attributes)
4141

4242
return val
4343

44-
def dump(self, exclude_attribute: Optional[List[str]] = None) -> dict:
45-
_exclude_attribute = exclude_attribute or []
44+
def dump(self, exclude_attributes: Optional[List[str]] = None) -> dict:
45+
_exclude_attributes = exclude_attributes or []
4646
info = {}
4747
for attr, cls in self.parameter.items():
48-
if attr in _exclude_attribute:
48+
if attr in _exclude_attributes:
4949
continue
5050

5151
item = getattr(self, attr, None)
5252
if item is None:
5353
continue
5454

55-
info[attr] = self._dump(cls, item, exclude_attribute)
55+
info[attr] = self._dump(cls, item, exclude_attributes)
5656

5757
return info
5858

0 commit comments

Comments
 (0)