diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 036781edaa..4666ff5eea 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,7 @@ CHANGELOG ========== * bug-fix: Session: don't allow get_execution_role() to return an ARN that's not a role but has "role" in the name +* bug-fix: Remove ``__all__`` from ``__init__.py`` files 1.16.3 ====== diff --git a/src/sagemaker/chainer/__init__.py b/src/sagemaker/chainer/__init__.py index fec881b353..41b4657ec2 100644 --- a/src/sagemaker/chainer/__init__.py +++ b/src/sagemaker/chainer/__init__.py @@ -12,7 +12,5 @@ # language governing permissions and limitations under the License. from __future__ import absolute_import -from sagemaker.chainer.estimator import Chainer -from sagemaker.chainer.model import ChainerModel, ChainerPredictor - -__all__ = [Chainer, ChainerModel, ChainerPredictor] +from sagemaker.chainer.estimator import Chainer # noqa: F401 +from sagemaker.chainer.model import ChainerModel, ChainerPredictor # noqa: F401 diff --git a/src/sagemaker/local/__init__.py b/src/sagemaker/local/__init__.py index 3aa8c44267..167b07ff2a 100644 --- a/src/sagemaker/local/__init__.py +++ b/src/sagemaker/local/__init__.py @@ -12,7 +12,5 @@ # language governing permissions and limitations under the License. from __future__ import absolute_import -from .local_session import (file_input, LocalSession, LocalSagemakerRuntimeClient, - LocalSagemakerClient) - -__all__ = [file_input, LocalSession, LocalSagemakerClient, LocalSagemakerRuntimeClient] +from .local_session import (file_input, LocalSagemakerClient, # noqa: F401 + LocalSagemakerRuntimeClient, LocalSession) diff --git a/src/sagemaker/pytorch/__init__.py b/src/sagemaker/pytorch/__init__.py index 2d2f81da7a..2e8db2d49e 100644 --- a/src/sagemaker/pytorch/__init__.py +++ b/src/sagemaker/pytorch/__init__.py @@ -11,7 +11,6 @@ # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. from __future__ import absolute_import -from sagemaker.pytorch.estimator import PyTorch -from sagemaker.pytorch.model import PyTorchModel, PyTorchPredictor -__all__ = [PyTorch, PyTorchModel, PyTorchPredictor] +from sagemaker.pytorch.estimator import PyTorch # noqa: F401 +from sagemaker.pytorch.model import PyTorchModel, PyTorchPredictor # noqa: F401 diff --git a/src/sagemaker/rl/__init__.py b/src/sagemaker/rl/__init__.py index 62a0c1e934..cf7b222c93 100644 --- a/src/sagemaker/rl/__init__.py +++ b/src/sagemaker/rl/__init__.py @@ -12,7 +12,5 @@ # language governing permissions and limitations under the License. from __future__ import absolute_import -from sagemaker.rl.estimator import (RLEstimator, RLToolkit, RLFramework, +from sagemaker.rl.estimator import (RLEstimator, RLFramework, RLToolkit, # noqa: F401 TOOLKIT_FRAMEWORK_VERSION_MAP) - -__all__ = [RLEstimator, RLToolkit, RLFramework, TOOLKIT_FRAMEWORK_VERSION_MAP] diff --git a/src/sagemaker/sklearn/__init__.py b/src/sagemaker/sklearn/__init__.py index 9a6e89befa..f9b7b55d53 100644 --- a/src/sagemaker/sklearn/__init__.py +++ b/src/sagemaker/sklearn/__init__.py @@ -12,7 +12,5 @@ # language governing permissions and limitations under the License. from __future__ import absolute_import -from sagemaker.sklearn.estimator import SKLearn -from sagemaker.sklearn.model import SKLearnModel, SKLearnPredictor - -__all__ = [SKLearn, SKLearnModel, SKLearnPredictor] +from sagemaker.sklearn.estimator import SKLearn # noqa: F401 +from sagemaker.sklearn.model import SKLearnModel, SKLearnPredictor # noqa: F401 diff --git a/src/sagemaker/sparkml/__init__.py b/src/sagemaker/sparkml/__init__.py index b7575b23dc..e724ac8c9b 100644 --- a/src/sagemaker/sparkml/__init__.py +++ b/src/sagemaker/sparkml/__init__.py @@ -12,6 +12,4 @@ # language governing permissions and limitations under the License. from __future__ import absolute_import -from sagemaker.sparkml.model import SparkMLModel, SparkMLPredictor - -__all__ = [SparkMLModel, SparkMLPredictor] +from sagemaker.sparkml.model import SparkMLModel, SparkMLPredictor # noqa: F401