Closed carlocastoldi closed 9 months ago
Hi @carlocastoldi, thanks for this PR!
We're currently supporting Python 3.9, 3.10 & 3.11, so unfortunately we can't use any functionality that's only available in newer versions. mypy
is also complaining with:
brainglobe_heatmap/plane.py:1: error: Module "typing" has no attribute "Self" [attr-defined]
brainglobe_heatmap/plane.py:1: note: Use `from typing_extensions import Self` instead
brainglobe_heatmap/plane.py:1: note: See https://mypy.readthedocs.io/en/stable/runtime_troubles.html#using-new-additions-to-the-typing-module
Found 1 error in 1 file (checked 17 source files)
Would you mind fixing (or removing) the typing, then I'll review.
Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.
Thanks for integrating Codecov - We've got you covered :open_umbrella:
This PR:
intersect_with_plane()
from newestvedo
instead of the backported function as there is no longer the need to duplicate code from an updated dependency thanks to #21vedo
function calls still usinglowerCamelCase
instead ofsnake_case
Additionally I changed
Plane.from_norm()
typing to return aSelf
type instead of avd.Plane
because, well, that's what it returns. If this is a problem becausetyping.Self
is not in previous python version, I can just remove the type hinting