Skip to content

Commit

Permalink
CI: Fix mypy errors
Browse files Browse the repository at this point in the history
> pdoc/test/__init__.py:1727: error: Item "None" of "TextIOWrapper[_WrappedBuffer] | None" has no attribute "write"  [union-attr]
  • Loading branch information
kernc committed Nov 25, 2024
1 parent 2a66eb2 commit 2acbeeb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pdoc/test/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1723,6 +1723,9 @@ def _http(self, modules: list):
t.start()
sleep(.1)

assert sys.__stderr__ and sys.__stdout__, \
'https://docs.python.org/3/library/sys.html#sys.__stdout__'

if not t.is_alive():
sys.__stderr__.write(stderr.getvalue())
raise AssertionError
Expand Down

0 comments on commit 2acbeeb

Please sign in to comment.