Skip to content

Commit cecd1ff

Browse files
committed
Version 0.0.7
Properly emit default namespace classes
1 parent 4567f17 commit cecd1ff

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

UnityPyTypetreeCodegen/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = (0, 0, 6)
1+
__version__ = (0, 0, 7)

UnityPyTypetreeCodegen/__main__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,12 @@ def emit_line(*lines: str):
295295
if not lines:
296296
f.write("\n")
297297

298-
namespace = namespace or "<default namespace>"
299-
logger.info(f"Subpass 1: Generating class dependency graph for {namespace}")
298+
logger.info(
299+
f"Subpass 1: Generating class dependency graph for {namespace or "<default namespace>"}"
300+
)
300301
emit_line("# fmt: off")
301302
emit_line("# Auto-generated by https://github.com/mos9527/UnityPyTypetreeCodegen")
302-
emit_line(f"# Python definition for {namespace}", "")
303+
emit_line(f"# Python definition for {namespace or "<default namespace>"}", "")
303304
if import_root:
304305
emit_line(f"from {import_root} import *")
305306
for clazz, parent in import_defs.items():

0 commit comments

Comments
 (0)