libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [libcloud] Kami commented on issue #1306: [WIP] Add Python type annotation for base APIs
Date Tue, 09 Jul 2019 21:47:27 GMT
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

Mime
View raw message