Skip to content

Remove __all__ from __init__.py files #571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 20, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
CHANGELOG
=========

1.16.4.dev
==========

* bug-fix: Remove ``__all__`` from ``__init__.py`` files

1.16.3
======

* bug-fix: Local Mode: Allow support for SSH in local mode
* bug-fix: Local Mode: Allow support for SSH in local mode
* bug-fix: Append retry id to default Airflow job name to avoid name collisions in retry
* bug-fix: Local Mode: No longer requires s3 permissions to run local entry point file
* feature: Estimators: add support for PyTorch 1.0.0
Expand Down
6 changes: 2 additions & 4 deletions src/sagemaker/chainer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 2 additions & 4 deletions src/sagemaker/local/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 2 additions & 3 deletions src/sagemaker/pytorch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions src/sagemaker/rl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
6 changes: 2 additions & 4 deletions src/sagemaker/sklearn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions src/sagemaker/sparkml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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