In python 3.6 the value of `__origin__` for typing.List[str] is typing.List. This then changed to the actual `list` type in later versions. Accept both versions.