mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-12 23:16:31 +08:00
Remove assertions for mypy builtins (#685)
This commit is contained in:
@@ -64,9 +64,7 @@ def initialize_django(settings_module: str) -> Tuple["Apps", "LazySettings"]:
|
|||||||
|
|
||||||
# Define mypy builtins, to not cause NameError during setting up Django.
|
# Define mypy builtins, to not cause NameError during setting up Django.
|
||||||
# TODO: temporary/unpatch
|
# TODO: temporary/unpatch
|
||||||
assert not hasattr(builtins, "reveal_type")
|
|
||||||
builtins.reveal_type = lambda _: None
|
builtins.reveal_type = lambda _: None
|
||||||
assert not hasattr(builtins, "reveal_locals")
|
|
||||||
builtins.reveal_locals = lambda: None
|
builtins.reveal_locals = lambda: None
|
||||||
|
|
||||||
from django.apps import apps
|
from django.apps import apps
|
||||||
|
|||||||
Reference in New Issue
Block a user