Fix failing test for Final annotations (#21725)
Summary:
](https://our.intern.facebook.com/intern/diff/15800009/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21725
Pulled By: driazati
Differential Revision: D15800009
fbshipit-source-id: 5409c213161e3f2031710933897b85872aad2a83