|
26 | 26 | from inspect import Parameter as SignatureParameter |
27 | 27 | from inspect import Signature, cleandoc |
28 | 28 | from inspect import signature as getsignature |
29 | | -from typing import TYPE_CHECKING, Any |
| 29 | +from typing import TYPE_CHECKING, Any, Sequence |
30 | 30 |
|
31 | 31 | from griffe.agents.nodes import ObjectKind, ObjectNode, safe_get_annotation |
32 | 32 | from griffe.collections import LinesCollection, ModulesCollection |
@@ -58,7 +58,7 @@ def inspect( |
58 | 58 | module_name: str, |
59 | 59 | *, |
60 | 60 | filepath: Path | None = None, |
61 | | - import_paths: list[Path] | None = None, |
| 61 | + import_paths: Sequence[str | Path] | None = None, |
62 | 62 | extensions: Extensions | None = None, |
63 | 63 | parent: Module | None = None, |
64 | 64 | docstring_parser: Parser | None = None, |
@@ -159,7 +159,7 @@ def _get_docstring(self, node: ObjectNode) -> Docstring | None: |
159 | 159 | parser_options=self.docstring_options, |
160 | 160 | ) |
161 | 161 |
|
162 | | - def get_module(self, import_paths: list[Path] | None = None) -> Module: |
| 162 | + def get_module(self, import_paths: Sequence[str | Path] | None = None) -> Module: |
163 | 163 | """Build and return the object representing the module attached to this inspector. |
164 | 164 |
|
165 | 165 | This method triggers a complete inspection of the module members. |
|
0 commit comments