Skip to content

Commit 2acbeeb

Browse files
committed
CI: Fix mypy errors
> pdoc/test/__init__.py:1727: error: Item "None" of "TextIOWrapper[_WrappedBuffer] | None" has no attribute "write" [union-attr]
1 parent 2a66eb2 commit 2acbeeb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pdoc/test/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,6 +1723,9 @@ def _http(self, modules: list):
17231723
t.start()
17241724
sleep(.1)
17251725

1726+
assert sys.__stderr__ and sys.__stdout__, \
1727+
'https://docs.python.org/3/library/sys.html#sys.__stdout__'
1728+
17261729
if not t.is_alive():
17271730
sys.__stderr__.write(stderr.getvalue())
17281731
raise AssertionError

0 commit comments

Comments
 (0)