You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "trim21 (via GitHub)" <gi...@apache.org> on 2026/05/15 18:48:47 UTC
[PR] fix(bindings/python): Add missing capability stubs and fix File.__enter__ signature [opendal]
trim21 opened a new pull request, #7531:
URL: https://github.com/apache/opendal/pull/7531
# Which issue does this PR close?
Closes #.
# Rationale for this change
The Python bindings were missing several capability property stubs that exist in the Rust side, causing type checkers to report errors when accessing these properties. Additionally, the `File.__enter__` method signature was incorrect.
# What changes are included in this PR?
- **`capability.pyi`**: Added missing property stubs for `stat_with_if_modified_since`, `stat_with_if_unmodified_since`, `stat_with_version`, `delete_with_version`, `delete_with_recursive`
- **`exceptions.pyi`**: Reordered `RateLimited` before `RangeNotSatisfied` for alphabetical consistency
- **`file.pyi`**: Removed stale `slf: File` parameter from `__enter__` signature
- **`file.rs`**: Changed `__enter__` to accept `PyRef<'_, Self>` instead of `Py<Self>`, matching pyo3 conventions for `__enter__`
# Are there any user-facing changes?
No breaking changes. These are additive stubs and a type signature fix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(bindings/python): fix service generation after services refactor [opendal]
Posted by "trim21 (via GitHub)" <gi...@apache.org>.
trim21 commented on PR #7531:
URL: https://github.com/apache/opendal/pull/7531#issuecomment-4466984321
I'm not sure why build-java-doc failed, I don't think this PR cause it
```
Run ./mvnw javadoc:javadoc
./mvnw javadoc:javadoc
shell: /usr/bin/bash -e {0}
env:
RUST_DOC_TOOLCHAIN: nightly-2025-10-12
RUSTDOCFLAGS: --cfg docsrs
JAVA_HOME: /opt/hostedtoolcache/Java_Zulu_jdk/25.0.3-9/x64
JAVA_HOME_25_X64: /opt/hostedtoolcache/Java_Zulu_jdk/25.0.3-9/x64
Error: Could not find or load main class org.apache.maven.wrapper.MavenWrapperMain
Caused by: java.lang.ClassNotFoundException: org.apache.maven.wrapper.MavenWrapperMain
Error: Process completed with exit code 1.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(dev/generator): fix service generation after services refactor [opendal]
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo merged PR #7531:
URL: https://github.com/apache/opendal/pull/7531
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org