Skip to content

Commit e8759a7

Browse files
authored
Support ASGI (#258)
* Support ASGI * Add parenthesis to fix syntax error * Fix parentheses again * Fix flake8 issues
1 parent 7cbca67 commit e8759a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pylint_django/augmentations/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,8 @@ def wrap_func(*args, **kwargs):
743743
def is_wsgi_application(node):
744744
frame = node.frame()
745745
return node.name == 'application' and isinstance(frame, Module) and \
746-
(frame.name == 'wsgi' or frame.path[0].endswith('wsgi.py') or frame.file.endswith('wsgi.py'))
746+
(frame.name == 'asgi' or frame.path[0].endswith('asgi.py') or frame.file.endswith('asgi.py') or
747+
frame.name == 'wsgi' or frame.path[0].endswith('wsgi.py') or frame.file.endswith('wsgi.py'))
747748

748749

749750
# Compat helpers

0 commit comments

Comments
 (0)