From 7399962c9f64c062a68a60e90df605d3d7f31fa5 Mon Sep 17 00:00:00 2001 From: Shimbo Takaaki Date: Mon, 26 Nov 2018 00:22:44 +0900 Subject: [PATCH] message line too long --- rest_framework/schemas/inspectors.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rest_framework/schemas/inspectors.py b/rest_framework/schemas/inspectors.py index baaa1f20c..135eb6e4e 100644 --- a/rest_framework/schemas/inspectors.py +++ b/rest_framework/schemas/inspectors.py @@ -163,7 +163,8 @@ class ViewInspector(object): @property def view(self): """View property.""" - assert self._view is not None, "Schema generation REQUIRES a view instance. (Hint: you accessed `schema` from the view class rather than an instance.)" + assert self._view is not None, "Schema generation REQUIRES a view instance. (Hint: you accessed `schema` from "\ + "the view class rather than an instance.) " return self._view @view.setter @@ -498,7 +499,8 @@ class DefaultSchema(ViewInspector): return result inspector_class = api_settings.DEFAULT_SCHEMA_CLASS - assert issubclass(inspector_class, ViewInspector), "DEFAULT_SCHEMA_CLASS must be set to a ViewInspector (usually an AutoSchema) subclass" + assert issubclass(inspector_class, ViewInspector), \ + "DEFAULT_SCHEMA_CLASS must be set to a ViewInspector (usually an AutoSchema) subclass" inspector = inspector_class() inspector.view = instance return inspector