Update mypy to 0.990 (#81783)
* Update mypy to 0.990 * Remove type ignore - overriding attr with property (13475) * Remove type ignores - hasattr (13544) * Adjust type ignore - assignment (13549) * New error code - type-abstract (13785) * Disable annotation-unchecked (13851)
This commit is contained in:
parent
2082026ff5
commit
0c8eeaa643
15 changed files with 26 additions and 34 deletions
|
@ -282,7 +282,7 @@ class BaseNotificationService:
|
|||
if hasattr(self, "targets"):
|
||||
stale_targets = set(self.registered_targets)
|
||||
|
||||
for name, target in self.targets.items(): # type: ignore[attr-defined]
|
||||
for name, target in self.targets.items():
|
||||
target_name = slugify(f"{self._target_service_name_prefix}_{name}")
|
||||
if target_name in stale_targets:
|
||||
stale_targets.remove(target_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue