Bug 1638990: [taskgraph] Apply appropriate change from python-modernize; r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D84086