Skip to content

Commit ed40f13

Browse files
laurenyuyangaws
authored andcommitted
Remove __all__ from __init__.py files (aws#571)
1 parent 2ef27a1 commit ed40f13

File tree

7 files changed

+11
-21
lines changed

7 files changed

+11
-21
lines changed

CHANGELOG.rst

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66
==========
77

88
* bug-fix: Session: don't allow get_execution_role() to return an ARN that's not a role but has "role" in the name
9+
* bug-fix: Remove ``__all__`` from ``__init__.py`` files
910

1011
1.16.3
1112
======

src/sagemaker/chainer/__init__.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,5 @@
1212
# language governing permissions and limitations under the License.
1313
from __future__ import absolute_import
1414

15-
from sagemaker.chainer.estimator import Chainer
16-
from sagemaker.chainer.model import ChainerModel, ChainerPredictor
17-
18-
__all__ = [Chainer, ChainerModel, ChainerPredictor]
15+
from sagemaker.chainer.estimator import Chainer # noqa: F401
16+
from sagemaker.chainer.model import ChainerModel, ChainerPredictor # noqa: F401

src/sagemaker/local/__init__.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,5 @@
1212
# language governing permissions and limitations under the License.
1313
from __future__ import absolute_import
1414

15-
from .local_session import (file_input, LocalSession, LocalSagemakerRuntimeClient,
16-
LocalSagemakerClient)
17-
18-
__all__ = [file_input, LocalSession, LocalSagemakerClient, LocalSagemakerRuntimeClient]
15+
from .local_session import (file_input, LocalSagemakerClient, # noqa: F401
16+
LocalSagemakerRuntimeClient, LocalSession)

src/sagemaker/pytorch/__init__.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
1313
from __future__ import absolute_import
14-
from sagemaker.pytorch.estimator import PyTorch
15-
from sagemaker.pytorch.model import PyTorchModel, PyTorchPredictor
1614

17-
__all__ = [PyTorch, PyTorchModel, PyTorchPredictor]
15+
from sagemaker.pytorch.estimator import PyTorch # noqa: F401
16+
from sagemaker.pytorch.model import PyTorchModel, PyTorchPredictor # noqa: F401

src/sagemaker/rl/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,5 @@
1212
# language governing permissions and limitations under the License.
1313
from __future__ import absolute_import
1414

15-
from sagemaker.rl.estimator import (RLEstimator, RLToolkit, RLFramework,
15+
from sagemaker.rl.estimator import (RLEstimator, RLFramework, RLToolkit, # noqa: F401
1616
TOOLKIT_FRAMEWORK_VERSION_MAP)
17-
18-
__all__ = [RLEstimator, RLToolkit, RLFramework, TOOLKIT_FRAMEWORK_VERSION_MAP]

src/sagemaker/sklearn/__init__.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,5 @@
1212
# language governing permissions and limitations under the License.
1313
from __future__ import absolute_import
1414

15-
from sagemaker.sklearn.estimator import SKLearn
16-
from sagemaker.sklearn.model import SKLearnModel, SKLearnPredictor
17-
18-
__all__ = [SKLearn, SKLearnModel, SKLearnPredictor]
15+
from sagemaker.sklearn.estimator import SKLearn # noqa: F401
16+
from sagemaker.sklearn.model import SKLearnModel, SKLearnPredictor # noqa: F401

src/sagemaker/sparkml/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@
1212
# language governing permissions and limitations under the License.
1313
from __future__ import absolute_import
1414

15-
from sagemaker.sparkml.model import SparkMLModel, SparkMLPredictor
16-
17-
__all__ = [SparkMLModel, SparkMLPredictor]
15+
from sagemaker.sparkml.model import SparkMLModel, SparkMLPredictor # noqa: F401

0 commit comments

Comments
 (0)