Skip to content

Use @property decorator instead of property function #609

@rahulporuri

Description

@rahulporuri

There are a few places in the codebase where we use the old style property(...) to define getters and setters for properties - which we can now replace with the @property decorator.

# This is a Python property because this is not a HasTraits subclass.
container = property(get_container, set_container)

# This is a Python property because this is not a HasTraits subclass.
container = property(get_container, set_container)

func = property(_get_func)

Metadata

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