Closed as not planned
Description
The following code:
t = type[str] | type[bytes]
produces the following output:
$ mypy test.py
test.py:1:5: error: Value of type "Type[type]" is not indexable [index]
t = type[str] | type[bytes]
^
Found 1 error in 1 file (checked 1 source file)
This looks like a false positive to me.
$ mypy --version
mypy 0.961 (compiled: yes)
$ python3 --version
Python 3.10.4
$ lsb_release -d
Description: Ubuntu 22.04 LTS