Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(validator): always require typing-extensions #117

Merged
merged 2 commits into from
Nov 13, 2021

Conversation

RobertCraigie
Copy link
Owner

@RobertCraigie RobertCraigie commented Nov 13, 2021

fixes #114

On Python 3.9.0 and Python 3.9.1, typing.TypedDict does not correctly hold the __required_keys__ and __optional_keys__ attributes, the fix (python/cpython#22736) for this issue was merged on 10/12/2020 and Python 3.9.1 was released on 8/12/2020, as such, the minimum Python version that does not require the use of typing-extensions is Python 3.9.2

However, writing our imports this way breaks mypy, reporting 1651 errors :)

@RobertCraigie RobertCraigie added the kind/bug A reported bug. label Nov 13, 2021
@codecov
Copy link

codecov bot commented Nov 13, 2021

Codecov Report

Merging #117 (5430e00) into main (77b2089) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #117      +/-   ##
==========================================
- Coverage   96.00%   96.00%   -0.01%     
==========================================
  Files         100      100              
  Lines        4082     4079       -3     
  Branches      263      262       -1     
==========================================
- Hits         3919     3916       -3     
  Misses        121      121              
  Partials       42       42              
Impacted Files Coverage Δ
src/prisma/_types.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 77b2089...5430e00. Read the comment docs.

@RobertCraigie RobertCraigie changed the title fix(validator): increase typing-extensions requirement fix(validator): always require typing-extensions Nov 13, 2021
@RobertCraigie RobertCraigie merged commit 1e50d62 into main Nov 13, 2021
@RobertCraigie RobertCraigie deleted the fix/type-validator branch November 13, 2021 12:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
kind/bug A reported bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type validator is broken on python3.9.0-1
1 participant