You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/09/10 08:23:08 UTC
(opendal) branch main updated: fix(bindings/python): sync File stub with GIL-release docstring (#8271)
This is an automated email from the ASF dual-hosted git repository.
Xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 43a200fae9 fix(bindings/python): sync File stub with GIL-release docstring (#8271)
43a200fae9 is described below
commit 43a200fae90ee2edff3854442b2848506a21cc50
Author: ForwardXu <fo...@apache.org>
AuthorDate: Thu Sep 10 16:23:01 2026 +0800
fix(bindings/python): sync File stub with GIL-release docstring (#8271)
#8267 documented GIL release on File but left file.pyi stale, so Python
CI stub-gen fails git diff --exit-code.
---
bindings/python/python/opendal/file.pyi | 3 +++
1 file changed, 3 insertions(+)
diff --git a/bindings/python/python/opendal/file.pyi b/bindings/python/python/opendal/file.pyi
index 98ada5c986..94685c53aa 100644
--- a/bindings/python/python/opendal/file.pyi
+++ b/bindings/python/python/opendal/file.pyi
@@ -163,6 +163,9 @@ class File:
A file-like object for reading and writing data.
Created by the `open` method of the `Operator` class.
+
+ Storage I/O releases the Python GIL while waiting. Concurrent operations on
+ the same file are rejected; use separate files for I/O from multiple threads.
"""
def __enter__(self, /) -> File: ...