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

Accept generic mapping types #46

Merged
merged 3 commits into from
Sep 22, 2024

Conversation

heavywatal
Copy link
Contributor

Current type hinting with dict is too strict, and read-only types like MappingProxyType are refused by type checkers.

heavywatal and others added 3 commits September 26, 2023 16:47

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Current type hinting with `dict` is too strict, and read-only
types like MappingProxyType are refused by type checkers.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
for more information, see https://pre-commit.ci
@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2023

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (9d939b5) to head (5252b86).
Report is 1 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #46   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          125       125           
  Branches        34        34           
=========================================
  Hits           125       125           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Avasam
Copy link

Avasam commented Sep 21, 2024

+1 The current typing also makes TypedDict invalid to pass to dump

@hukkin
Copy link
Owner

hukkin commented Sep 22, 2024

Thanks!

@hukkin hukkin merged commit deec36a into hukkin:master Sep 22, 2024
@heavywatal heavywatal deleted the accept-generic-mapping branch September 23, 2024 02:39
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

4 participants