Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 6, 2023
1 parent 9a60262 commit 1ad261c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion tests/orm/utils/test_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ def test_serialize_round_trip():
node_a = orm.Data().store()
node_b = orm.Data().store()

data = {'test': 1, 'list': [1, 2, 3, node_a], 'dict': {('Si',): node_b, 'foo': 'bar'}, 'baz': 'aar'}
data = {
'test': 1,
'list': [1, 2, 3, node_a],
'dict': {('Si',): node_b,
'foo': 'bar'},
'baz': 'aar'
}

serialized_data = serialize.serialize(data)
deserialized_data = serialize.deserialize_unsafe(serialized_data)
Expand Down
4 changes: 3 additions & 1 deletion tests/sphinxext/workchains/demo_workchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def define(cls, spec):
spec.input_namespace('y.nested', help='A nested namespace.')
spec.input('y.nested.a', valid_type=Int, help='An input in the nested namespace.')
spec.input_namespace('nsp', help='A separate namespace, ``nsp``.')
spec.input_namespace('nsp2',)
spec.input_namespace(
'nsp2',
)
spec.output('z', valid_type=Bool, help='Output of the demoworkchain.')

spec.outline( # yapf: disable
Expand Down

0 comments on commit 1ad261c

Please sign in to comment.