Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F #4188: Enabled custom attributes at Python binding #6494

Closed
wants to merge 1 commit into from
Closed

F #4188: Enabled custom attributes at Python binding #6494

wants to merge 1 commit into from

Conversation

ms4ons
Copy link
Contributor

@ms4ons ms4ons commented Feb 5, 2024

Description

Added TemplatedType._buildAttributes that will be inherited by binding classes and called indirectly from bindings.parseString.

It will add custom_attrs field of type dict to the result of parseString, e.g.:

>>> result.custom_attrs
{'x': 'y'}
>>> result.HOST[0].custom_attrs
{'a': 'b', 'c': 'd'}

Branches to which this PR applies

  • master
  • one-6.8
  • one-6.4

  • Check this if this PR should not be squashed

@ms4ons ms4ons requested a review from tinova February 5, 2024 12:21
@ms4ons ms4ons self-assigned this Feb 5, 2024
@ms4ons ms4ons linked an issue Feb 6, 2024 that may be closed by this pull request
7 tasks
@tinova tinova closed this Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants