Skip to content

Commit 593fee4

Browse files
committed
refactor(components): declare abstract static wrap in ScrollViewBase
1 parent d236d89 commit 593fee4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/pythonnative/scroll_view.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ def __init__(self) -> None:
1919
def add_view(self, view: Any) -> None:
2020
pass
2121

22+
@staticmethod
23+
@abstractmethod
24+
def wrap(view: Any) -> "ScrollViewBase":
25+
"""Return a new ScrollView containing the provided view as its only child."""
26+
pass
27+
2228

2329
if IS_ANDROID:
2430
# ========================================

0 commit comments

Comments
 (0)