-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A decent implementation of Comparable.
I don't think we need anything more complicated like the solutions here: python/typing#59 There are some questions about the correctness of other operators like <= and >= that you now get for free with functools.total_ordering, due to the unexpected interactions with the __eq__ you get for free from dataclasses.dataclass, but we can punt them to the future. Signed-off-by: Trishank Karthik Kuppusamy <trishank.kuppusamy@datadoghq.com>
- Loading branch information
1 parent
081e581
commit f8d3437
Showing
4 changed files
with
59 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,4 @@ source = ["tuf_on_a_plane"] | |
|
||
[tool.coverage.report] | ||
show_missing = true | ||
fail_under = 80 | ||
fail_under = 78 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters