Re: [Tutor] Python type annotation question

2019-06-24 Thread Mats Wichmann
On 6/24/19 12:48 PM, Arup Rakshit wrote: > I am little experimenting with Python type annotation today. I wrote a simple > class as below: > from datetime import date class Person: > ... dob: date > ... def __init__(self, dob): > ... self.dob = dob > ... Person

[Tutor] Python type annotation question

2019-06-24 Thread Arup Rakshit
I am little experimenting with Python type annotation today. I wrote a simple class as below: >>> from datetime import date >>> class Person: ... dob: date ... def __init__(self, dob): ... self.dob = dob ... >>> Person(11) <__main__.Person object at 0x10e078128> >>> p = Perso