Skip to content

use python>=3.10 typing conventions #968

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

quentinblampey
Copy link
Contributor

Since spatialdata requires python>=3.10, we can remove most of the from __future__ import annotations, and also remove all the old typings such as Union or Optional

This PR is low priority, as it's just a cleanup

Copy link

codecov bot commented Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.36%. Comparing base (def2d3c) to head (2ed9dd9).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #968      +/-   ##
==========================================
- Coverage   92.39%   92.36%   -0.03%     
==========================================
  Files          48       48              
  Lines        7440     7416      -24     
==========================================
- Hits         6874     6850      -24     
  Misses        566      566              
Files with missing lines Coverage Δ
src/spatialdata/__init__.py 96.42% <ø> (-0.13%) ⬇️
src/spatialdata/_core/_deepcopy.py 98.36% <ø> (-0.03%) ⬇️
src/spatialdata/_core/_elements.py 92.30% <ø> (-0.09%) ⬇️
src/spatialdata/_core/_utils.py 100.00% <ø> (ø)
src/spatialdata/_core/centroids.py 100.00% <ø> (ø)
src/spatialdata/_core/concatenate.py 92.00% <ø> (-0.07%) ⬇️
src/spatialdata/_core/data_extent.py 97.88% <ø> (-0.03%) ⬇️
src/spatialdata/_core/operations/aggregate.py 94.31% <100.00%> (-0.04%) ⬇️
src/spatialdata/_core/operations/map.py 98.79% <ø> (-0.02%) ⬇️
src/spatialdata/_core/operations/rasterize.py 90.03% <ø> (-0.04%) ⬇️
... and 19 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant