Skip to content

Commit 65896d3

Browse files
Fix linting errors
1 parent 2422a52 commit 65896d3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

tfx/types/__init__.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
from tfx.types.artifact import Artifact
2727
from tfx.types.channel import BaseChannel
2828
from tfx.types.channel import Channel
29-
from tfx.types.channel import ExecPropertyTypes
30-
from tfx.types.channel import OutputChannel
31-
from tfx.types.channel import Property # Type alias.
32-
from tfx.types.component_spec import ComponentSpec
33-
from tfx.types.value_artifact import ValueArtifact
29+
from tfx.types.channel import ExecPropertyTypes # noqa: F401
30+
from tfx.types.channel import OutputChannel # noqa: F401
31+
from tfx.types.channel import Property # Type alias. # noqa: F401
32+
from tfx.types.component_spec import ComponentSpec # noqa: F401
33+
from tfx.types.value_artifact import ValueArtifact # noqa: F401
3434

3535
__all__ = [
3636
"Artifact",

tfx/types/standard_artifacts.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from absl import logging
2727
from tfx.types.artifact import Artifact, Property, PropertyType
2828
from tfx.types import standard_artifact_utils
29-
from tfx.types.system_artifacts import Dataset, Model, Statistics
29+
from tfx.types.system_artifacts import Dataset, Model as SystemModel, Statistics
3030
from tfx.types.value_artifact import ValueArtifact
3131
from tfx.utils import json_utils
3232
from tfx.utils import pure_typing_utils
@@ -62,7 +62,7 @@ def __init__(self, *args, **kwargs):
6262
try:
6363
# `extensions` is not included in ml_pipelines_sdk and doesn't have any
6464
# transitive import.
65-
import tfx.extensions as _ # type: ignore # pylint: disable=g-import-not-at-top
65+
import tfx.extensions as _ # type: ignore # noqa: F401 # pylint: disable=g-import-not-at-top
6666
except ModuleNotFoundError as err:
6767
# The following condition detects exactly whether only the DSL package
6868
# is installed, and is bypassed when tests run in Bazel.

tfx/v1/extensions/google_cloud_ai_platform/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# UCAIP_REGION_KEY is deprecated, please use VERTEX_REGION_KEY instead
3535
from tfx.extensions.google_cloud_ai_platform.trainer.executor import UCAIP_REGION_KEY
3636
from tfx.extensions.google_cloud_ai_platform.tuner.component import Tuner
37-
from tfx.v1.extensions.google_cloud_ai_platform import experimental
37+
from tfx.v1.extensions.google_cloud_ai_platform import experimental # noqa: F401
3838

3939
__all__ = [
4040
"BulkInferrer",

0 commit comments

Comments
 (0)