You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix type hints: compute_face_areas order param and return type #1590
Similarly, the other kwargs include None as an option but None is not a valid value. For example, quadrature_rule: str | None = "triangular" should be quadrature_rule: str = "triangular", and latitude_adjusted_area: bool | None = False should be latitude_adjusted_area: bool = False.
Actually, a quick search for the string "| None = " throughout the codebase reveals many similar issues with allowing None when it should not be allowed because the code does not handle it. I will open a separate issue for that, so that this one can remain narrowly focused on face_areas related type hinting.
Activity
Sevans711 commentedon Jul 20, 2026
Similarly, the other kwargs include None as an option but None is not a valid value. For example,
quadrature_rule: str | None = "triangular"should bequadrature_rule: str = "triangular", andlatitude_adjusted_area: bool | None = Falseshould be latitude_adjusted_area: bool = False.Actually, a quick search for the string
"| None = "throughout the codebase reveals many similar issues with allowingNonewhen it should not be allowed because the code does not handle it. I will open a separate issue for that, so that this one can remain narrowly focused on face_areas related type hinting.