Commit cf62b15
committed
refactor(SubprocessCommand): Skip defaults in __repr__ of dataclass
In dataclass, skip printing of attributes that are defaults.
Credit to Pietro Oldrati
- https://stackoverflow.com/a/72161437/1396928
- License is unilicense:
- https://stats.stackexchange.com/users/357193/user2246849
- https://unlicense.org/1 parent c849487 commit cf62b15
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
343 | 344 | | |
344 | 345 | | |
345 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
346 | 363 | | |
347 | 364 | | |
348 | 365 | | |
| |||
0 commit comments