Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
seekinginfiniteloop committed Jan 16, 2024
1 parent 759e21e commit 8466c2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fedcal/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def val_attr_map(cls) -> Mapping[Any, Any]:
Returns
-------
"""
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_)))
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))

@classmethod
def attr_member_map(cls, attr: str) -> Mapping[Any, Any]:
Expand Down
4 changes: 2 additions & 2 deletions fedcal/fedstamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def _set_statuses(cls) -> None:
"""
Sets the status cache if not already set.
"""
if not hasattr(type(self), "statuses"):
if not hasattr(cls, "statuses"):
cls.statuses: MultiIndex = fetch_index()

# holiday properties
Expand Down Expand Up @@ -644,7 +644,7 @@ def departments(self) -> set[str]:
pass

@property
def all_depts_status(self) -> StatusDictType:
def all_depts_status(self):
"""
Retrieves the status of all departments.
Expand Down

0 comments on commit 8466c2b

Please sign in to comment.