Commit e90f185
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 09d3384 commit e90f185
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
351 | 352 | | |
352 | 353 | | |
353 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
354 | 371 | | |
355 | 372 | | |
356 | 373 | | |
| |||
0 commit comments