Kami commented on issue #1306: Add Python type annotation for base Compute API
URL: https://github.com/apache/libcloud/pull/1306#issuecomment-593092777
 
 
   @c-w I just found out today that casting to a driver type doesn't work as 
expected - https://github.com/python/mypy/issues/3903#issue-254433060 :/
   
   MyPy won't inherit type annotations from the base class if subclass 
overrides the method (it doesn't matter if it preserves the parent method 
signature).
   
   Pretty much only option we have at this point is to add type annotations to 
all the subclassed methods.
   
   This is obviously far from ideal :/

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to