From 4c16a6fd5f3cea4ef795a682139587b9c25cd900 Mon Sep 17 00:00:00 2001 From: nanoric Date: Thu, 24 Jan 2019 05:04:40 -0400 Subject: [PATCH] [Mod] rename hint.py into hint.py.in MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit python的template容易让linter报错,设置来设置去太麻烦,就改名吧. --- binding/generator/autocxxpy/generator.py | 2 +- binding/generator/templates/{hint.py => hint.py.in} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename binding/generator/templates/{hint.py => hint.py.in} (100%) diff --git a/binding/generator/autocxxpy/generator.py b/binding/generator/autocxxpy/generator.py index 0a6977f5..0698e3a3 100644 --- a/binding/generator/autocxxpy/generator.py +++ b/binding/generator/autocxxpy/generator.py @@ -207,7 +207,7 @@ class Generator: hint_code += enum_code self._save_template( - template_filename="hint.py", + template_filename="hint.py.in", output_filename=f"{self.options.module_name}.pyi", hint_code=hint_code ) diff --git a/binding/generator/templates/hint.py b/binding/generator/templates/hint.py.in similarity index 100% rename from binding/generator/templates/hint.py rename to binding/generator/templates/hint.py.in