Commit f29c3fa
committed
Fix Site model typing, enhance SITE_CACHE, and cleanup allowlist
Detailed changes:
- Map Site fields (id, domain, name) to concrete types to fix DeferredAttribute errors.
- Type SITE_CACHE as dict[int | str, Site] for better precision.
- Add missing __str__ method to Site stub.
- Remove resolved Site entries from stubtest allowlist.1 parent afe4c8b commit f29c3fa
File tree
2 files changed
+5
-6
lines changed- django-stubs/contrib/sites
- scripts/stubtest
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | | - | |
112 | | - | |
113 | 110 | | |
114 | 111 | | |
115 | 112 | | |
| |||
0 commit comments