Skip to content

Decorator to make properties symmetric #80

Closed
@bckohan

Description

@bckohan

e.g. instead of:

    _symmetric_builtins_ = ['uri']

    @property
    def uri(self) -> str:
        return f'mapbox://styles/mapbox/{self.value}-v{self.version}'

just:

    @symmetric
    @property
    def uri(self) -> str:
        return f'mapbox://styles/mapbox/{self.value}-v{self.version}'

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions