

def has_no_django():
    try:
        import django
        return False
    except ImportError:
        return True



def has_no_django():
    try:
        import django  # noqa isort:skip
        return False
    except ImportError:
        return True

Add noqa to conditional import
Add noqa to conditional import

  
  
  def has_no_django():
      try:
-         import django
+         import django  # noqa isort:skip
          return False
      except ImportError:
          return True
  
Add noqa to conditional import
## Code Before:


def has_no_django():
    try:
        import django
        return False
    except ImportError:
        return True

## Instruction:
Add noqa to conditional import
## Code After:


def has_no_django():
    try:
        import django  # noqa isort:skip
        return False
    except ImportError:
        return True
