Move DirectoryTree.FileSelected.path's doc to inline style

This brings it in line with the documentation for other widgets and their
messages.
This commit is contained in:
Dave Pearson
2023-05-02 14:19:55 +01:00
parent 8a29c7ea2c
commit 16931a8563

View File

@@ -73,14 +73,12 @@ class DirectoryTree(Tree[DirEntry]):
Can be handled using `on_directory_tree_file_selected` in a subclass of
`DirectoryTree` or in a parent widget in the DOM.
Attributes:
path: The path of the file that was selected.
"""
def __init__(self, path: str) -> None:
self.path: str = path
super().__init__()
self.path: str = path
"""The path of the file that was selected."""
def __init__(
self,