I've already argued this in another thread, but allow me to repeat myself.
Python's typing is not "strong" in any meaningful sense. You can create an instance of any object and then just randomly start adding and remove attributes to it in runtime.
Say you have a class called Point and in the constructor it defines self.x and self.y and documents them to be numbers.
Now somewhere in the code you can check any object to see if it's an instance of Point using isinstance(obj, Point). Do you think you can guarantee that obj.x and obj.y are present and set to numbers? No! Because anyone can just take any object and remove the attributes you're looking for and add new attributes you weren't expecting.
That's hardly 'strong' typing.
>>> obj1 = Point(10, 5)
>>> obj1
<__main__.Point object at 0x101b15da0>
>>> obj1.x
10
>>> obj1.y
5
>>> delattr(obj1, 'x')
>>> obj1.x
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Point' object has no attribute 'x'
>>>
17
u/Yubifarts Jun 28 '18
I love dynamic typing so long as it's also strongly typed, but that's my preference.