Skip to content

Add capability to return gdc property as any #2422

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

Merged
merged 1 commit into from
Jul 10, 2025
Merged

Conversation

cbellot000
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Jul 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.19%. Comparing base (894351e) to head (bcc8280).
Report is 5 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2422      +/-   ##
==========================================
+ Coverage   84.16%   84.19%   +0.03%     
==========================================
  Files          91       91              
  Lines       10597    10599       +2     
==========================================
+ Hits         8919     8924       +5     
+ Misses       1678     1675       -3     

Copy link
Contributor

github-actions bot commented Jul 9, 2025

Pull request documentation preview limit (10) reached: skipping documentation deployment for this pull request.

@cbellot000 cbellot000 requested a review from PProfizi July 9, 2025 12:50
gdc = dpf.GenericDataContainer(server=server_type)
entity = dpf.DataTree(server=server_type)
entity.add(name="john")
gdc.set_property("persons", entity)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cbellot000 shouldn't the set_property be called with entity as Any?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why @PProfizi, it's a data tree, not an any. Getting as any is possible on any data type (DataTree is just an example here)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, the test is called test_set_get_any_generic_data_container, I thought this meant you would test setting and getting an Any.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I misunderstood the PR

@cbellot000 cbellot000 merged commit d9d659e into master Jul 10, 2025
87 of 89 checks passed
@cbellot000 cbellot000 deleted the feat/gdc_prop_any branch July 10, 2025 12:26
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.

3 participants