fix: allow utils.lenient_issubclass to handle typing.GenericAlias objects like list[str] in python >= 3.9.