From 961a4a901c0ecb2c66d70ff92d7adcc91e3d5026 Mon Sep 17 00:00:00 2001 From: sigma67 Date: Tue, 10 Sep 2024 08:10:20 +0200 Subject: [PATCH] remove typing extensions --- .gitignore | 1 + cmake_file_api/kinds/api.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index dfdbb0e..16f66c2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /.venv *.egg-info *.py[co] +.idea diff --git a/cmake_file_api/kinds/api.py b/cmake_file_api/kinds/api.py index 9346f6b..cd477b0 100644 --- a/cmake_file_api/kinds/api.py +++ b/cmake_file_api/kinds/api.py @@ -1,6 +1,5 @@ from pathlib import Path from typing import Protocol -from typing_extensions import Self from .kind import ObjectKind from .cache.api import CACHE_API @@ -14,7 +13,7 @@ class CMakeApiType(Protocol): KIND: ObjectKind @classmethod - def from_path(cls, path: Path, reply_path: Path) -> Self: + def from_path(cls, path: Path, reply_path: Path) -> "CMakeApiType": ... OBJECT_KINDS_API: dict[ObjectKind, dict[int, CMakeApiType]] = {