Fix minor issue in type stub for Optimizer (#38067)
Summary:
Closes gh-23731
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38067
Differential Revision: D21471021
Pulled By: ezyang
fbshipit-source-id: 8e7ee7f437bfa8e78a47ac6cf572b0fc9b5c6939