Type hint become more and more popular in Python code, it can increase readability and reduce the burden of the documentation. It is originally proposed in https://peps.python.org/pep-0484/. For a tutorial "realpython" provides a good one, https://realpython.com/python-type-checking/. I think we should follow this practice and add type hint to our functions and classes.
Type hint become more and more popular in Python code, it can increase readability and reduce the burden of the documentation. It is originally proposed in https://peps.python.org/pep-0484/. For a tutorial "realpython" provides a good one, https://realpython.com/python-type-checking/. I think we should follow this practice and add type hint to our functions and classes.