Skip to content

Commit

Permalink
Merge pull request #21 from redcanari/adding-support-for-abstract-tra…
Browse files Browse the repository at this point in the history
…nsforms

Ignoring transform classes that have a `None` input type.
  • Loading branch information
allfro committed Jun 5, 2017
2 parents f004063 + 50d003e commit 355837e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canari/pkgutils/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def import_package(pkg):

def find_all_subclasses(self, cls):
for subclass in cls.__subclasses__():
if subclass.__module__.startswith(self._package_name):
if subclass.__module__.startswith(self._package_name) and subclass.input_type:
yield subclass
for sub_subclass in self.find_all_subclasses(subclass):
yield sub_subclass
Expand Down

0 comments on commit 355837e

Please sign in to comment.