mirror of
https://github.com/1j01/textual-paint.git
synced 2025-01-09 00:28:08 +03:00
Fix type checker errors and ignore one
This commit is contained in:
parent
62fb218a1a
commit
fc279f0574
@ -853,6 +853,7 @@ class Inspector(Container):
|
||||
used_boxes: list[Container] = []
|
||||
def show_box(name: str, region: Region, color: str) -> None:
|
||||
"""Draw a box to the screen."""
|
||||
assert isinstance(dom_node, Widget), "dom_node needed for association with highlight box, but got: " + repr(dom_node)
|
||||
try:
|
||||
box = self._highlight_boxes[dom_node][name]
|
||||
except KeyError:
|
||||
@ -877,7 +878,7 @@ class Inspector(Container):
|
||||
# show_box("region", dom_node.region, "blue")
|
||||
# show_box("scrollable_content_region", dom_node.scrollable_content_region, "red")
|
||||
try:
|
||||
map_geometry = self.screen.find_widget(dom_node)
|
||||
map_geometry = self.screen.find_widget(dom_node) # type: ignore
|
||||
except NoWidget:
|
||||
return
|
||||
# Show the hovered widget's region, as it extends OUTSIDE of the clip region
|
||||
|
Loading…
Reference in New Issue
Block a user