accept epydoc variable docstrings also at file level

This commit is contained in:
Dmitry Jemerov
2011-04-13 21:12:22 +02:00
parent 21eb5b4c48
commit 6747bd7e13
@@ -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) {