fugue-project / fugue

A unified interface for distributed computing. Fugue executes SQL, Python, Pandas, and Polars code on Spark, Dask and Ray without any rewrites.
https://fugue-tutorials.readthedocs.io/
Apache License 2.0
1.92k stars 94 forks source link

[FEATURE] Support type hinting with standard collections #543

Closed goodwanghan closed 3 weeks ago

goodwanghan commented 3 weeks ago

Is your feature request related to a problem? Please describe. From Python 3.9+, standard collections such as list[list[str]] can be used as type annotations. Fugue doesn't support them.

Describe the solution you'd like The main change is in triad: https://github.com/fugue-project/triad/pull/130 In fugue, we just need to change some matcher functions and the unit tests