Skip to content

Commit 8ff0013

Browse files
committed
mypy wants property getter and setter to be consecutive to each other.
1 parent b2064f8 commit 8ff0013

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dash/dash.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -422,17 +422,17 @@ def _add_url(self, name, view_func, methods=('GET',)):
422422
# e.g. for adding authentication with flask_login
423423
self.routes.append(name)
424424

425-
@property
426-
def layout(self):
427-
return self._layout
428-
429425
def _layout_value(self):
430426
if isinstance(self._layout, _patch_collections_abc('Callable')):
431427
self._cached_layout = self._layout()
432428
else:
433429
self._cached_layout = self._layout
434430
return self._cached_layout
435431

432+
@property
433+
def layout(self):
434+
return self._layout
435+
436436
@layout.setter
437437
def layout(self, value):
438438
if (not isinstance(value, Component) and

0 commit comments

Comments
 (0)