reST param type and namedtuple

I was wondering if there was a way to get autocomplete to recognize namedtuples.

Given
  Point = namedtuple('Point', ('x', 'y'))
prettyPrint();
PyCharm doesn't recognize Point as a type
def takes_a_point(point):
    """
    This takes a point
    
    :param point: Point to do stuff with
    :type point: Point
    """
    x = point.x  # No autocomplete for x

    # ... do some stuff ...
    return
prettyPrint();
PyCharm does recognize this though
  p = Point(5, 10)
  x = p.x   # Autocomplete works
prettyPrint();
So is it just a missing feature in PyCharm (I'm using 2.6 EAP) or am I declaring the type incorrectly?

EDIT: Formatting...
2 comments
Comment actions Permalink
Filed: http://youtrack.jetbrains.com/issue/PY-7322

Wanted to confirm I wasn't just doing it wrong.  Thanks!
0

Please sign in to leave a comment.