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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: memoryframes
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: Add your description here
5
5
  Author: David Brownell
6
6
  Author-email: David Brownell <github@DavidBrownell.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "MemoryFrames"
3
- version = "0.3.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
@@ -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
- pass
19
- # TODO: # Avoid circular import issues by importing here
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
- # TODO: assert isinstance(self, (TextualUserExperienceInfo,)), self
21
+ assert isinstance(
22
+ self,
23
+ (TextualUserExperienceInfo,),
24
+ ), self
File without changes