Commit 3181156
committed
Suppress no-member errors for RelatedManager fields
seen in a real project where we have `product.build.first()` where
Build.product is a FK to Product with related_name=build all of
which causes factory to build a RelatedManager on the fly.
For some reason I can't reproduce with the existing test but when
I make this change it resolves the problem in the original code base
that I was inspecting.1 parent bacd7c3 commit 3181156
File tree
2 files changed
+5
-1
lines changed- pylint_django
- augmentations
- tests/input
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
510 | 511 | | |
511 | 512 | | |
512 | 513 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
0 commit comments