Skip to content

Commit

Permalink
bump version to 0.7.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Dec 26, 2023
1 parent e3ee349 commit 24ead09
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions magicclass/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.7.7.dev0"
__version__ = "0.7.7"

from .core import (
magicclass,
Expand All @@ -20,7 +20,6 @@
bind_key,
confirm,
nogui,
mark_preview,
impl_preview,
setup_function_gui,
mark_on_calling,
Expand Down Expand Up @@ -59,7 +58,6 @@
"bind_key",
"confirm",
"nogui",
"mark_preview",
"impl_preview",
"setup_function_gui",
"mark_on_calling",
Expand Down Expand Up @@ -135,4 +133,14 @@ def __getattr__(key: str):

return Key

elif key == "mark_preview":
warnings.warn(
"Function `mark_preview` is deprecated. Use `impl_preview` instead.",
DeprecationWarning,
stacklevel=2,
)
from .wrappers import impl_preview

return impl_preview

raise AttributeError(f"module {__name__!r} has no attribute {key!r}")

0 comments on commit 24ead09

Please sign in to comment.