memoryframes 0.3.0__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {memoryframes-0.3.0 → memoryframes-0.4.0}/PKG-INFO +1 -1
- {memoryframes-0.3.0 → memoryframes-0.4.0}/pyproject.toml +1 -1
- memoryframes-0.4.0/src/MemoryFrames/PluginInfra/TextualUserExperienceInfo.py +23 -0
- {memoryframes-0.3.0 → memoryframes-0.4.0}/src/MemoryFrames/PluginInfra/UserExperienceInfo.py +6 -4
- {memoryframes-0.3.0 → memoryframes-0.4.0}/README.md +0 -0
- {memoryframes-0.3.0 → memoryframes-0.4.0}/src/MemoryFrames/PluginInfra/Note.py +0 -0
- {memoryframes-0.3.0 → memoryframes-0.4.0}/src/MemoryFrames/PluginInfra/NoteSource.py +0 -0
- {memoryframes-0.3.0 → memoryframes-0.4.0}/src/MemoryFrames/PluginInfra/Plugin.py +0 -0
- {memoryframes-0.3.0 → memoryframes-0.4.0}/src/MemoryFrames/PluginInfra/README.md +0 -0
- {memoryframes-0.3.0 → memoryframes-0.4.0}/src/MemoryFrames/PluginInfra/__init__.py +0 -0
- {memoryframes-0.3.0 → memoryframes-0.4.0}/src/MemoryFrames/__init__.py +0 -0
- {memoryframes-0.3.0 → memoryframes-0.4.0}/src/MemoryFrames/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "MemoryFrames"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.4.0"
|
|
4
4
|
# ^^^^^
|
|
5
5
|
# Wheel names will be generated according to this value. Do not manually modify this value; instead
|
|
6
6
|
# update it according to committed changes by running this command from the root of the repository:
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING
|
|
2
|
+
|
|
3
|
+
from MemoryFrames.PluginInfra.UserExperienceInfo import UserExperienceInfo
|
|
4
|
+
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
from textual.app import App
|
|
7
|
+
from textual.containers import Vertical
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# ----------------------------------------------------------------------
|
|
11
|
+
class TextualUserExperienceInfo(UserExperienceInfo):
|
|
12
|
+
"""User experience that leverages Textual for TUI capabilities."""
|
|
13
|
+
|
|
14
|
+
# ----------------------------------------------------------------------
|
|
15
|
+
def __init__(
|
|
16
|
+
self,
|
|
17
|
+
app: App,
|
|
18
|
+
hierarchy_container: Vertical,
|
|
19
|
+
) -> None:
|
|
20
|
+
super().__init__()
|
|
21
|
+
|
|
22
|
+
self.app = app
|
|
23
|
+
self.hierarchy_container = hierarchy_container
|
{memoryframes-0.3.0 → memoryframes-0.4.0}/src/MemoryFrames/PluginInfra/UserExperienceInfo.py
RENAMED
|
@@ -15,8 +15,10 @@ class UserExperienceInfo:
|
|
|
15
15
|
# to introduce a new user experience type (as all plugins, across the world, must be
|
|
16
16
|
# updated to support it.
|
|
17
17
|
if not sys.flags.optimize:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
# TODO: from MemoryFrames.PluginInfra.TextualUserExperienceInfo import TextualUserExperienceInfo
|
|
18
|
+
# Avoid circular import issues by importing here
|
|
19
|
+
from MemoryFrames.PluginInfra.TextualUserExperienceInfo import TextualUserExperienceInfo # noqa: PLC0415
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
assert isinstance(
|
|
22
|
+
self,
|
|
23
|
+
(TextualUserExperienceInfo,),
|
|
24
|
+
), self
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|