[issue40396] Support GenericAlias in typing

2020-04-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40396] Support GenericAlias in typing

2020-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 68b352a6982f51e19bf9b9f4ae61b34f5864d131 by Serhiy Storchaka in branch 'master': bpo-40396: Support GenericAlias in the typing functions. (GH-19718) https://github.com/python/cpython/commit/68b352a6982f51e19bf9b9f4ae61b34f5864d131 --

[issue40396] Support GenericAlias in typing

2020-04-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +19039 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19718 ___ Python tracker ___

[issue40396] Support GenericAlias in typing

2020-04-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently typing functions get_origin(), get_args() and get_type_hints() do not support GenericAlias. >>> from typing import * >>> get_origin(List[int]) >>> get_origin(list[int]) >>> get_args(List[int]) (,) >>> get_args(list[int]) () >>> def foo(x: List[