Skip to content

Fix/improve typing for get_codebase_session using default programming_language #275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/codegen/sdk/codebase/factory/get_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@
from codegen.sdk.tree_sitter_parser import print_errors


@overload
def get_codebase_session(
tmpdir: str | os.PathLike[str],
programming_language: None = None,
files: dict[str, str] = {},
commit: bool = True,
sync_graph: bool = True,
verify_input: bool = True,
verify_output: bool = True,
repo_config: BaseRepoConfig | None = None,
feature_flags: GSFeatureFlags = TestFlags,
session_options: SessionOptions = SessionOptions(),
secrets: Secrets = Secrets(),
) -> AbstractContextManager[PyCodebaseType]: ...


@overload
def get_codebase_session(
tmpdir: str | os.PathLike[str],
Expand Down
Loading