Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3069d70

Browse files
committed
type ignore backwards compatible imports
1 parent e5260c5 commit 3069d70

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

django_extensions/management/commands/pipchecker.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
try:
2323
from pip._internal.network.session import PipSession
2424
except ImportError:
25-
from pip._internal.download import PipSession
25+
from pip._internal.download import PipSession # type:ignore
2626
from pip._internal.req.req_file import parse_requirements
2727
from pip._internal.utils.misc import get_installed_distributions
2828
except ImportError:
2929
# pip < 10
3030
try:
31-
from pip import get_installed_distributions
32-
from pip.download import PipSession
33-
from pip.req import parse_requirements
31+
from pip import get_installed_distributions # type:ignore
32+
from pip.download import PipSession # type:ignore
33+
from pip.req import parse_requirements # type:ignore
3434
except ImportError:
3535
raise CommandError("Pip version 6 or higher is required")
3636

0 commit comments

Comments
 (0)