Skip to content

Update typing for active array info and field association in dataset.py and arrays.py #6822

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 3 commits into from
Nov 20, 2024

Conversation

user27182
Copy link
Contributor

Overview

Most of the typing updates relate to ActiveFieldInfo and FieldAssociation, though there are some other minor unrelated typing changes as well (e.g. magic methods).

Also:

  • The override for ActiveArrayInfo.__setitem__ is removed (has no effect)
  • The override for ActiveArrayInfo.__getattr__ is removed. This was an unnecessary "middle-man" that prevented mypy from being able to infer the type of association and name attributes.

@pyvista-bot pyvista-bot added the maintenance Low-impact maintenance activity label Nov 20, 2024
Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.50%. Comparing base (c6e4d14) to head (7d98381).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6822   +/-   ##
=======================================
  Coverage   97.49%   97.50%           
=======================================
  Files         143      143           
  Lines       28181    28188    +7     
=======================================
+ Hits        27476    27485    +9     
+ Misses        705      703    -2     
---- 🚨 Try these New Features:

@pyvista-bot
Copy link
Contributor

pyvista-bot commented Nov 20, 2024

@pyvista-bot pyvista-bot temporarily deployed to pull request November 20, 2024 02:39 Inactive
@pyvista-bot pyvista-bot temporarily deployed to pull request November 20, 2024 19:48 Inactive
Copy link
Member

@tkoyama010 tkoyama010 left a comment

Choose a reason for hiding this comment

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

LGTM

@tkoyama010 tkoyama010 merged commit b5e891a into main Nov 20, 2024
35 checks passed
@tkoyama010 tkoyama010 deleted the maint/array-info-typing branch November 20, 2024 21:53
@banesullivan banesullivan mentioned this pull request Apr 17, 2025
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Low-impact maintenance activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants