Skip to content

Commit f717aef

Browse files
committed
Work around type error with Yattag when linting
1 parent 3fa5cdb commit f717aef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webware/Examples/YattagDemo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def demoForm(self):
5555
else:
5656
subject = message = None
5757

58-
doc, tag, text = Doc(defaults=defaults, errors=errors).tagtext()
58+
doc = Doc(defaults=defaults, errors=errors)
59+
tag, text = doc.tag, doc.text
5960

6061
if message and not errors:
6162

@@ -77,8 +78,7 @@ def demoForm(self):
7778

7879
with tag('form', action="YattagDemo"):
7980
doc.input(name='subject', type='text', size=80)
80-
with doc.textarea(
81-
name='message', cols=80, rows=8):
81+
with doc.textarea(name='message', cols=80, rows=8):
8282
pass
8383
doc.stag('input', type='submit', value='Send my message')
8484

0 commit comments

Comments
 (0)