Skip to content

feature: Customize Visitor.decorators_to_labels #382

@mpharrigan

Description

@mpharrigan

I'd like to customize the behavior of Visitor.decorators_to_labels (my specific use case is that I want to handle @propertys as methods instead of attributes). It seems that there isn't an easy extension point to modify the behavior of this method.

I can monkeypatch the builtin_decorators and stdlib_decorators global mappings in visitor.py, but this could be brittle

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions