daankoning / debater.py

A simple library to keep track of your progress and history in competitive debating.
https://debaterpy.readthedocs.io/en/stable/
MIT License
0 stars 0 forks source link

Improve typehint on `Item.from_json` #3

Open daankoning opened 1 year ago

daankoning commented 1 year ago

Currently it merely typehints Item. This is technically correct however it would be better if the typehint explicitly indicated that subclasses of Item, such as Tournament are returned.

daankoning commented 7 months ago

This can quite easily be done with typing.Self.