3 ms·
I think for code readability show defaults can be confusing, unless you _always_ show those defaults. The following implies that bar might be null-able if you
by georgyo 6y ago
I think for code readability show defaults can be confusing, unless you _always_ show those defaults.
The following implies that bar might be null-able if you don't know what the default is.
foo = text(null=False)
bar = text()
While writing code you likely have the defaults you care about in your head. Someone reading your code may not. You want to make sure your code leads their thought process down the right path. So either you _always_ show the default, or you only override the default.