mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix name collision with type in Command.return_type
This commit is contained in:
@@ -51,10 +51,10 @@ class Command(Generic[P, CO]):
|
||||
|
||||
@property
|
||||
def return_type(self) -> type:
|
||||
type = inspect.signature(self.method).return_annotation
|
||||
if type == inspect.Signature.empty:
|
||||
_type = inspect.signature(self.method).return_annotation
|
||||
if _type == inspect.Signature.empty:
|
||||
return None
|
||||
return type.__name__
|
||||
return _type.__name__
|
||||
|
||||
@property
|
||||
def header(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user