diff --git a/tools/upgrade/commands/configurationless.py b/tools/upgrade/commands/configurationless.py index 75b23720f02..e56f780a80a 100644 --- a/tools/upgrade/commands/configurationless.py +++ b/tools/upgrade/commands/configurationless.py @@ -5,6 +5,8 @@ # pyre-strict +from __future__ import annotations + import argparse import json import logging diff --git a/tools/upgrade/commands/strict_default.py b/tools/upgrade/commands/strict_default.py index f5895c2745c..42cd771e580 100644 --- a/tools/upgrade/commands/strict_default.py +++ b/tools/upgrade/commands/strict_default.py @@ -9,6 +9,7 @@ strict_default contains a library for running a codemod across a codebase that turns pyre-strict on. Optionally, we can also remove the #pyre-strict and add #pyre-unsafe headers from files where the error count is below a certain threshhold. """ +from __future__ import annotations import argparse import logging diff --git a/tools/upgrade/configuration.py b/tools/upgrade/configuration.py index 4eabaf04f09..1e889704795 100644 --- a/tools/upgrade/configuration.py +++ b/tools/upgrade/configuration.py @@ -9,6 +9,7 @@ TODO(T132414938) Add a module-level docstring """ +from __future__ import annotations import glob import json