File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 19
19
- id : trailing-whitespace
20
20
21
21
- repo : https://github.com/astral-sh/ruff-pre-commit
22
- rev : " v0.0.281 "
22
+ rev : " v0.0.282 "
23
23
hooks :
24
24
- id : ruff
25
25
args : ["--fix", "--show-fixes"]
@@ -31,10 +31,10 @@ repos:
31
31
files : src
32
32
additional_dependencies :
33
33
- rich>=12
34
- - click==8.1.3
34
+ - click
35
35
- hist
36
36
- numpy
37
- - textual>=0.27
37
+ - textual>=0.32
38
38
39
39
- repo : https://github.com/codespell-project/codespell
40
40
rev : v2.2.5
Original file line number Diff line number Diff line change 12
12
import textual .widget
13
13
import textual .widgets
14
14
15
+ try :
16
+ from textual .widgets import RichLog
17
+ except ImportError :
18
+ from textual .widgets import ( # type: ignore[attr-defined,no-redef]
19
+ TextLog as RichLog ,
20
+ )
21
+
15
22
import uproot_browser .plot
16
23
17
24
LOGO = """\
@@ -103,7 +110,7 @@ def __rich_console__(
103
110
yield rich .traceback .Traceback .from_exception (* self .exc , width = width )
104
111
105
112
106
- class ErrorWidget (textual . widgets . TextLog ):
113
+ class ErrorWidget (RichLog ):
107
114
_exc : Error | None
108
115
109
116
@property
You can’t perform that action at this time.
0 commit comments