-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
stubs: false positiveType checkers report false errorsType checkers report false errors
Description
The test script below in py2 prints out "<type 'unicode'>" but mypy --py2 reveal_type yields 'builtins.str'
The test script below in py3 prints out "<class 'str'>" but mypy reveal_type yields 'builtins.bytes'
I believe that typeshed is incorrectly reporting create_unicode_buffer().value to be of type bytes when it's supposed to be type Text.
import ctypes
buf = ctypes.create_unicode_buffer ( 42 )
print ( type ( buf.value ) )
Metadata
Metadata
Assignees
Labels
stubs: false positiveType checkers report false errorsType checkers report false errors