You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2019/07/09 21:47:27 UTC

[GitHub] [libcloud] Kami commented on issue #1306: [WIP] Add Python type annotation for base APIs

Kami commented on issue #1306: [WIP] Add Python type annotation for base APIs
URL: https://github.com/apache/libcloud/pull/1306#issuecomment-509822298
 
 
   It turns out this will be quite a challenging and painful task.
   
   Existing type annotations I added already uncovered some issues with sub-classes not handling parent types correctly, etc.
   
   We don't have much choice here, but to use a type annotation work around in such scenarios (supporting multiple types aka Union), because we can't break the API.
   
   In addition to that, it will also be hard to come up with good type annotations for our dynamic get_driver and other factory methods. 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services