Description
In flake8 < 3.9.0, F401 error occurs for imports when the imported identities are used in a bound argument in TypeVar(..., bound="XXX").
For example:
if TYPE_CHECKING: from pyspark.pandas.base import IndexOpsMixin IndexOpsLike = TypeVar("IndexOpsLike", bound="IndexOpsMixin")
Since this behavior is fixed In flake8 >= 3.9.0, we should upgrade the flake8 installed in Jenkins to 3.9.0 or above.
And also we might update the MINIMUM_FLAKE8 in the lint-python from 3.8.0 to 3.9.0.
Attachments
Issue Links
- is a clone of
-
SPARK-34943 Upgrade flake8 to 3.8.0 or above in Jenkins
- Resolved
- links to