Commit 95ff89d
committed
cosalib: silence pylint E1120 for GI methods
pylint is treating GObject-introspected methods (from gi.repository) as
unbound instance methods that require a self argument, even though at
runtime these calls are valid and work as expected. This causes false
positive E1120 (no-value-for-parameter) errors on calls such as
RpmOstree.get_basearch() and Json.Generator.new().
Add disable comments to the affected GI calls to keep pylint from
complaining while preserving the existing behavior.1 parent 3c59509 commit 95ff89d
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
| 412 | + | |
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| |||
0 commit comments