JelleZijlstra / autotyping

Automatically add simple type annotations to your code
238 stars 20 forks source link

Add remaining magic methods for adding return type #60

Closed dhruvmanila closed 1 year ago

dhruvmanila commented 1 year ago

Currently, the return type hints are added for the following magic methods:

https://github.com/JelleZijlstra/autotyping/blob/f65b5ee3a8fdb77999f84b4c87edb996e25269a5/autotyping/autotyping.py#L69-L84

While, there are a few more which are remaining such as the ordered ones (__eq__, __lt__, etc.)

For reference: https://docs.python.org/3/reference/datamodel.html#basic-customization