Black exceptions#

Contents are subject to change.

exception black.trans.CannotTransform#

Base class for errors raised by Transformers.

exception black.linegen.CannotSplit#

A readable split that fits the allotted line length is impossible.

exception black.brackets.BracketMatchError#

Raised when an opening bracket is unable to be matched to a closing bracket.

exception black.report.NothingChanged#

Raised when reformatted code is the same as source.

exception black.parsing.InvalidInput#

Raised when input source code fails all parse attempts.

exception black.mode.Deprecated#

Visible deprecation warning.