Is it possible to custom the type hinting?

When I define a class like:

class people(object):

      Member("id", type=int, default=0)

      Member("friends", type=list, default=[])

Member is a user defined class, and will make the 'id' and 'friends' to be the member of the people object.

I hope when declare a type of people, pycharm can identify the ‘id' and 'friends'  as the member of the people.

So I can take advantage of the type hint in PyCharm when coding. 

Hope someone can provide some ideas, such as writing plugins? Thanks~

Please sign in to leave a comment.