N4S4 / synology-api

A Python wrapper around Synology API
MIT License
360 stars 137 forks source link

Add typing for api #120

Closed shenjackyuanjie closed 1 year ago

shenjackyuanjie commented 1 year ago

add typing for auth.py add


    def __init__(self, ip_address: str, port: int, 
                 username: str, password: str, 
                 secure=False, cert_verify=False, 
                 dsm_version=7, debug=True, otp_code: str = None):

for most api add return type hint for filestation

and remove unessary super(xxx, self)

shenjackyuanjie commented 1 year ago

I think that's all for me to do other typing hint need more further reading the code sorry, I don't have many time

back to school!

N4S4 commented 1 year ago

Typing added from PR #121