`MethodType` has the exact semantics that `ExitStack` needs, so we can avoid creating a Python level closure.
Attach a file by drag & drop or click to upload