From 696f39b58c9163abbb00705f22754eb5f6f15de4 Mon Sep 17 00:00:00 2001 From: Abhyudai <13880786+abhiabhi94@users.noreply.github.com> Date: Sun, 1 Aug 2021 13:44:13 +0530 Subject: [PATCH] Remove assertions for mypy builtins (#685) --- mypy_django_plugin/django/context.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mypy_django_plugin/django/context.py b/mypy_django_plugin/django/context.py index fcdab28..dea037d 100644 --- a/mypy_django_plugin/django/context.py +++ b/mypy_django_plugin/django/context.py @@ -64,9 +64,7 @@ def initialize_django(settings_module: str) -> Tuple["Apps", "LazySettings"]: # Define mypy builtins, to not cause NameError during setting up Django. # TODO: temporary/unpatch - assert not hasattr(builtins, "reveal_type") builtins.reveal_type = lambda _: None - assert not hasattr(builtins, "reveal_locals") builtins.reveal_locals = lambda: None from django.apps import apps