-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Annotate core functions and remove sphinx style argument types #205
Conversation
Codecov Report
@@ Coverage Diff @@
## master #205 +/- ##
==========================================
+ Coverage 95.42% 95.46% +0.03%
==========================================
Files 24 26 +2
Lines 1269 1346 +77
Branches 287 287
==========================================
+ Hits 1211 1285 +74
- Misses 33 37 +4
+ Partials 25 24 -1
|
… are being fixed.
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.
LGTM, I've only found minor nits, some even in code that didn't change in this PR. Among them, some missed docstring types, a couple of places where typing could be improved and some places where we could optionally add return types. Nothing that should get in the way of merging.
This is a great start and I'd be glad to tackle any improvements from here on if you'd like me to.
@@ -107,7 +113,7 @@ def revisions(self, path: str, max_revisions: int) -> List[Revision]: | |||
if self.repo.is_dirty(): |
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.
Some typing information remains in the above docstring and that on find().
Changes:
Operator
Metric
andArchiver
are now genericsthere are possible more places to add types and some violations reported by MyPy, but this is a good start