22 if editor.isPyFile() or editor.getFileType() in ( |
22 if editor.isPyFile() or editor.getFileType() in ( |
23 "Python", |
23 "Python", |
24 "Python3", |
24 "Python3", |
25 "MicroPython", |
25 "MicroPython", |
26 ): |
26 ): |
27 from .PyDocstringGenerator import PyDocstringGenerator |
27 from .PyDocstringGenerator import ( # __IGNORE_WARNING_I101__ |
|
28 PyDocstringGenerator, |
|
29 ) |
28 |
30 |
29 return PyDocstringGenerator(editor) |
31 return PyDocstringGenerator(editor) |
30 else: |
32 else: |
31 from .BaseDocstringGenerator import BaseDocstringGenerator |
33 from .BaseDocstringGenerator import ( # __IGNORE_WARNING_I101__ |
|
34 BaseDocstringGenerator, |
|
35 ) |
32 |
36 |
33 return BaseDocstringGenerator(editor) |
37 return BaseDocstringGenerator(editor) |
34 |
38 |
35 |
39 |
36 def getSupportedDocstringTypes(): |
40 def getSupportedDocstringTypes(): |