# Bug report ### Bug description: Compare: ``` >>> type(defaultdict(int) | frozendict()) <class 'dict'> >>> type(OrderedDict() | frozendict()) <class 'collections.OrderedDict'> >>> type(defaultdict(int) | dict()) <class 'collections.defaultdict'> ``` This should be fixable by making defaultdict's nb_or use PyAnyDict_Check instead of PyDict_Check. ### CPython versions tested on: 3.15 ### Operating systems tested on: _No response_ <!-- gh-linked-prs --> ### Linked PRs * gh-149539 * gh-150709 <!-- /gh-linked-prs -->
Bug report
Bug description:
Compare:
This should be fixable by making defaultdict's nb_or use PyAnyDict_Check instead of PyDict_Check.
CPython versions tested on:
3.15
Operating systems tested on:
No response
Linked PRs
defaultdictandfrozendictwith|#149539defaultdictandfrozendictwith|(GH-149539) #150709