Trivial dataclass cleanups: (GH-6218)
- When adding a single element to a list, use .append() instead of += and creating a new list. - For consistency, import the copy module, instead of just deepcopy. This leaves only a module at the class level, instead of a function. - Improve some comments. - Improve some whitespace. - Use tuples instead of lists. - Simplify a test.
E
Eric V. Smith committed
f96ddade0094d162cb6c2fd7255c5e8a90b5c37d
Parent: a95d986
Committed by GitHub <noreply@github.com>
on 3/24/2018, 9:20:26 PM