Skip to content

Commit

Permalink
some more linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kakulukia committed May 22, 2024
1 parent 42eaa6f commit 4f38203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypugjs/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ def extract_classes(cls):
for k, v in attrs:
if undefined is not None and isinstance(v, undefined):
continue
if v is not None and (v or type(v) is not bool):
if v is not None and (v or isinstance(v, bool)):
if k == 'class':
v = u' '.join(extract_classes(v))
t = v and type(v) is bool
t = v and isinstance(v, bool)
if t and not terse:
v = k
buf.append(u'%s' % k if terse and t else u'%s="%s"' % (k, escape(v)))
Expand Down

0 comments on commit 4f38203

Please sign in to comment.