Skip to content

Commit

Permalink
add strictGenericNarrowing
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead authored Nov 23, 2024
1 parent 6ec7b47 commit 30c352e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/PyrightConfigSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ export const configSettings: PyrightConfigSetting[] = [
isEnabledInStandard: false,
isEnabledInStrict: true,
},
{
name: 'strictGenericNarrowing',
description: 'Use the bounds of TypeVars when narrowing with isinstance checks instead of `Any`',
isEnabledInStandard: false,
isEnabledInStrict: false,
},
{
name: 'reportMissingModuleSource',
description: 'Controls reporting of imports that cannot be resolved to source files',
Expand Down

0 comments on commit 30c352e

Please sign in to comment.