mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
PY-73107 Usages of @warnings.deprecated inside .pyi stubs are ignored
GitOrigin-RevId: 7682eff8c8ca8ae8241ddee3191add34ab2ac22e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
84243e4280
commit
f2a322c6d9
@@ -12,11 +12,10 @@ fun extractDeprecationMessageFromDecorator(element: PyAstDecoratable): String? {
|
||||
return null
|
||||
}
|
||||
|
||||
val argumentList = deprecatedDecorator.argumentList ?: return null
|
||||
|
||||
if (argumentList.arguments.isEmpty()) {
|
||||
if (deprecatedDecorator.arguments.isEmpty()) {
|
||||
return null
|
||||
}
|
||||
val argument = argumentList.arguments[0] as? PyAstStringLiteralExpression ?: return null
|
||||
|
||||
val argument = deprecatedDecorator.arguments[0] as? PyAstStringLiteralExpression ?: return null
|
||||
return argument.stringValue
|
||||
}
|
||||
Reference in New Issue
Block a user