Skip to content

Commit e0ddea8

Browse files
authored
Update AstroidBuilder setup
AstroidManager now needs to be directly imported in version 4.0.0 Unsure if there are any other breaking changes in 4.0.0
1 parent 4433b17 commit e0ddea8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoapi/_parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import astroid
55
import astroid.builder
6+
import astroid.manager
67
import sphinx.util.docstrings
78

89
from . import _astroid_utils
@@ -37,7 +38,7 @@ def _parse_file(self, file_path, condition):
3738
module_parts.appendleft(module_part)
3839

3940
module_name = ".".join(module_parts)
40-
node = astroid.builder.AstroidBuilder().file_build(file_path, module_name)
41+
node = astroid.builder.AstroidBuilder(manager.AstroidManager()).file_build(file_path, module_name)
4142
return self.parse(node)
4243

4344
def parse_file(self, file_path):

0 commit comments

Comments
 (0)