From a881bb5f87cc7f96e09a8a9c49eb415069f8b6da Mon Sep 17 00:00:00 2001 From: Carlos Herrero <26092748+hbcarlos@users.noreply.github.com> Date: Thu, 27 Jul 2023 16:36:41 +0200 Subject: [PATCH] CI --- tests/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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