Skip to content

Commit

Permalink
Apply typing suggestions from @rmartin16
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Jun 11, 2024
1 parent aceaca3 commit 8a0886f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions core/src/toga/widgets/splitcontainer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from __future__ import annotations

import sys
from typing import TYPE_CHECKING, Sequence
from collections.abc import Sequence
from typing import TYPE_CHECKING

from toga.app import App
from toga.constants import Direction
Expand Down Expand Up @@ -42,10 +43,7 @@ def __init__(
of the container. Defaults to both panels being empty.
"""
super().__init__(id=id, style=style)
self._content: Sequence[SplitContainerContentT] = [
None,
None,
]
self._content: list[SplitContainerContentT] = [None, None]

# Create a platform specific implementation of a SplitContainer
self._impl = self.factory.SplitContainer(interface=self)
Expand All @@ -72,7 +70,7 @@ def focus(self) -> None:
pass

@property
def content(self) -> Sequence[SplitContainerContentT]:
def content(self) -> list[SplitContainerContentT]:
"""The widgets displayed in the SplitContainer.
This property accepts a sequence of exactly 2 elements, each of which can be
Expand Down

0 comments on commit 8a0886f

Please sign in to comment.