mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Reorder some imports
This commit is contained in:
@@ -18,12 +18,12 @@ from textual.containers import Container, Horizontal
|
||||
from textual.reactive import reactive, watch
|
||||
from textual.widgets import (
|
||||
Button,
|
||||
Switch,
|
||||
DataTable,
|
||||
Footer,
|
||||
Header,
|
||||
Input,
|
||||
Static,
|
||||
Switch,
|
||||
TextLog,
|
||||
)
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ from ..case import camel_to_snake
|
||||
# be able to "see" them.
|
||||
if typing.TYPE_CHECKING:
|
||||
from ._button import Button
|
||||
from ._switch import Switch
|
||||
from ._data_table import DataTable
|
||||
from ._directory_tree import DirectoryTree
|
||||
from ._footer import Footer
|
||||
@@ -21,6 +20,7 @@ if typing.TYPE_CHECKING:
|
||||
from ._placeholder import Placeholder
|
||||
from ._pretty import Pretty
|
||||
from ._static import Static
|
||||
from ._switch import Switch
|
||||
from ._text_log import TextLog
|
||||
from ._tree import Tree
|
||||
from ._welcome import Welcome
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
# This stub file must re-export every classes exposed in the __init__.py's `__all__` list:
|
||||
from ._button import Button as Button
|
||||
from ._data_table import DataTable as DataTable
|
||||
from ._switch import Switch as Switch
|
||||
from ._directory_tree import DirectoryTree as DirectoryTree
|
||||
from ._footer import Footer as Footer
|
||||
from ._header import Header as Header
|
||||
from ._input import Input as Input
|
||||
from ._label import Label as Label
|
||||
from ._list_view import ListView as ListView
|
||||
from ._list_item import ListItem as ListItem
|
||||
from ._placeholder import Placeholder as Placeholder
|
||||
from ._pretty import Pretty as Pretty
|
||||
from ._static import Static as Static
|
||||
from ._input import Input as Input
|
||||
from ._switch import Switch as Switch
|
||||
from ._text_log import TextLog as TextLog
|
||||
from ._tree import Tree as Tree
|
||||
from ._tree_node import TreeNode as TreeNode
|
||||
|
||||
@@ -152,7 +152,7 @@ def test_focus_next_and_previous_with_type_selector_without_self():
|
||||
screen = app.screen
|
||||
|
||||
from textual.containers import Horizontal, Vertical
|
||||
from textual.widgets import Button, Switch, Input
|
||||
from textual.widgets import Button, Input, Switch
|
||||
|
||||
screen._add_children(
|
||||
Vertical(
|
||||
|
||||
Reference in New Issue
Block a user