Skip to content

Commit

Permalink
Fix bpy.typing confused as std typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Plasse committed Jan 3, 2025
1 parent b2a1bea commit 8887f33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fake_bpy_module/generator/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8887f33

Please sign in to comment.