Add missing type for setup_databases (#919)

* Add missing type for setup_databases

`django.test.utils` was seemingly missing the type for `setup_databases`. 

This change resolves my issue locally. The type was copied directly from `django.test.runner`.

* Fix typecheck_tests runner

Co-authored-by: Xavier Francisco <xavier.n.francisco@gmail.com>
This commit is contained in:
Xavier Francisco
2022-04-13 09:56:57 +00:00
committed by GitHub
parent e468ee97da
commit 40bf7a562d
2 changed files with 18 additions and 1 deletions

View File

@@ -28,4 +28,4 @@ def checkout_django_branch(django_version: str, commit_sha: Optional[str]) -> Re
)
if commit_sha and repo.head.commit.hexsha != commit_sha:
repo.remote("origin").fetch(branch, progress=ProgressPrinter(), depth=100)
repo.git.checkout(commit_sha)
repo.git.checkout(branch)