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
|
||||
WHITE = Color(255, 255, 255)
|
||||
BLACK = Color(0, 0, 0)
|
||||
TRANSPARENT = Color(0, 0, 0, 0)
|
||||
|
||||
|
||||
def rgb_to_lab(rgb: Color) -> Lab:
|
||||
|
||||
@@ -75,10 +75,6 @@ class NoScreen(DOMError):
|
||||
pass
|
||||
|
||||
|
||||
class NoParent(Exception):
|
||||
pass
|
||||
|
||||
|
||||
@rich.repr.auto
|
||||
class DOMNode(MessagePump):
|
||||
"""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
|
||||
|
||||
|
||||
class NoParent(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class CallbackError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user