return_annotation property
Object?
get
return_annotation
The “return” annotation for the callable. If the callable has no “return” annotation, this attribute is set to Signature.empty.
Implementation
Object? get return_annotation {
final Object? result = getAttribute("return_annotation");
if (result is PythonObjectInterface) {
final ReferenceEqualityWrapper empty = Signature.empty;
if (ReferenceEqualityWrapper(result) == empty) {
return empty;
}
}
return result;
}