[python] Disable strict narrowing, add registry flag to enable it

(cherry picked from commit ba403db011803b4aef1ea2b1582374559b70c32a)

GitOrigin-RevId: 07a2f2fc25f28abfb1f7bca1a75ab86a20e16bc4
This commit is contained in:
Aleksandr.Govenko
2025-08-20 12:49:59 +03:00
committed by intellij-monorepo-bot
parent 9095762730
commit 5e5a46bb51
5 changed files with 24 additions and 15 deletions

View File

@@ -495,6 +495,8 @@
description="It enables the use of a library-level cache for PSI elements from packages."/>
<registryKey key="python.statement.lists.incremental.reparse" defaultValue="false"
description="Enables incremental reparse for statement lists"/>
<registryKey key="python.strict.type.narrow" defaultValue="false"
description="Allows narrowing types exhaustively to Never"/>
</extensions>
<extensionPoints>