Icxolu
|
5749a08b63
|
ci: updates for Rust 1.79 (#4244)
* ci: updates for Rust 1.79
* ci: fix beta clippy
* ci: fix `dead_code` warning on nightly
|
2024-06-13 18:24:13 +00:00 |
Icxolu
|
cd3f3ed67c
|
ci: updates for Rust 1.78 (#4150)
* ci: updates for Rust 1.78
* ci: fix clippy
* restrict `invalid_pymethods_duplicates` to unlimited api with `full`
|
2024-05-03 07:42:30 +00:00 |
David Hewitt
|
d0f5b6af46
|
ci: updates for Rust 1.77 (#3978)
* ci: updates for Rust 1.77
* move `SendablePtr` inside of test which uses it
|
2024-03-22 20:43:23 +00:00 |
David Hewitt
|
ec6d587218
|
support `Bound` for `classmethod` and `pass_module` (#3831)
* support `Bound` for `classmethod` and `pass_module`
* `from_ref_to_ptr` -> `ref_from_ptr`
* add detailed docs to `ref_from_ptr`
|
2024-02-16 00:36:11 +00:00 |
David Hewitt
|
5ac56b8eb0
|
improve error for invalid `#[classmethod]` receivers
|
2023-11-24 03:24:46 +00:00 |
Joseph Perez
|
627841f1e2
|
feat: support `async fn` in macros with coroutine implementation
|
2023-11-22 20:25:36 +01:00 |
David Hewitt
|
ddc04ea093
|
emit helpful error hint for classmethod with receiver
|
2023-10-10 06:30:19 +01:00 |
David Hewitt
|
1158c08f42
|
error on passing arguments to `#[new]` and similar attributes
|
2023-10-08 21:31:59 +01:00 |
David Hewitt
|
a1d333a563
|
emit compile errors on macros inside `#[pymethods]`
Co-authored-by: Bruno Kolenbrander <59372212+mejrs@users.noreply.github.com>
|
2023-10-02 22:15:29 +01:00 |
Stu Hood
|
20c5618160
|
Add support for combining the `#[new]` and `#[classmethod]` method types.
|
2023-05-16 15:51:14 -07:00 |
David Hewitt
|
8bd17f02c7
|
support `text_signature` on `#[new]`
|
2023-05-04 07:15:11 +01:00 |
David Hewitt
|
5039fd746a
|
add automatic text signature generation
|
2022-12-24 09:43:02 +00:00 |
David Hewitt
|
f01b245d85
|
update ui tests for Rust 1.66
|
2022-12-16 20:56:15 +00:00 |
David Hewitt
|
00fc0358b9
|
error when `#[pyo3(signature = ())]` used on invalid methods
|
2022-11-17 08:28:34 +00:00 |
David Hewitt
|
8e8b484169
|
add `#[pyo3(signature = (...))]` attribute (#2702)
|
2022-10-25 07:23:21 +01:00 |
David Hewitt
|
f81a01b604
|
macros: emit pymethod associated methods as a single block
|
2022-06-16 22:15:29 +01:00 |
Ivan Krivosheev
|
f19561c745
|
Allow #[classattr] take Python argument
|
2022-06-16 13:08:53 +03:00 |
David Hewitt
|
a306365db8
|
pymethods: prevent methods sharing the same name
|
2022-05-24 21:15:30 +01:00 |
Bruno Kolenbrander
|
43944aef76
|
Create a better error message for moving self (#2238)
|
2022-03-24 10:27:37 +01:00 |
David Hewitt
|
f5b2a88a70
|
refactor: include __new__ as slot
|
2022-02-09 08:07:14 +00:00 |
mejrs
|
2006ee0d21
|
Fix ci
|
2022-01-13 22:25:23 +01:00 |
David Hewitt
|
dc8032a5ff
|
pyfunction: allow required positional after option
|
2022-01-11 00:44:41 +00:00 |
Juniper Parsons
|
47cf13239f
|
Disallow positional args after optional args
|
2021-12-09 10:01:59 -05:00 |
David Hewitt
|
3ab32ff01f
|
guide: magic methods in pymethods
|
2021-10-24 15:59:22 +01:00 |
David Hewitt
|
4b2345fe80
|
pymethods: support __call__ proto
|
2021-10-23 00:06:46 +01:00 |
Ashley Anderson
|
a21e57a9d3
|
Fix additional tests after trybuild update
|
2021-10-11 20:52:24 -04:00 |
David Hewitt
|
9b8b133905
|
pyfunction: document `#[pyo3(pass_module)]`
|
2021-06-05 17:36:50 +01:00 |
David Hewitt
|
cec4c2d2e9
|
text_signature: move to `#[pyo3(text_signature = "...")]`
|
2021-06-05 16:33:03 +01:00 |
David Hewitt
|
9f74336bc9
|
pyfunction: better error message with `async fn`
|
2021-05-25 11:32:52 +01:00 |
David Hewitt
|
4d46abde73
|
macros: support `#[pyo3(name = "...")]`
|
2021-05-07 22:35:52 +01:00 |
David Hewitt
|
9613228a0c
|
pyfunction: reject generic functions
|
2021-03-09 23:47:47 +00:00 |
David Hewitt
|
88872eba4f
|
macros-backend: improve error handling ergonomics
|
2021-01-10 10:25:43 +00:00 |