Skip to content

test_typing_extensions.LiteralTests.test_args is failing with python 3.14.7 #784

Description

@danigm

The latest python 3.14 release changes the default Literal.__args__ adding a deduplication of unhashable arguments in typing.Literal

python 3.14.7:

>>> from typing import Literal
>>> Literal[[], []].__args__
([],)

With previous python 3.14.6 we get:

>>> from typing import Literal
>>> Literal[[], []].__args__
([], [])

The change in cpython is done in this commit:
python/cpython@a53b5b1#diff-04d29c98076c2d6bb75921ea9becb26a862544d39b71db87b6e354c759b9305dR2805-R2812

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions