mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-09-08 15:53:23 +08:00
The return type of DiscoverRunner.get_resultclass should be Optional[Type[TextTestResult]] given that it may also return PDBDebugResult: https://github.com/django/django/blob/0dd29209091280ccf34e07c9468746c396b7778e/django/test/runner.py#L958-L962 `DicoverRunner.run_tests` accepts `None` for `extra_tests` because that's already the default value for it: https://github.com/django/django/blob/0dd29209091280ccf34e07c9468746c396b7778e/django/test/runner.py#L1030