Skip to content

Commit

Permalink
Added a class property 'filters' to all _IterObject classes to return…
Browse files Browse the repository at this point in the history
… the _filters dictionary for the class.
  • Loading branch information
satoon101 committed Nov 17, 2015
1 parent edf70c4 commit 6581ce2
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -17,6 +17,11 @@ def __new__(mcs, name, bases, odict):
# Create the _filters dictionary
cls._filters = dict()

# Create the filters property
cls.__class__.filters = property(
lambda cls: cls._filters,
doc='Return the class filters dictionary.')

# Return the class
return cls

Expand Down

0 comments on commit 6581ce2

Please sign in to comment.