tools/spec: conform argument spacing to PEP8
This commit is contained in:
parent
7aca56ce9e
commit
a1e15882f6
@ -614,6 +614,7 @@ class Extension(Type):
|
||||
|
||||
###############################################################################
|
||||
def ignore_node(types: Dict[str, Type], root):
|
||||
types, root
|
||||
pass
|
||||
|
||||
parse_comment = ignore_node
|
||||
@ -736,7 +737,6 @@ def write_header(path: str, q: List[Type], reg: Registry):
|
||||
dst.write(obj.define(reg))
|
||||
dst.write('\n')
|
||||
|
||||
|
||||
# Define the default case for device and instance type traits.
|
||||
dst.write("""
|
||||
#include <type_traits>
|
||||
@ -868,7 +868,6 @@ def write_dispatch(path: str, q: List[Type], reg: Registry):
|
||||
else:
|
||||
raise Exception("Unknown param type")
|
||||
|
||||
|
||||
dispatch.write(f"""
|
||||
extern "C" {obj.result} {rename(obj.name)} ({", ".join(p.param for p in obj.params)}) noexcept {{
|
||||
using first_arg_t = std::decay_t<decltype({obj.params[0].name})>;
|
||||
|
Loading…
Reference in New Issue
Block a user