Intellisense for OGR


(From [https://pytools.codeplex.com/discussions/529116](discussion 529116).)

I am using gdal/ogr libraries but couldn't make the intellisense and auto-completion to work much deeper. Actually, it works on the first stage like creating an object, but no more intellisense when using that object to access its methods/properties. Example:
from osgeo import ogr
driver = ogr.GetDriverByName('ESRI Shapefile')
dataSource = driver.

GDAL/OGR is a C++ library with SWIG bindings, but the docstrings are pretty good.

The docstring for GetDriverByName is GetDriverByName(char const * name) -> Driver which we currently parse as GetDriverByName(const : char, *name : char) -> Driver. This should be close enough to get the return type right, but we actually end up with GetDriverByName(*args).