chanzuckerberg / cellxgene-census

CZ CELLxGENE Discover Census
https://chanzuckerberg.github.io/cellxgene-census/
MIT License
72 stars 19 forks source link

Embrace the __future__ of typing #1155

Open ivirshup opened 1 month ago

ivirshup commented 1 month ago

This PR moves the codebase towards using more contemporary typing patterns via the from __future__ import annotations backport mechanism. Main changes are:

Turns out this needed a little bit of manual work. For now, here is a demo of what this looks like. I've covered the main census API, but not the tests or experimental yet.

ivirshup commented 1 month ago

I need to look into the failure, iirc this may be fixable with typing-extensions