Skip to content

Commit

Permalink
fix type error for GenericAlias
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbduncan committed Sep 27, 2023
1 parent 584f3fc commit 6698bbb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/tree/test_tree_availability.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from typing import Any

from textual import on
Expand Down Expand Up @@ -33,19 +35,19 @@ def record(
)

@on(Tree.NodeSelected)
def node_selected(self, event: Tree.NodeSelected) -> None:
def node_selected(self, event: Tree.NodeSelected[None]) -> None:
self.record(event)

@on(Tree.NodeExpanded)
def node_expanded(self, event: Tree.NodeExpanded) -> None:
def node_expanded(self, event: Tree.NodeExpanded[None]) -> None:
self.record(event)

@on(Tree.NodeCollapsed)
def node_collapsed(self, event: Tree.NodeCollapsed) -> None:
def node_collapsed(self, event: Tree.NodeCollapsed[None]) -> None:
self.record(event)

@on(Tree.NodeHighlighted)
def node_highlighted(self, event: Tree.NodeHighlighted) -> None:
def node_highlighted(self, event: Tree.NodeHighlighted[None]) -> None:
self.record(event)


Expand Down

0 comments on commit 6698bbb

Please sign in to comment.