mirror of
https://github.com/hwchase17/langchain.git
synced 2025-10-28 06:10:30 +00:00
chore(cli): add mypy strict checking (#32386)
Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
committed by
GitHub
parent
444939945a
commit
e3c4aeaea1
@@ -24,7 +24,7 @@ class ImportExtractor(ast.NodeVisitor):
|
||||
|
||||
def __init__(self, *, from_package: Optional[str] = None) -> None:
|
||||
"""Extract all imports from the given code, optionally filtering by package."""
|
||||
self.imports: list = []
|
||||
self.imports: list[tuple[str, str]] = []
|
||||
self.package = from_package
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user