From feeeb2794090ec24f46f84f6850074b284e42757 Mon Sep 17 00:00:00 2001 From: gandalfr-KY <90887153+gandalfr-KY@users.noreply.github.com> Date: Thu, 21 Mar 2024 21:40:25 +0900 Subject: [PATCH] Typing -> Type --- nanobind_stubgen/NanobindStubsGenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nanobind_stubgen/NanobindStubsGenerator.py b/nanobind_stubgen/NanobindStubsGenerator.py index 5f55a20..8bbb07f 100644 --- a/nanobind_stubgen/NanobindStubsGenerator.py +++ b/nanobind_stubgen/NanobindStubsGenerator.py @@ -76,7 +76,7 @@ def export(self, output_path: Path, intent: int = 0): module_path = output_path.joinpath(f"{self.name}.pyi") # create init file - out = [f"from typing import Any, Optional, overload, Typing, Sequence, Iterable, Union, Callable", + out = [f"from typing import Any, Optional, overload, Type, Sequence, Iterable, Union, Callable", f"from enum import Enum", f"import {self.import_path}"]