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
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