py-stockfish / stockfish

Integrates the Stockfish chess engine with Python (Official fork)
https://py-stockfish.github.io/stockfish/
MIT License
30 stars 9 forks source link

Move away from using type hints beginning with `Dict[`, `List[`, `Tuple[` #71

Open johndoknjas opened 5 months ago

johndoknjas commented 5 months ago

Due to the from __future__ import annotations line in models.py, subscripting types with containers directly (e.g., dict[) will work for Python 3.7+. I don't think replacing usages of the typing library in these instances will have backwards compatibility issues, but I may be wrong.