Skip to content

Commit

Permalink
Use __all__ instead of import by name
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirving committed Oct 26, 2023
1 parent d344639 commit 6f6001b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/lsst/daf/butler/remote_butler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from ._remote_butler import RemoteButler
from ._remote_butler import *
2 changes: 2 additions & 0 deletions python/lsst/daf/butler/remote_butler/_remote_butler.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

__all__ = ("RemoteButler",)

from collections.abc import Collection, Iterable, Sequence
from contextlib import AbstractContextManager
from typing import Any, TextIO
Expand Down
4 changes: 2 additions & 2 deletions python/lsst/daf/butler/remote_butler/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from ._factory import Factory
from ._server import app, factory_dependency
from ._factory import *
from ._server import *
2 changes: 2 additions & 0 deletions python/lsst/daf/butler/remote_butler/server/_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

from lsst.daf.butler import Butler

__all__ = ("Factory",)


class Factory:
def __init__(self, *, butler: Butler):
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/daf/butler/remote_butler/server/_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

from __future__ import annotations

__all__ = ()
__all__ = ("app", "factory_dependency")

import logging
from functools import cache
Expand Down

0 comments on commit 6f6001b

Please sign in to comment.