-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add dedicated SystemInfo type #96
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #96 +/- ##
==========================================
- Coverage 87.36% 86.90% -0.46%
==========================================
Files 1 1
Lines 269 275 +6
Branches 41 42 +1
==========================================
+ Hits 235 239 +4
- Misses 26 28 +2
Partials 8 8 ☔ View full report in Codecov by Sentry. |
@@ -183,7 +191,9 @@ def __repr__(self) -> str: | |||
return json.dumps( | |||
{ | |||
"command": self.command, | |||
"system": self.system_info, | |||
"system": ( | |||
None if self.system_info is None else asdict(self.system_info) |
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.
dataclasses keep getting cooler :)
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 after rebase
Co-authored-by: Austin Macdonald <[email protected]>
@asmacdo Rebased. |
This PR builds on top of #95.