From 3dda6c80e656e6a0fb28ce5777f98a3e4027f358 Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Fri, 2 Feb 2024 18:05:20 +0100 Subject: [PATCH] Add fields __init__ to allowlist Really not ideal, so open to alternatives --- scripts/stubtest/allowlist.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/stubtest/allowlist.txt b/scripts/stubtest/allowlist.txt index ef6a09219..608d0afa3 100644 --- a/scripts/stubtest/allowlist.txt +++ b/scripts/stubtest/allowlist.txt @@ -411,3 +411,8 @@ django.contrib.sessions.base_session.AbstractBaseSession.Meta # Custom __str__ that we don't want to overcomplicate: django.forms.utils.RenderableMixin.__str__ django.forms.utils.RenderableMixin.__html__ + +# Keyword only in stubs +django.db.models.(\w*)Field.__init__ +django.db.models.fields.(\w*)Field.__init__ +django.contrib.gis.db.models.(\w*)Field.__init__