FYI the recent release 2.1.10 introduced Python 3.9+-style typing despite the package claiming to support 3.6 thru 3.8.
File "/usr/local/lib/python3.7/site-packages/redshift_connector/metadataAPIHelper.py", line 66, in <module>
class RedshiftDataTypes:
File "/usr/local/lib/python3.7/site-packages/redshift_connector/metadataAPIHelper.py", line 111, in RedshiftDataTypes
def validate_types(cls, data_types: typing.List[str]) -> tuple[bool, typing.List[str]]:
TypeError: 'type' object is not subscriptable