Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommandParser not in django.core.management #1926

Closed
jamesbraza opened this issue Feb 3, 2024 · 0 comments · Fixed by #1927
Closed

CommandParser not in django.core.management #1926

jamesbraza opened this issue Feb 3, 2024 · 0 comments · Fixed by #1927
Labels
bug Something isn't working

Comments

@jamesbraza
Copy link
Contributor

Bug report

I think CommandParser should be in django-stubs/core/management/__init__.pyi. As of 4.2.7, it's not there: https://github.com/typeddjango/django-stubs/blob/4.2.7/django-stubs/core/management/__init__.pyi

What's wrong

from django.core.management import BaseCommand, CommandParser

How is that should be

I think we need to add:

from .base import CommandParser as CommandParser

System information

  • OS: macOS Ventura 13.5.2
  • python version: 3.10.13
  • django version: 3.2.23
  • mypy version: 1.7.1
  • django-stubs version: 4.2.7
  • django-stubs-ext version: 4.2.7
@jamesbraza jamesbraza added the bug Something isn't working label Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

1 participant