David Hewitt
4cf56669e5
Merge pull request #2765 from jqnatividad/bump-memoffset
...
bump memoffset from 0.6.5 to 0.7
2022-11-22 07:49:05 +00:00
Saul Shanabrook
8a75352122
Add link to Python typing docs for type stubs
...
AFAIK there isn't currently a link to the article on ["Type Stubs"](https://typing.readthedocs.io/en/latest/source/stubs.html ) in the official Python static typing documentation. This PR adds a link to this documentation, which is the most comprehensive I have seen around type stubs.
2022-11-21 16:48:43 -05:00
messense
85b4309923
ci: try reusable workflow
2022-11-21 17:30:43 +08:00
messense
d6abdc0f63
Merge pull request #2764 from matthewlloyd/patch-1
...
guide: linkify "Method arguments" in class.md
2022-11-21 11:17:24 +08:00
Joel Natividad
91adca3b04
bump memoffset from 0.6.5 to 0.7
2022-11-20 20:23:11 -05:00
Matthew Lloyd
b2014c30aa
guide: linkify "Method arguments" in class.md
2022-11-20 16:33:15 -05:00
Georg Brandl
99c8dea30e
Use Python::get_type() instead of PyTypeInfo::type_object()
...
The former needs one less import and uses a familiar object.
2022-11-20 15:16:18 +01:00
messense
b7bbd7b497
ci: configure bors
2022-11-20 21:23:05 +08:00
Georg Brandl
21fd1a91d0
Make downcast()
methods inline
2022-11-20 13:14:54 +01:00
David Hewitt
8ca41be87b
Merge pull request #2749 from PyO3/2748-fix
...
Fix being able to call arg-less `#[new]` with any args from Python
2022-11-20 11:39:42 +00:00
David Hewitt
6af46596e0
Merge pull request #2751 from PyO3/2601-fix
...
guide: better document negative index behavior w.r.t. PySequence
2022-11-20 11:34:52 +00:00
David Hewitt
7e9f3fa63b
Merge pull request #2759 from PyO3/2758-fix
...
ffi: use bytesobject/dictobject on PyPy
2022-11-20 11:32:18 +00:00
David Hewitt
d865367c49
Merge pull request #2760 from PyO3/2750-fix
...
macros: fix the check for applying `METH_NOARGS`
2022-11-20 11:31:14 +00:00
Georg Brandl
4a2e6bd51a
ffi: fixup bytesobject/dictobject on PyPy
...
Fixes #2758
2022-11-20 11:31:24 +01:00
Georg Brandl
ea9da80ab1
macros: fix the check for applying METH_NOARGS
...
to only consider the Python argument list.
Fixes #2750
2022-11-20 09:00:42 +01:00
Georg Brandl
51eeb6db96
guide: explain how #[new] works w.r.t. native base types
2022-11-20 08:25:42 +01:00
Georg Brandl
2a630a2a52
Fix being able to call arg-less #[new]
with any args from Python
...
Fixes #2748
2022-11-20 08:25:19 +01:00
Georg Brandl
77f5fc107e
guide: better document negative index behavior w.r.t. PySequence
...
Fixes #2601
2022-11-20 08:09:50 +01:00
messense
3408cc4200
Merge pull request #2752 from PyO3/2737-fix
...
ffi: link to _PyPyBytes_Resize
2022-11-19 23:45:53 +08:00
Georg Brandl
68e82ec962
ffi: link to _PyPyBytes_Resize
...
Fixes #2737
2022-11-19 12:25:11 +01:00
David Hewitt
740cfa0057
Merge pull request #2753 from PyO3/ci-msrv-fix
...
CI: fix rayon-core version to keep MSRV compat
2022-11-19 09:12:27 +00:00
Georg Brandl
10b53e1958
CI: fix rayon-core version to keep MSRV compat
2022-11-19 09:18:42 +01:00
Georg Brandl
249c0209fd
Add {Py,PyAny}::downcast_unchecked to replace try_from_unchecked calls
2022-11-18 07:00:40 +01:00
Georg Brandl
d6ac4d51b7
Replace explicit try_from
usage by downcast
2022-11-18 07:00:40 +01:00
Georg Brandl
7d4dfc32b3
PyAny::downcast(): relax lifetime bounds
2022-11-18 07:00:40 +01:00
Georg Brandl
c489809938
Py/PyAny: deprecate cast_as() in favor of downcast()
...
They are (practically) identical on PyAny, and `downcast()` is the more
useful name.
2022-11-18 07:00:40 +01:00
Georg Brandl
1d20f2a531
Export warning classes and add PyErr::warn_explicit() ( #2742 )
2022-11-17 19:30:48 +01:00
David Hewitt
00fc0358b9
error when #[pyo3(signature = ())]
used on invalid methods
2022-11-17 08:28:34 +00:00
Adam Reichold
f5735614fb
Merge pull request #2744 from PyO3/chrono-expect-value-error
...
Replace hidden panics on invalid values passed to chrono by ValueError.
2022-11-17 06:47:19 +01:00
Georg Brandl
62e2d6094e
crate doc: add missing links to chrono subpage/crate doc ( #2743 )
2022-11-16 20:39:59 +00:00
Adam Reichold
f8ce3408f4
Replace hidden panics on invalid values passed to chrono by ValueError.
2022-11-16 20:23:00 +01:00
Adam Reichold
30454f135b
Merge pull request #2740 from PyO3/make-clippy-happy-again
...
Make Clippy happy again
2022-11-16 19:58:43 +01:00
Adam Reichold
4ffe0963b8
Make Clippy happy again by avoid deprecated constructors from chrono.
2022-11-15 22:06:02 +01:00
Adam Reichold
694ef1ea39
Make Clippy happy again by removing supposedly unnecessary casts.
2022-11-15 21:50:29 +01:00
Chih Wang
d060a19303
Add support for std::num::NonZero integer types ( #2730 )
2022-11-13 10:54:55 +00:00
messense
0ef3fcbf4b
Merge pull request #2727 from messense/pyo3-rebuild
...
`pyo3-build-config`: rebuild when `PYO3_ENVIRONMENT_SIGNATURE` value changed
2022-11-10 18:06:57 +08:00
messense
dee791de90
pyo3-build-config
: rebuild when PYO3_ENVIRONMENT_SIGNATURE
value changed
2022-11-09 20:28:18 +08:00
David Hewitt
4b7e0ee5b4
Merge pull request #2685 from alex/type-error
...
Use a TypeError, rather than a ValueError, when refusing to treat a str as a Vec
2022-11-09 07:36:40 +00:00
Itamar Turner-Trauring
6746ff8216
Python 3.7 support for PyCodeObject. ( #2726 )
...
* Python 3.7 support for PyCodeObject.
Co-authored-by: Itamar Turner-Trauring <itamar@pythonspeed.com>
2022-11-08 21:06:05 +00:00
Alex Gaynor
f7a487b809
Use a TypeError, rather than a ValueError, when refusing to treat a str as a Vec
...
This is far more consistent with how these exceptions are usually used
2022-11-07 07:48:13 -05:00
messense
7c25153363
Merge pull request #2712 from PyO3/bump-include-jobs
...
Also bump CI matrix include jobs to latest stable CPython version.
2022-11-07 17:29:46 +08:00
Adam Reichold
ec42f3e0fe
Drop PYPRERELEASE variable from Emscripten Makefile as we use a proper release now.
2022-11-07 08:31:47 +01:00
Adam Reichold
85628ddee6
Also run ASAN tests using release mode as many issue only surface with optimizations on.
2022-11-07 08:30:26 +01:00
Adam Reichold
0516e27ace
Also bump CI matrix include jobs to latest stable CPython version.
2022-11-07 08:30:25 +01:00
Bruno Kolenbrander
6766d9f93b
Merge pull request #2686 from dalcde/closure-name-doc
...
Support passing name and doc to new_closure.
2022-11-06 17:35:20 +01:00
messense
cfcc617667
Merge pull request #2720 from messense/rust-toolchain
...
CI: switch from `actions-rs/toolchain` to `dtolnay/rust-toolchain`
2022-11-06 10:05:41 +08:00
messense
c6c0b45501
Update actions/checkout
to v3
2022-11-05 18:41:09 +08:00
messense
2f11cc8644
maturin-action moved to PyO3 org
2022-11-04 16:15:11 +08:00
messense
7bc5a96277
Update Swatinem/rust-cache
to v2
2022-11-04 16:15:10 +08:00
messense
e6f84be167
CI: switch from actions-rs/toolchain
to dtolnay/rust-toolchain
2022-11-04 16:15:06 +08:00