Add type hint, update to pyo3 0.27, add automatic type hint generator#1928
Conversation
…s to be uv related
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
McPatate
left a comment
There was a problem hiding this comment.
Did you make sure the doc strings in the removed pyi files didn't have any drift with the docstrings in code? As in, any additional up to date documentation not present in the code files?
Looks great other than that! Nice work!
| Digits = pre_tokenizers.Digits | ||
| FixedLength = pre_tokenizers.FixedLength | ||
| Metaspace = pre_tokenizers.Metaspace | ||
| PreTokenizer = pre_tokenizers.PreTokenizer |
There was a problem hiding this comment.
did you do that yourself or is it ty that auto-sorts alphabetically?
in any case, 💆🏻
| A tuple with the string representation of the CLS token, and its id | ||
| """ | ||
| def __init__(self, sep, cls): | ||
| def __init__(self, sep: tuple[str, int], _cls: tuple[str, int]): |
There was a problem hiding this comment.
is _cls used at all? do we leave it for backwards compat?
|
Waiting for docstring support! |
- Replace complex modifications dict with simple insertions list - Remove nested process_function_or_method function - Use bottom-to-top line replacement for cleaner logic - Remove unused importlib import
df690a0 to
089f1cd
Compare
- Move stub_generation.rs to tools/stub-gen/ as standalone crate - Remove stub-gen feature and pyo3-introspection from main crate - Auto-detect PYTHONHOME for uv/venv environments - Update Makefile and README with new instructions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…huggingface#1928) * something that is supposed to work but my env does not allow it, seems to be uv related * ? * up * nits * let' s try * part of tthe update for pyo3 0.27 * more pyo3 fixes * update * does this help? * help * finally * update stub accordingly * export more of the submodules * moooore * add individual .pypi * cleanup * update pyo3 signatures and fix warning * style * update * more updates * sytle * clippy happy * does this help? * fix * fix * ? * what? * add dwarwub case co * up? * update * clippy and fmt * this time it works * remove offending one * update * remove shit * remove more shit that was unwanted * ? * simplify a bit * more verbose? * more simplification * fmt * fix some of the typing in rust directly to please TY (but also just fix some typing.Any * fix script running * fix , ignore and exclude * style * update * fmt + add it to style? * cleanup * Simplify stub.py docstring injection - Replace complex modifications dict with simple insertions list - Remove nested process_function_or_method function - Use bottom-to-top line replacement for cleaner logic - Remove unused importlib import * isolate stub generation into separate tools/stub-gen crate - Move stub_generation.rs to tools/stub-gen/ as standalone crate - Remove stub-gen feature and pyo3-introspection from main crate - Auto-detect PYTHONHOME for uv/venv environments - Update Makefile and README with new instructions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Oh bro, you rename cls to cls_token, breaking the compatibility. I don't know why you did this.
In this commit: 354a484
|
That's why the release is breaking 😉 |
Ty pyo3!
PyO3/pyo3#5137