From 8887f339cae3a67ad4582276d8837398e179bc78 Mon Sep 17 00:00:00 2001 From: Jonathan Plasse Date: Fri, 3 Jan 2025 12:50:02 +0100 Subject: [PATCH] Fix bpy.typing confused as std typing --- src/fake_bpy_module/generator/writers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fake_bpy_module/generator/writers.py b/src/fake_bpy_module/generator/writers.py index 7b651c40..0513a079 100644 --- a/src/fake_bpy_module/generator/writers.py +++ b/src/fake_bpy_module/generator/writers.py @@ -647,6 +647,8 @@ def write(self, filename: str, document: nodes.document, child_nodes = find_children(child_list_node, ChildModuleNode) children = [node.astext() for node in child_nodes] for child in sorted(children): + if child == "typing": + continue wt.addln(f"from . import {child} as {child}") if len(children) > 0: wt.new_line()