Skip to content

Commit 313b57c

Browse files
committed
Allow Sort nodes as child of ListNodeOperator too.
1 parent 69f476f commit 313b57c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ppp_datamodel/nodes/list_operators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class ListNodeOperator(AbstractNode):
1515

1616
def _check_attributes(self, attributes):
1717
super(ListNodeOperator, self)._check_attributes(attributes)
18-
if not isinstance(attributes['list'], List):
18+
if not isinstance(attributes['list'], (List, Sort)):
1919
raise TypeError('The “list” argument of the %s constructor '
20-
'should be a List node, not %r' %
20+
'should be a List or Sort node, not %r' %
2121
(self.__class__.__name__, attributes['list']))
2222

2323
class ListOperator(AbstractNode):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='ppp_datamodel',
7-
version='0.5.18',
7+
version='0.5.19',
88
description='Data model for the Projet Pensées Profondes.',
99
url='https://github.com/ProjetPP/PPP-datamodel-Python',
1010
author='Valentin Lorentz',

0 commit comments

Comments
 (0)