Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hard-coded class reference in fromkeys() #234

Merged
merged 1 commit into from Jul 3, 2023

Conversation

cthoyt
Copy link
Contributor

@cthoyt cthoyt commented Jul 2, 2023

If you use ImmutableOrderedDict.fromkeys() or any other custo subclass that overrides the dict_cls, it will construct a regular dict and not an ordered dict since the fromkeys() function hardcodes dict instead of the class's dict_cls. This PR fixes that

If you use ImmutableOrderedDict.fromkeys() or any other custo subclass that overrides the `dict_cls`, it will construct a regular dict and not an ordered dict since the `fromkeys()` function hardcodes `dict` instead of the class's `dict_cls`. This PR fixes that
@cthoyt cthoyt requested a review from corenting as a code owner July 2, 2023 07:51
@corenting
Copy link
Owner

Thanks for the fix! I will try to release it asap

@codecov
Copy link

codecov bot commented Jul 3, 2023

Codecov Report

Merging #234 (2e058d6) into master (6d8b83e) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #234   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           49        49           
=========================================
  Hits            49        49           
Flag Coverage Δ
3.10 100.00% <100.00%> (ø)
3.11 100.00% <100.00%> (ø)
3.7 100.00% <100.00%> (ø)
3.8 100.00% <100.00%> (ø)
3.9 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
immutabledict/__init__.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@corenting corenting merged commit f803ec3 into corenting:master Jul 3, 2023
9 of 10 checks passed
@cthoyt cthoyt deleted the patch-1 branch July 3, 2023 10:51
@corenting
Copy link
Owner

The fix was released today in the new 2.2.5 version. Thanks again for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants