Type Hints – Better type at Python

All new tutorial are submitted here.
They will be moved to the main Tutorials section once they have been approved by mods and admins.

Type Hints – Better type at Python

Postby may_yeung » Wed Jul 27, 2016 7:43 am

New Python Type hints offers type checking on to function parameters, return values, class attributes, as if it's a static typed language.

Python is known as a dynamic, strong-typed language. Most developers love it but some feel mad without type checking or type-hinted auto-completion. In Python3.5, Type Hints is introduced to further delight developers who want those features.

Type Hints offers type checking on function parameters, return values and class attributes, as if it’s static-typed. If you pass something does not match the expected type, a warning will be given.

According to The Theory of Type Hints, we wrote a blog to show examples on how the rules work out in practice:
Last edited by micseydel on Wed Jul 27, 2016 8:15 am, edited 1 time in total.
Reason: Initial post lock.
Posts: 1
Joined: Wed Jul 27, 2016 7:38 am

Re: Type Hints – Better type at Python

Postby micseydel » Wed Jul 27, 2016 8:21 am

This isn't the first time a link to Oursky has appeared on this forum. As far as tutorials go, I'd say that the link provided here is extremely sparse - it's more of a hello-world than a tutorial.
Due to the reasons discussed here we will be moving to python-forum.io on October 1, 2016.

This forum will be locked down and no one will be able to post/edit/create threads, etc. here from thereafter. Please create an account at the new site to continue discussion.
User avatar
Posts: 3000
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA

Return to Tutorial Submissions

Who is online

Users browsing this forum: No registered users and 2 guests