Skip to content

Check for protocol methods returning None #204

Open
@srittau

Description

This is actually not a stub-specific rule, but protocol methods returning None instead of object are suspect. None is meant as "The caller should not use the return value", but it actually means that any implementation must return None. (I remember we had this problem at least once. It might have been related to an ignored seek() return value.)

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions