Skip to content

Use _set_ as a prefix for property setters #247

@rwb27

Description

@rwb27

I think there's example code that does

class MyThing(lt.Thing):
    @property
    def whatever(self) -> int:
        return 42

    @whatever.set
    def set_whatever(self, val: int) -> None:
        raise NotImplementedError()

Adding an initial _ would probably be better practice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions