.. argparse::
:filename: ../main.py
:func: main
:prog: main.py
Exception occurred:
\.venv\Lib\site-packages\sphinxarg\ext.py", line 448, in _open_filename
return open(shutil.which(self.options['filename']))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType
(this is a necessary duplicate of https://github.com/sphinx-doc/sphinx/issues/11760)
The following code produces the following error: