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

Restrict mypy to pre-v1.1.1 #1246

Merged
merged 1 commit into from
Mar 8, 2023
Merged

Restrict mypy to pre-v1.1.1 #1246

merged 1 commit into from
Mar 8, 2023

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented Mar 8, 2023

Type-checking of pydantic types is broken in many respects under mypy 1.1.1 (See pydantic/pydantic#5148), so until pydantic publishes a new release with a fix, we need to use an older mypy in order to get type-checking to pass.

@jwodder jwodder added the tests Add or improve existing tests label Mar 8, 2023
@codecov
Copy link

codecov bot commented Mar 8, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.02 ⚠️

Comparison is base (75b2a39) 89.04% compared to head (042eff5) 89.03%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1246      +/-   ##
==========================================
- Coverage   89.04%   89.03%   -0.02%     
==========================================
  Files          76       76              
  Lines        9698     9698              
==========================================
- Hits         8636     8635       -1     
- Misses       1062     1063       +1     
Flag Coverage Δ
unittests 89.03% <ø> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
dandi/support/threaded_walk.py 93.10% <0.00%> (-1.73%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -28,7 +28,7 @@ commands =

[testenv:typing]
deps =
mypy
mypy<1.1.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking forward for a fix, and presumably already fixed in pydantic/pydantic#5111 (could you check may be), should we just

Suggested change
mypy<1.1.1
mypy!=1.1.1

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

< is slightly better, in the case where mypy releases a new version before pydantic does.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's proceed but later change when know which needed or to be avoided

@yarikoptic yarikoptic merged commit 39a41df into master Mar 8, 2023
@yarikoptic yarikoptic deleted the restrict-mypy branch March 8, 2023 18:00
@github-actions
Copy link

🚀 PR was released in 0.51.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released tests Add or improve existing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants