Skip to content

Commit

Permalink
REFACTOR-modin-project#2059: Rename Publisher -> Parameter for clarity
Browse files Browse the repository at this point in the history
Signed-off-by: Vasilij Litvinov <[email protected]>
  • Loading branch information
vnlitvinov committed Oct 12, 2020
1 parent c238647 commit 0ae78da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modin/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
# ANY KIND, either express or implied. See the License for the specific language
# governing permissions and limitations under the License.

from .pubsub import Publisher
from .pubsub import Parameter
from .envvars import *
4 changes: 2 additions & 2 deletions modin/config/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ def get_help():
for obj in globals().values():
if (
isinstance(obj, type)
and issubclass(obj, Publisher)
and issubclass(obj, Parameter)
and obj is not EnvironmentVariable
and obj is not Publisher
and obj is not Parameter
):
print(f"{obj.get_help()}\nvalue={obj.get()}")

Expand Down
4 changes: 2 additions & 2 deletions modin/config/envvars.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
from textwrap import dedent
import warnings

from .pubsub import Publisher, _TYPE_PARAMS
from .pubsub import Parameter, _TYPE_PARAMS


class EnvironmentVariable(Publisher, type=str):
class EnvironmentVariable(Parameter, type=str):
"""
Base class for environment variables-based configuration
"""
Expand Down
2 changes: 1 addition & 1 deletion modin/config/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class TypeDescriptor(typing.NamedTuple):
_UNSET = object()


class Publisher(object):
class Parameter(object):
"""
Base class describing interface for configuration entities
"""
Expand Down

0 comments on commit 0ae78da

Please sign in to comment.