Open bot-me-not opened 3 years ago
I had the same problem - fixed it by changing torch.tensor
to torch.Tensor
. I suspect the problem is that torch.tensor
is a method, not a class.
Closing because @ryansteed is correct; this was my mistake.
File "c:\myproject\venv\lib\site-packages\pdoc\__init__.py", line 1215, in _formatannotation if module.startswith('nptyping'): # GH-231 AttributeError: 'NoneType' object has no attribute 'startswith'
The crash is obviously a bug regardless of the input you fed it.
Take the following script saved in
bug.py
:Now execute
pdoc --html bug.py
. An exception is raised:Additional info
pdoc3==0.9.2 Python 3.8.10 Windows 10