Skip to content

Commit ea978c6

Browse files
authored
chore: Fix UP006 (#7633)
1 parent 40e1bbe commit ea978c6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

notebook/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
HERE = Path(__file__).parent.resolve()
4141

42-
Flags = t.Dict[t.Union[str, t.Tuple[str, ...]], t.Tuple[t.Union[t.Dict[str, t.Any], Config], str]]
42+
Flags = dict[t.Union[str, tuple[str, ...]], tuple[t.Union[dict[str, t.Any], Config], str]]
4343

4444
app_dir = Path(get_app_dir())
4545
version = __version__

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ ignore = [
267267
"PLR", # Design related pylint codes
268268
"C408", "C416", # Unnecessary `dict` call (rewrite as a literal)
269269
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
270-
"UP006", # non-pep585-annotation
271270
]
272271

273272
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)