-
Notifications
You must be signed in to change notification settings - Fork 26
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
Apply and conform to better linting #197
Conversation
@@ -31,7 +33,7 @@ | |||
from .versions import external_versions | |||
|
|||
if TYPE_CHECKING: | |||
from collector import Citation | |||
from .collector import Citation |
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
Happy Thanksgiving!!! |
@yarikoptic Yes, that's the bug I found. As far as I can tell, mypy is right to complain: the code is trying to pass a (The reason mypy is complaining now is because, after the import fix that @a-detiste commented on above, mypy now knows what a |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #197 +/- ##
==========================================
- Coverage 81.50% 81.29% -0.21%
==========================================
Files 47 47
Lines 2546 2545 -1
Branches 361 359 -2
==========================================
- Hits 2075 2069 -6
- Misses 380 385 +5
Partials 91 91
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
for now I think the best would be to just make it accept |
Because nothing else but .entry of Citation were used, and so we have it more consistent with get_bibtex_rendering which does not take Citation
Ideally I guess there should be some more elaborate class hierarchy but we have these functions to mutate between different renderings, so for now it would be fine to just have both get_text_rendering and get_bibtex_rendering to just take a generic DueCreditEntry.
Includes the commit from #196.
This revealed a typing error which appears to be a genuine bug.