Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • CAiMIRA CAiMIRA
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CAiMIRACAiMIRA
  • CAiMIRACAiMIRA
  • Merge requests
  • !426

Added a method to get a nested attribute on a dataclass

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Luis Aleixo requested to merge feature/nested_getattr into master Feb 13, 2023
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Added a method to get a nested attribute on a dataclass.

It is much like getattr, except it supports nested attribute definitions. For example:

    >>> nested_getattr(obj, 'attr1.sub_attr2.sub_sub_attr3')
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/nested_getattr