Docstring should also be evaluated in class definitions. Fixes #631.

This commit is contained in:
Dave Halter
2016-07-30 14:17:53 +02:00
parent 15221bc8f5
commit 2b4b5f069b
2 changed files with 55 additions and 5 deletions

View File

@@ -177,3 +177,44 @@ d = ''
""" bsdf """
#? str()
d.upper()
# -----------------
# class docstrings
# -----------------
class InInit():
def __init__(self, foo):
"""
:type foo: str
"""
#? str()
foo
class InClass():
"""
:type foo: str
"""
def __init__(self, foo):
#? str()
foo
class InBoth():
"""
:type foo: str
"""
def __init__(self, foo):
"""
:type foo: int
"""
#? str() int()
foo
def __init__(foo):
"""
:type foo: str
"""
#? str()
foo