mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove some unused exceptions
This commit is contained in:
@@ -528,7 +528,6 @@ class Color(NamedTuple):
|
|||||||
# Color constants
|
# Color constants
|
||||||
WHITE = Color(255, 255, 255)
|
WHITE = Color(255, 255, 255)
|
||||||
BLACK = Color(0, 0, 0)
|
BLACK = Color(0, 0, 0)
|
||||||
TRANSPARENT = Color(0, 0, 0, 0)
|
|
||||||
|
|
||||||
|
|
||||||
def rgb_to_lab(rgb: Color) -> Lab:
|
def rgb_to_lab(rgb: Color) -> Lab:
|
||||||
|
|||||||
@@ -75,10 +75,6 @@ class NoScreen(DOMError):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class NoParent(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
@rich.repr.auto
|
@rich.repr.auto
|
||||||
class DOMNode(MessagePump):
|
class DOMNode(MessagePump):
|
||||||
"""The base class for object that can be in the Textual DOM (App and Widget)"""
|
"""The base class for object that can be in the Textual DOM (App and Widget)"""
|
||||||
|
|||||||
@@ -29,10 +29,6 @@ if TYPE_CHECKING:
|
|||||||
from .app import App
|
from .app import App
|
||||||
|
|
||||||
|
|
||||||
class NoParent(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class CallbackError(Exception):
|
class CallbackError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user