fix(python): branch-scope to_lance so branch handles don't read main

This commit is contained in:
Brendan Clement
2026-06-02 23:20:47 -07:00
parent 705595ac56
commit 3ed2282431
4 changed files with 47 additions and 11 deletions

View File

@@ -860,6 +860,10 @@ impl Table {
Ok(Tags::new(self.inner_ref()?.clone()))
}
pub fn current_branch(&self) -> PyResult<Option<String>> {
Ok(self.inner_ref()?.current_branch())
}
#[getter]
pub fn branches(&self) -> PyResult<Branches> {
Ok(Branches::new(self.inner_ref()?.clone()))