Skip to content

Commit 3537321

Browse files
authored
Fix readme settings example (#1910)
1 parent 15a7f7e commit 3537321

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ So, mypy would not like this code:
305305
```python
306306
from django.conf import settings
307307

308-
settings.CUSTOM_VALUE # E: 'Settings' object has no attribute 'CUSTOM_SETTING'
308+
settings.CUSTOM_VALUE # E: 'Settings' object has no attribute 'CUSTOM_VALUE'
309309
```
310310

311311
To handle this corner case we have a special setting `strict_settings` (`True` by default),
@@ -328,7 +328,7 @@ And then:
328328

329329
```python
330330
# Works:
331-
reveal_type(settings.EXISTS_IN_RUNTIME) # N: Any
331+
reveal_type(settings.EXISTS_AT_RUNTIME) # N: Any
332332

333333
# Errors:
334334
reveal_type(settings.MISSING) # E: 'Settings' object has no attribute 'MISSING'

0 commit comments

Comments
 (0)