Python Forum
Python 3 Function Annotations
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python 3 Function Annotations
#6
(Mar-01-2017, 06:01 AM)charlesprince Wrote:
(Feb-28-2017, 10:35 AM)stranac Wrote: How are they not working?
i have restrict to int but it was allow string. its not checking while running brother. please suggest me some examples.
Thank you

(Mar-01-2017, 06:21 AM)stranac Wrote: Annotations aren't meant to restrict anything. In fact, python doesn't do anything at all with annotations, their interpretation is left for third parties. If you want type checking, take a look at mypy
I have been looking for type checking like JAVA. why it's not available in python or else is there any way to make it. please let me know
Reply


Messages In This Thread
Python 3 Function Annotations - by charlesprince - Feb-28-2017, 08:03 AM
RE: Python 3 Function Annotations - by stranac - Feb-28-2017, 10:35 AM
RE: Python 3 Function Annotations - by stranac - Mar-01-2017, 06:21 AM
RE: Python 3 Function Annotations - by ichabod801 - Mar-01-2017, 11:08 PM
RE: Python 3 Function Annotations - by charlesprince - Mar-13-2017, 03:09 PM
RE: Python 3 Function Annotations - by ichabod801 - Mar-14-2017, 12:41 AM
RE: Python 3 Function Annotations - by wavic - Mar-14-2017, 03:01 AM
RE: Python 3 Function Annotations - by Larz60+ - Mar-14-2017, 05:43 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020