src/eric7/QScintilla/DocstringGenerator/PyDocstringGenerator.py

branch
eric7
changeset 9237
03c714bd4ebf
parent 9221
bf71ee032bb4
child 9422
cf2ea9c6316a
equal deleted inserted replaced
9236:db53a9efe7ef 9237:03c714bd4ebf
41 method definition 41 method definition
42 @rtype bool 42 @rtype bool
43 """ 43 """
44 if isinstance(text, str): 44 if isinstance(text, str):
45 text = text.lstrip() 45 text = text.lstrip()
46 if text.startswith(("def", "async def")): 46 if text.startswith(("def ", "async def ")):
47 return True 47 return True
48 48
49 return False 49 return False
50 50
51 def hasFunctionDefinition(self, cursorPosition): 51 def hasFunctionDefinition(self, cursorPosition):

eric ide

mercurial