You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to have type checking but avoid importing textual.widgets._tree.TreeNode. Unfortunately textual.widgets.TreeNode isn't something that is importable or exported.
This seems like a duplicate of #992 but I'm not sure if there was a regression, or if the issue was never actually fixed.
Using 0.73.0
$ python -c 'from textual.widgets import TreeNode'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/venvs/versioned/algovenv11-1.0.95/lib/python3.10/site-packages/textual/widgets/__init__.py", line 103, in __getattr__
raise ImportError(f"Package 'textual.widgets' has no class '{widget_class}'")
ImportError: Package 'textual.widgets' has no class 'TreeNode'
$ python -c 'from textual.widgets._tree import TreeNode'
The text was updated successfully, but these errors were encountered:
I want to have type checking but avoid importing
textual.widgets._tree.TreeNode
. Unfortunatelytextual.widgets.TreeNode
isn't something that is importable or exported.This seems like a duplicate of #992 but I'm not sure if there was a regression, or if the issue was never actually fixed.
Using 0.73.0
The text was updated successfully, but these errors were encountered: