• Michael Lee's avatar
    Clarify that Type[SomeTypeVar] is legal (#9585) · 130717fe
    Michael Lee yazdı
    Currently, the docs state that when doing `Type[X]`, X is only allowed to
    be a class, a union of classes, and Any. This pull request amends
    that sentence to clarify X may also be a typevar (or a union involving
    classes, Any, and TypeVars).
    130717fe
typing.rst 33.5 KB