Skip to content

Commit

Permalink
a-linting we will go
Browse files Browse the repository at this point in the history
  • Loading branch information
seekinginfiniteloop committed Jan 16, 2024
1 parent 8466c2b commit 5ef5802
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fedcal/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,15 @@ def map(cls) -> Mapping[Any, Any]:
@classmethod
def val_attr_map(cls) -> Mapping[Any, Any]:
"""
Returns a map of member names to their values and attributes.attributes.
Maps member values (as keys) to the members' attributes.
Returns
-------
_description_
"""
return dict(zip(cls._member_names_, cls._value2member_map_.values(), cls.list_member_attrs(member=lambda x: x if getattr(cls.members(), "name") == x in cls._member_names_) else None))
member_attrs = [cls.list_member_attrs(member=x) if x in cls._member_names_ else None for x in cls._member_names_]
return dict(zip(cls._member_names_, cls._value2member_map_.values(), member_attrs))


@classmethod
def attr_member_map(cls, attr: str) -> Mapping[Any, Any]:
Expand Down

0 comments on commit 5ef5802

Please sign in to comment.