mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-18 13:55:17 +02:00
fix pylint warnings
This commit is contained in:
parent
d2260a5958
commit
5649fac62d
2 changed files with 6 additions and 6 deletions
|
|
@ -152,7 +152,7 @@ class Role(SerializationMixin, is_polymorphic_base=True):
|
|||
__hash__ = object.__hash__ # support Role as hashable type in `Environment.members`
|
||||
|
||||
@model_validator(mode="after")
|
||||
def check_subscription(self) -> set:
|
||||
def check_subscription(self):
|
||||
if not self.subscription:
|
||||
self.subscription = {any_to_str(self), self.name} if self.name else {any_to_str(self)}
|
||||
return self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue