Skip to content

Commit

Permalink
Experiment: remove bytearray -> bytes promotion
Browse files Browse the repository at this point in the history
Help gauge the impact of python#12657
  • Loading branch information
JelleZijlstra committed Apr 23, 2022
1 parent d1c0616 commit f4c982b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mypy/semanal_classprop.py
Expand Up @@ -28,10 +28,6 @@
# as some functions only accept bytes objects. Here convenience
# trumps safety.
TYPE_PROMOTIONS_PYTHON3: Final = TYPE_PROMOTIONS.copy()
TYPE_PROMOTIONS_PYTHON3.update({
'builtins.bytearray': 'bytes',
'builtins.memoryview': 'bytes',
})

# Hard coded type promotions for Python 2.
#
Expand All @@ -41,8 +37,6 @@
TYPE_PROMOTIONS_PYTHON2: Final = TYPE_PROMOTIONS.copy()
TYPE_PROMOTIONS_PYTHON2.update({
'builtins.str': 'unicode',
'builtins.bytearray': 'str',
'builtins.memoryview': 'str',
})


Expand Down

0 comments on commit f4c982b

Please sign in to comment.