diff --git a/notebook/app.py b/notebook/app.py index bfd0dce2b9..0dd84e9841 100644 --- a/notebook/app.py +++ b/notebook/app.py @@ -39,7 +39,7 @@ HERE = Path(__file__).parent.resolve() -Flags = t.Dict[t.Union[str, t.Tuple[str, ...]], t.Tuple[t.Union[t.Dict[str, t.Any], Config], str]] +Flags = dict[t.Union[str, tuple[str, ...]], tuple[t.Union[dict[str, t.Any], Config], str]] app_dir = Path(get_app_dir()) version = __version__ diff --git a/pyproject.toml b/pyproject.toml index 804f77dc1a..21b224bcf7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -267,7 +267,6 @@ ignore = [ "PLR", # Design related pylint codes "C408", "C416", # Unnecessary `dict` call (rewrite as a literal) "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` - "UP006", # non-pep585-annotation ] [tool.ruff.lint.per-file-ignores]