Fix type annotation in tools/nightly.py (#64202)
authorNikita Shulga <nshulga@fb.com>
Mon, 30 Aug 2021 20:26:00 +0000 (13:26 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 30 Aug 2021 20:27:43 +0000 (13:27 -0700)
commitb9933f08b985f9105e00804d5c99016841bd4cc7
treec105b53819f44ddaae3cd40ac6244d39571f02e0
parentf3e329cbec5f4f32e195bbe3b8b5b4d2b1323128
Fix type annotation in tools/nightly.py (#64202)

Summary:
`tempfile.TemporaryDirectory` is a generic only in python-3.9 and above

Workaround by wrapping type annotation in quotes

Fixes https://github.com/pytorch/pytorch/issues/64017

Pull Request resolved: https://github.com/pytorch/pytorch/pull/64202

Reviewed By: janeyx99

Differential Revision: D30644215

Pulled By: malfet

fbshipit-source-id: 3c16240b9fa899bd4d572c1732a7d87d3dd0fbd5
tools/nightly.py