diff --git a/pep-0362.txt b/pep-0362.txt index afb751f79..80035df32 100644 --- a/pep-0362.txt +++ b/pep-0362.txt @@ -90,8 +90,8 @@ make a modified copy: True >>> new_sig = new_sig.replace(return_annotation=new_sig.empty) - >>> hasattr(new_sig, "return_annotation") - False + >>> new_sig.return_annotation is Signature.empty + True There are two ways to instantiate a Signature class: