Closed judfs closed 8 months ago
Python 2 support has been dropped so the try ... execpt of the py 2 module can be removed.
try ... execpt
import cStringIO.StringIO as BytesIO was confusing pylance with Module is not callable. Therefore it couldn't determain that encode returned bytes.
import cStringIO.StringIO as BytesIO
Module is not callable
encode
bytes
Python 2 support has been dropped so the
try ... execpt
of the py 2 module can be removed.import cStringIO.StringIO as BytesIO
was confusing pylance withModule is not callable
. Therefore it couldn't determain thatencode
returnedbytes
.