|
12 | 12 | "strictListInference": true, |
13 | 13 | "strictDictionaryInference": true, |
14 | 14 | "strictParameterNoneValue": true, |
| 15 | + "strictSetInference": true, |
15 | 16 | "reportFunctionMemberAccess": "error", |
16 | 17 | "reportMissingModuleSource": "none", |
17 | 18 | "reportMissingTypeStubs": "error", |
|
40 | 41 | "reportUnboundVariable": "error", |
41 | 42 | "reportInvalidStubStatement": "error", |
42 | 43 | "reportInvalidTypeVarUse": "error", |
43 | | - "reportPropertyTypeMismatch": "none", |
44 | 44 | "reportSelfClsParameterName": "error", |
45 | 45 | "reportUnsupportedDunderAll": "error", |
46 | | - // Incompatible overrides are out of typeshed's control as they are |
47 | | - // inherited from the implementation. |
| 46 | + "reportInconsistentConstructor": "error", |
| 47 | + "reportTypeCommentUsage": "error", |
| 48 | + "reportUnnecessaryComparison": "error", |
| 49 | + // Incompatible overrides and property type mismatches are out of typeshed's control |
| 50 | + // as they are inherited from the implementation. |
| 51 | + "reportPropertyTypeMismatch": "none", |
48 | 52 | "reportIncompatibleMethodOverride": "none", |
49 | 53 | "reportIncompatibleVariableOverride": "none", |
50 | | - // Overlapping overloads cannot be enabled at this time because |
51 | | - // of the "fractions.Fraction.__pow__" method and "tasks.gather" function. |
52 | | - // Mypy's overlapping overload logic misses these issues (see mypy |
53 | | - // issue #10143 and #10157). |
| 54 | + // Overlapping overloads are often necessary in a stub, meaning pyright's check |
| 55 | + // (which is stricter than mypy's; see mypy issue #10143 and #10157) |
| 56 | + // would cause many false positives and catch few bugs. |
54 | 57 | "reportOverlappingOverload": "none", |
55 | 58 | } |
0 commit comments