From 8466c2b757065b7d9d151e394e324663cc804bc7 Mon Sep 17 00:00:00 2001 From: psuedomagi Date: Tue, 16 Jan 2024 06:25:37 -0500 Subject: [PATCH] more linting --- fedcal/_base.py | 2 +- fedcal/fedstamp.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fedcal/_base.py b/fedcal/_base.py index 19c39f0..8d09091 100644 --- a/fedcal/_base.py +++ b/fedcal/_base.py @@ -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]: diff --git a/fedcal/fedstamp.py b/fedcal/fedstamp.py index addceb8..2883398 100644 --- a/fedcal/fedstamp.py +++ b/fedcal/fedstamp.py @@ -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 @@ -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.