Skip to content

Commit

Permalink
[py2] fix RuleTable inheritance check
Browse files Browse the repository at this point in the history
  • Loading branch information
sdrave committed Apr 20, 2017
1 parent 6ac95a0 commit 1061f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymor/algorithms/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class RuleTableMeta(type):
def __new__(cls, name, parents, dct):
assert 'rules' not in dct
rules = []
if not {p.__name__ for p in parents} <= {'RuleTable'}:
if not {p.__name__ for p in parents} <= {'RuleTable', 'object'}:
raise NotImplementedError('Inheritance for RuleTables not implemented yet.')
for k, v in dct.items():
if isinstance(v, rule):
Expand Down

0 comments on commit 1061f5a

Please sign in to comment.