-
Notifications
You must be signed in to change notification settings - Fork 322
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
Backport PR #1162: Reapply preferred_dir fix, now with better backwards compatability #1167
Conversation
…better backwards compatability
import inspect | ||
|
||
if inspect.isawaitable(self.dir_exists): | ||
dir_exists = run_sync(self.dir_exists)(value) | ||
else: | ||
dir_exists = self.dir_exists(value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This conditional probably needs to be forward-ported again.
Codecov ReportBase: 71.42% // Head: 71.39% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## 1.x #1167 +/- ##
==========================================
- Coverage 71.42% 71.39% -0.03%
==========================================
Files 62 62
Lines 7765 7806 +41
Branches 1537 1543 +6
==========================================
+ Hits 5546 5573 +27
- Misses 1831 1841 +10
- Partials 388 392 +4
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. |
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Co-authored-by: Vidar Tonaas Fauske <[email protected]>
Manual backport of #1162.