mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
accept epydoc variable docstrings also at file level
This commit is contained in:
@@ -28,7 +28,7 @@ public class EpydocUtil {
|
||||
if (prevElement instanceof PyAssignmentStatement) {
|
||||
final PyAssignmentStatement assignmentStatement = (PyAssignmentStatement)prevElement;
|
||||
final ScopeOwner scope = PsiTreeUtil.getParentOfType(prevElement, ScopeOwner.class);
|
||||
if (scope instanceof PyClass) {
|
||||
if (scope instanceof PyClass || scope instanceof PyFile) {
|
||||
return true;
|
||||
}
|
||||
if (scope instanceof PyFunction) {
|
||||
|
||||
Reference in New Issue
Block a user