You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We already have hidden flags to disable the promotions (added in #13952) and I have a draft PR that shows the impact of disabling them (#12661). I would suggest the following plan:
Promote --disable-bytearray-promotion and --disable-memoryview-promotion to public, documented flags now
The next time we increment mypy's major version number, flip the default
The text was updated successfully, but these errors were encountered:
PEP 688 (https://peps.python.org/pep-0688/#no-special-meaning-for-bytes) specifies that type checkers should stop treating
bytes
as implicitly equivalent tobytes | bytearray | memoryview
. Mypy should implement this change.We already have hidden flags to disable the promotions (added in #13952) and I have a draft PR that shows the impact of disabling them (#12661). I would suggest the following plan:
--disable-bytearray-promotion
and--disable-memoryview-promotion
to public, documented flags nowThe text was updated successfully, but these errors were encountered: