cleanup python usages

This commit is contained in:
OMGeeky
2023-10-22 00:07:57 +02:00
parent 5b2da0380b
commit b09392b768
6 changed files with 7 additions and 24 deletions

View File

@@ -4,10 +4,7 @@
<%namespace name="mbuild" file="../lib/mbuild.mako"/>\
<%namespace name="schema" file="../lib/schema.mako"/>\
<%
from generator.lib.util import (new_context, rust_comment, rust_doc_comment, rust_module_doc_comment,
rb_type, hub_type, mangle_ident, hub_type_params_s,
rb_type_params_s, find_fattest_resource, HUB_TYPE_PARAMETERS, METHODS_RESOURCE,
UNUSED_TYPE_MARKER, schema_markers)
from generator.lib.util import (new_context, hub_type, hub_type_params_s)
c = new_context(schemas, resources)
hub_type = hub_type(c.schemas, util.canonical_name())

View File

@@ -4,10 +4,8 @@
<%namespace name="mbuild" file="../lib/mbuild.mako"/>\
<%namespace name="schema" file="../lib/schema.mako"/>\
<%
from generator.lib.util import (new_context, rust_comment, rust_doc_comment, rust_module_doc_comment,
rb_type, hub_type, mangle_ident, hub_type_params_s,
rb_type_params_s, find_fattest_resource, HUB_TYPE_PARAMETERS, METHODS_RESOURCE,
UNUSED_TYPE_MARKER, schema_markers)
from generator.lib.util import (new_context, rust_doc_comment, rb_type, hub_type, mangle_ident, hub_type_params_s,
rb_type_params_s, HUB_TYPE_PARAMETERS)
c = new_context(schemas, resources)
hub_type = hub_type(c.schemas, util.canonical_name())

View File

@@ -4,10 +4,7 @@
<%namespace name="mbuild" file="../lib/mbuild.mako"/>\
<%namespace name="schema" file="../lib/schema.mako"/>\
<%
from generator.lib.util import (new_context, rust_comment, rust_doc_comment, rust_module_doc_comment,
rb_type, hub_type, mangle_ident, hub_type_params_s,
rb_type_params_s, find_fattest_resource, HUB_TYPE_PARAMETERS, METHODS_RESOURCE,
UNUSED_TYPE_MARKER, schema_markers)
from generator.lib.util import (new_context, hub_type, hub_type_params_s)
c = new_context(schemas, resources)
hub_type = hub_type(c.schemas, util.canonical_name())

View File

@@ -4,10 +4,7 @@
<%namespace name="mbuild" file="../lib/mbuild.mako"/>\
<%namespace name="schema" file="../lib/schema.mako"/>\
<%
from generator.lib.util import (new_context, rust_comment, rust_doc_comment, rust_module_doc_comment,
rb_type, hub_type, mangle_ident, hub_type_params_s,
rb_type_params_s, find_fattest_resource, HUB_TYPE_PARAMETERS, METHODS_RESOURCE,
UNUSED_TYPE_MARKER, schema_markers)
from generator.lib.util import (new_context, hub_type, hub_type_params_s)
c = new_context(schemas, resources)
hub_type = hub_type(c.schemas, util.canonical_name())

View File

@@ -4,10 +4,7 @@
<%namespace name="mbuild" file="../lib/mbuild.mako"/>\
<%namespace name="schema" file="../lib/schema.mako"/>\
<%
from generator.lib.util import (new_context, rust_comment, rust_doc_comment, rust_module_doc_comment,
rb_type, hub_type, mangle_ident, hub_type_params_s,
rb_type_params_s, find_fattest_resource, HUB_TYPE_PARAMETERS, METHODS_RESOURCE,
UNUSED_TYPE_MARKER, schema_markers)
from generator.lib.util import (new_context, hub_type, hub_type_params_s, UNUSED_TYPE_MARKER, schema_markers)
c = new_context(schemas, resources)
hub_type = hub_type(c.schemas, util.canonical_name())

View File

@@ -4,10 +4,7 @@
<%namespace name="mbuild" file="../lib/mbuild.mako"/>\
<%namespace name="schema" file="../lib/schema.mako"/>\
<%
from generator.lib.util import (new_context, rust_comment, rust_doc_comment, rust_module_doc_comment,
rb_type, hub_type, mangle_ident, hub_type_params_s,
rb_type_params_s, find_fattest_resource, HUB_TYPE_PARAMETERS, METHODS_RESOURCE,
UNUSED_TYPE_MARKER, schema_markers)
from generator.lib.util import (new_context, hub_type, hub_type_params_s)
c = new_context(schemas, resources)
hub_type = hub_type(c.schemas, util.canonical_name())