Completion on imported module n

As per

http://stackoverflow.com/questions/36774969/pycharm-specifying-type-of-returned-variable

import boto.kinesis
x = boto.kinesis.connect_to_region("us-west-2")
assert isinstance(x, boto.kinesis.layer1.KinesisConnection)

foo = x.    <--- not getting completions here

Workaround is to add

from boto.kinesis.layer1 import KinesisConnection
It would be great not to have to add the second import.

 

Please sign in to leave a comment.