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): |