Skip to content

Isolated """ counted toward limit of two summary lines #86

@jacobtylerwalls

Description

@jacobtylerwalls

Can't remove the blank line at pylint-dev/pylint@f5b85a2#r838122809

    @staticmethod
    def _has_homonym_in_comprehension_test(node: nodes.Name) -> bool:
        """
        Return True if `node`'s frame contains a comprehension having

        an "if" test employing an identical name. The use of the name
        in the if test could come in several levels of nesting:

        Examples:
            [x for x in range(3) if name]
            [x for x in range(3) if name.num == 1]
            [x for x in range(3)] if call(name.num)]
        """

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions