Dusty Phillips, writer:
Black is opinionated so you don’t have to be.
Hynek Schlawack, creator of attrs, core developer of Twisted and CPython:
An auto-formatter that doesn’t suck is all I want for Xmas!
Carl Meyer, Django core developer:
At least the name is good.
Kenneth Reitz, creator of requests and pipenv:
This vastly improves the formatting of our code. Thanks a ton!
Примеры?
Почему?
import something
class ThatUsesSomething {
constructor() {
this.something = something.new();
}
method() {
this.something.thatBeingUsed();
}
}
import something
class ThatUsesSomething {
method() {
something.new().thatBeingUsed();
}
}
class ThatUsesSomething {
constructor(something: InterfaceOfSomething) {
this.something = something;
}
method() {
this.something.thatBeingUsed();
}
}