Skip to content

Commit b7f2bce

Browse files
fix(mypy): codebase.op type annotation (#81)
1 parent a72226c commit b7f2bce

File tree

2 files changed

+327
-326
lines changed
  • src/codegen/sdk/core
  • tests/unit/codegen/sdk/output/snapshots/test_ast/test_ast_basic

2 files changed

+327
-326
lines changed

src/codegen/sdk/core/codebase.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from typing_extensions import deprecated
2121

2222
from codegen.git.repo_operator.local_repo_operator import LocalRepoOperator
23+
from codegen.git.repo_operator.remote_repo_operator import RemoteRepoOperator
2324
from codegen.git.repo_operator.repo_operator import RepoOperator
2425
from codegen.git.schemas.enums import CheckoutResult
2526
from codegen.git.schemas.repo_config import BaseRepoConfig
@@ -99,7 +100,7 @@ class Codebase(Generic[TSourceFile, TDirectory, TSymbol, TClass, TFunction, TImp
99100
It provides a high-level interface to interact with the codebase graph, and provides methods to access and manipulate files, directories, symbols, and other entities in the codebase.
100101
"""
101102

102-
_op: RepoOperator
103+
_op: RepoOperator | RemoteRepoOperator
103104
viz: VisualizationManager
104105
repo_path: Path
105106
console: Console

0 commit comments

Comments
 (0)