X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/e76adbecb8c3b62631868332c3b632363c7c16b4..b1d060101626aa1c332f52e4bdf0ae5e4cc07990:/src/black/report.py?ds=inline;pf=etc diff --git a/src/black/report.py b/src/black/report.py index 8fc5da2..7e1c8b4 100644 --- a/src/black/report.py +++ b/src/black/report.py @@ -16,6 +16,10 @@ class Changed(Enum): YES = 2 +class NothingChanged(UserWarning): + """Raised when reformatted code is the same as source.""" + + @dataclass class Report: """Provides a reformatting counter. Can be rendered with `str(report)`."""