appwrite / sdk-for-python

[READ-ONLY] Official Appwrite Python SDK 🐍
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
226 stars 57 forks source link

🚀 Feature: use type hints #61

Closed Ananya2001-an closed 1 year ago

Ananya2001-an commented 1 year ago

🔖 Feature description

In python we don't have strict type checking like in TS but we can still add type hints which would be good for better readability and maintainability. Also we can use a famous python package called mypy to implement some strict type checking if possible; not a necessity tho :)

🎤 Pitch

Like maybe something like this:

def get_image(self, url, width: float = None, height: float = None) -> Optional[str]:

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?