Skip to content

[BUG] Union of frozendict and frozendict results in dict #84

@rindPHI

Description

@rindPHI

The union of a frozendict with | should again result in a frozendict, but does actually result in a mutable dict.

OS version: macOS 13.5.2
frozendict version: 2.3.8
Python3 version (python3 -V -V): Python 3.11.5 (main, Aug 24 2023, 15:18:16) [Clang 14.0.3 (clang-1403.0.22.14.1)]

Steps to reproduce:

In [1]: from frozendict import frozendict
In [2]: a = frozendict({1: 2})
In [3]: type(a | a)
Out[3]: dict

Expected result:
frozendict

Actual result:
dict

Metadata

Metadata

Assignees

No one assigned

    Labels

    Effort: Loweasy taskNeeds: TestHey, it compiles! Ship it!Priority: HighA blocking bug or an important featureType: BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions