Skip to content

Commit 753c89f

Browse files
committed
ignore flake8 Function is too complex (C901) for _webio_handler()
1 parent c7de41c commit 753c89f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pywebio/platform/tornado.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _is_same_site(origin, handler: WebSocketHandler):
6666
return origin == host
6767

6868

69-
def _webio_handler(applications=None, cdn=True, reconnect_timeout=0, check_origin_func=_is_same_site):
69+
def _webio_handler(applications=None, cdn=True, reconnect_timeout=0, check_origin_func=_is_same_site): # noqa: C901
7070
"""
7171
:param dict applications: dict of `name -> task function`
7272
:param bool/str cdn: Whether to load front-end static resources from CDN

0 commit comments

Comments
 (0)