-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaner implementation of Predicate __init__ and __new__
Instead of having the metaclass create a new __init__ for each Predicate sub-class, have a single common __init__ and have __new__ test to make sure only sub-classes are instantiated. This is cleaner and also works better with pylint. Thanks to @florianfisher91 for pointing this out.
- Loading branch information
Showing
1 changed file
with
20 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters