From 5d7cf4e1632d4678f68a1b56100fee3bc8a59959 Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Wed, 17 Jan 2024 21:30:38 +0100 Subject: [PATCH] Fix readme settings example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9e04650ca..5c68d83b1 100644 --- a/README.md +++ b/README.md @@ -305,7 +305,7 @@ So, mypy would not like this code: ```python from django.conf import settings -settings.CUSTOM_VALUE # E: 'Settings' object has no attribute 'CUSTOM_SETTING' +settings.CUSTOM_VALUE # E: 'Settings' object has no attribute 'CUSTOM_VALUE' ``` To handle this corner case we have a special setting `strict_settings` (`True` by default), @@ -328,7 +328,7 @@ And then: ```python # Works: -reveal_type(settings.EXISTS_IN_RUNTIME) # N: Any +reveal_type(settings.EXISTS_AT_RUNTIME) # N: Any # Errors: reveal_type(settings.MISSING) # E: 'Settings' object has no attribute 'MISSING'