diff --git a/tests/utils.py b/tests/utils.py index af0434c8..92f10883 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,6 +1,8 @@ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. +from __future__ import annotations + from datetime import datetime from typing import Any, Dict, List @@ -16,7 +18,7 @@ def get_path(self, id: str) -> str: class FakeContentsManager: - def __init__(self, model: Dict[str, str]): + def __init__(self, model: dict[str, str]): self.model = { "name": "", "path": "", @@ -30,7 +32,7 @@ def __init__(self, model: Dict[str, str]): } self.model.update(model) - self.actions: List[str] = [] + self.actions: list[str] = [] def get( self, path: str, content: bool = True, format: str | None = None, type: str | None = None