Skip to content

Commit 3a2640e

Browse files
committed
mypy
1 parent dfaf8f5 commit 3a2640e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bikeshed/h/serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def startTag(self, tag: str, el: Nodes, write: WriterFn) -> None:
141141
if attrVal == "":
142142
strs.append(" " + self.unfuckName(str(attrName)))
143143
elif attrName == "class" and " " in attrVal:
144-
sortedClasses = " ".join(sorted([x for x in attrVal.split(r" ") if x]))
144+
sortedClasses = " ".join(sorted([x for x in str(attrVal).split(r" ") if x]))
145145
strs.append(f' class="{sortedClasses}"')
146146
else:
147147
strs.append(" " + self.unfuckName(str(attrName)) + '="' + dom.escapeAttr(str(attrVal)) + '"')

0 commit comments

Comments
 (0)