Commit cc987598 authored by payno's avatar payno

more `black` style

parent df4a7e09
......@@ -316,9 +316,7 @@ class Node(object):
error_handler_json = (
self._error_handler.to_json() if self._error_handler else {}
)
return {
self._JSON_ERROR_HANDLER: error_handler_json,
}
return {self._JSON_ERROR_HANDLER: error_handler_json}
@staticmethod
def load_node_info_from_json(json_data: dict) -> tuple:
......
......@@ -403,10 +403,7 @@ class Scheme(object):
node_ids = defaultdict(count().__next__)
builder.start("nodes", {})
for node in self.nodes: # type: SchemeNode
attrs = {
"id": node.id,
"qualified_name": node._qualified_name,
}
attrs = {"id": node.id, "qualified_name": node._qualified_name}
if type(node) is not Node:
attrs["scheme_node_type"] = "%s.%s" % (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment