awslabs / amazon-omics-tools

Apache License 2.0
19 stars 6 forks source link

TypeError: 'type' object is not subscriptable #16

Closed hmkim closed 1 year ago

hmkim commented 1 year ago

Hi, I tried to run the amazon-omics-tools in below.

Is there something I'm missing?

git clone https://github.com/awslabs/amazon-omics-tools.git

pip install boto3
pip install mypy_boto3_omics

cd amazon-omics-tools
vi test.py
import boto3
from omics.common.omics_file_types import ReadSetFileName, ReferenceFileName, ReadSetFileType
from omics.transfer.manager import TransferManager
from omics.transfer.config import TransferConfig
python test.py 
Screenshot 2023-06-07 at 2 49 33 PM

Thank you in advance!

hmkim commented 1 year ago

With python3.7, there is an error. With python3.9 or python3.10, there is no error.

python -c "def testf(p : list[list[int]]): pass"

This feature is only valid starting in Python 3.9