diff --git a/docs/source/changelogs/v3.rst b/docs/source/changelogs/v3.rst index 6bf60f09..12d3d884 100644 --- a/docs/source/changelogs/v3.rst +++ b/docs/source/changelogs/v3.rst @@ -4,6 +4,11 @@ Versions 3.0+ Changelog These are all the changelogs for stable releases of hikari-miru (version 3.0.0 to present). +Version 3.3.1 +============= + +- Fix ``View.last_context`` and ``Modal.last_context`` incorrectly casting variable types. + Version 3.3.0 ============= diff --git a/miru/__init__.py b/miru/__init__.py index fa498d89..49e4be4d 100644 --- a/miru/__init__.py +++ b/miru/__init__.py @@ -48,7 +48,7 @@ "get_view", ) -__version__ = "3.3.0" +__version__ = "3.3.1" # MIT License # diff --git a/miru/modal.py b/miru/modal.py index 577c6ccc..0f0b5055 100644 --- a/miru/modal.py +++ b/miru/modal.py @@ -15,8 +15,7 @@ from .abc.item_handler import ItemHandler from .context.modal import ModalContext -if t.TYPE_CHECKING: - ModalContextT = t.TypeVar("ModalContextT", bound=ModalContext) +ModalContextT = t.TypeVar("ModalContextT", bound=ModalContext) __all__ = ("Modal",) diff --git a/miru/view.py b/miru/view.py index 2e9731c6..9577a3b4 100644 --- a/miru/view.py +++ b/miru/view.py @@ -21,8 +21,7 @@ logger = logging.getLogger(__name__) -if t.TYPE_CHECKING: - ViewContextT = t.TypeVar("ViewContextT", bound=ViewContext) +ViewContextT = t.TypeVar("ViewContextT", bound=ViewContext) __all__ = ( "View",