Leaklens

django__django-13820

Permit migrations in non-namespace packages that don't have __file__

Verdict: the fix is stated in the issue (Tier A).

Instead, I propose to augment getattr(m, '__file__', None) with and isinstance(m.__path__, list).

The text states the fix: “Instead, I propose to augment getattr(m, '__file__', None) with and isinstance(m.__path__, list).”

All SWE-bench Verified tasks · more django/django tasks · How the check works