Skip to content

Commit c69a167

Browse files
committed
Fix lint STARTUP_ROUTES type annotation in Dash class
1 parent 402bd10 commit c69a167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dash/dash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class Dash:
372372
"""
373373

374374
_plotlyjs_url: str
375-
STARTUP_ROUTES = []
375+
STARTUP_ROUTES: list = []
376376

377377
def __init__( # pylint: disable=too-many-statements
378378
self,
@@ -1629,7 +1629,7 @@ def display_content(path):
16291629
)
16301630

16311631
@staticmethod
1632-
def add_startup_route(name, view_func, methods=["POST"]):
1632+
def add_startup_route(name, view_func, methods):
16331633
"""
16341634
Add a route to the app to be initialized at the end of Dash initialization.
16351635
Use this if the package requires a route to be added to the app, and you will not need to worry about at what point to add it.

0 commit comments

Comments
 (0)