Matt Joiner <anacro...@gmail.com> added the comment:
$ pyright hex.py stubPath /Users/anacrolix/src/dht-scraper/typings is not a valid directory. Assuming Python platform Darwin Searching for source files Found 1 source file /Users/anacrolix/src/dht-scraper/hex.py 3:9 - error: Cannot access member "hex" for type "ByteString" Member "hex" is unknown (reportGeneralTypeIssues) 1 error, 0 warnings Completed in 0.562sec anacrolix@anacrolix-mbp-2018:~/src/dht-scraper$ mypy hex.py hex.py:3: error: "ByteString" has no attribute "hex" Found 1 error in 1 file (checked 1 source file) anacrolix@anacrolix-mbp-2018:~/src/dht-scraper$ python3 hex.py deadbeef ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41564> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com