GP-0: Fixing error in Python typestub generation

This commit is contained in:
Ryan Kurtz
2026-05-07 06:17:18 -04:00
parent 75337bc24d
commit 1b149c68df
@@ -393,6 +393,9 @@ public class JavadocConverter extends DocConverter {
if (el instanceof ExecutableElement method) {
type = (TypeElement) method.getEnclosingElement();
}
else if (el instanceof VariableElement variable) {
type = (TypeElement) variable.getEnclosingElement();
}
else {
type = (TypeElement) el;
}