-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Blocker 🙅Blocks the next releaseBlocks the next releaseBug 🪲False Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the codepython 3.9
Description
Since Python 3.9, type
is made subscriptable by Objects/abstract.c (python/cpython@48b069a), to allow, for example, type[int]
.
print(type[int])
which give:
test.py:10:6: E1136: Value 'type' is unsubscriptable (unsubscriptable-object)
while the code works.
TylerYep
Metadata
Metadata
Assignees
Labels
Blocker 🙅Blocks the next releaseBlocks the next releaseBug 🪲False Positive 🦟A message is emitted but nothing is wrong with the codeA message is emitted but nothing is wrong with the codepython 3.9