Skip to content
New issue

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

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

Already on GitHub? # to your account

MNT: rename private module to clarify that it's not part of public API #150

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion cmyt/utils.py → cmyt/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def unprefix_name(name: str) -> str:
'arbre'
"""
warnings.warn(
"cmyt.utils.unprefix_name is deprecated since version 1.4.0 "
"cmyt._utils.unprefix_name is deprecated since version 1.4.0 "
"and will be removed in a future version. "
"Instead, use name.removeprefix('cmyt.')",
category=DeprecationWarning,
Expand Down
2 changes: 1 addition & 1 deletion cmyt/cm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from importlib import import_module

from cmyt.utils import cmyt_cmaps, register_colormap
from cmyt._utils import cmyt_cmaps, register_colormap

for name in cmyt_cmaps:
# register to MPL
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest

import cmyt
from cmyt.utils import cmyt_cmaps, prefix_name
from cmyt._utils import cmyt_cmaps, prefix_name

mpl_compare = pytest.mark.mpl_image_compare(
savefig_kwargs={"bbox_inches": "tight"},
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

import cmyt # noqa: F401
from cmyt.utils import create_cmap_overview
from cmyt._utils import create_cmap_overview

mpl_compare = pytest.mark.mpl_image_compare(
savefig_kwargs={"bbox_inches": "tight"},
Expand Down