Skip to content

Commit

Permalink
putting tuple of classes in isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
iambibhas committed Jul 15, 2020
1 parent 346a7b9 commit 7bf59a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baseframe/__init__.py
Expand Up @@ -114,7 +114,7 @@ def default(self, o):
return dict(o)
if isinstance(o, furl):
return o.url
if isinstance(o, types.GeneratorType) or isinstance(o, abc.Set):
if isinstance(o, (types.GeneratorType, abc.Set)):
return list(o)
if isinstance(o, MarkdownComposite):
return {'text': o.text, 'html': o.html}
Expand Down

0 comments on commit 7bf59a6

Please sign in to comment.