Mate Kovacs
|
3ed5ddb0ec
|
feat: support pyclass on complex enums
|
2024-01-18 22:04:42 +09:00 |
|
David Hewitt
|
4504a7c96e
|
fix some nightly lints 2024-01-12
|
2024-01-12 13:34:17 +00:00 |
|
David Hewitt
|
46c3190a17
|
clean up remnants of deprecated & removed features
|
2023-12-29 13:36:46 +00:00 |
|
Adam Reichold
|
83697f0c62
|
Also replace IterANextOutput by autoref-based specialization to allow returning arbitrary values
|
2023-12-20 09:56:16 +01:00 |
|
Adam Reichold
|
ca7d90dcf3
|
Replace IterNextOutput by autoref-based specialization to allow returning arbitrary values
|
2023-12-20 09:56:16 +01:00 |
|
Adam Reichold
|
d75d4bdf81
|
Fix some holdouts from using argument holders for lifetime extensions.
|
2023-12-20 09:56:16 +01:00 |
|
Adam Reichold
|
f03ccf204c
|
Also apply holder lifetime extension to slot implementations.
|
2023-12-19 16:29:43 +01:00 |
|
Adam Reichold
|
27019b5523
|
Use local variables to extend lifetime of holder references.
|
2023-12-19 16:21:18 +01:00 |
|
David Hewitt
|
07726aefc4
|
Merge pull request #3609 from wyfo/async_receiver
feat: allow async methods to accept `&self`/`&mut self`
|
2023-12-07 07:38:25 +00:00 |
|
Joseph Perez
|
f34c70c2da
|
feat: allow async methods to accept &self /&mut self
|
2023-12-07 07:42:10 +01:00 |
|
David Hewitt
|
ed87637ebb
|
replace PyTryFrom by splitting PyTypeInfo
|
2023-12-05 08:01:30 +03:00 |
|
Joseph Perez
|
8a674c2bd3
|
feat: add coroutine::CancelHandle
|
2023-12-04 07:46:51 +01:00 |
|
David Hewitt
|
e62e6cad5d
|
Merge pull request #3603 from davidhewitt/0.19-deprecations
remove all functionality deprecated in 0.19
|
2023-11-28 06:47:30 +00:00 |
|
David Hewitt
|
53311a90eb
|
Merge pull request #3602 from davidhewitt/dead-kws
remove some unused keyword declarations
|
2023-11-28 06:45:43 +00:00 |
|
Alex Gaynor
|
fae209419c
|
fixes #3561 -- silence new clippy warning
|
2023-11-27 17:06:59 -05:00 |
|
David Hewitt
|
5c6d49084f
|
remove all functionality deprecated in 0.19
|
2023-11-27 22:02:19 +00:00 |
|
David Hewitt
|
e76797a1d6
|
remove some unused keyword declarations
|
2023-11-27 21:32:01 +00:00 |
|
Joseph Perez
|
781b9e3983
|
feat: add coroutine __name__ /__qualname__ and not-awaited warning
|
2023-11-25 21:51:20 +01:00 |
|
David Hewitt
|
9f66846238
|
Merge pull request #3595 from davidhewitt/ok-wrap
refactor `OkWrap` to not call `.into_py(py)`
|
2023-11-25 05:43:54 +00:00 |
|
David Hewitt
|
c814078866
|
refactor OkWrap to not call .into_py(py)
|
2023-11-24 10:41:08 +00:00 |
|
David Hewitt
|
5ac56b8eb0
|
improve error for invalid #[classmethod] receivers
|
2023-11-24 03:24:46 +00:00 |
|
David Hewitt
|
aba3a3552d
|
remove type_is_pymodule
|
2023-11-22 21:30:10 +00:00 |
|
David Hewitt
|
69870d2298
|
Merge pull request #3540 from wyfo/coroutine
feat: support `async fn` in macros with coroutine implementation
|
2023-11-22 19:52:15 +00:00 |
|
David Hewitt
|
3f0dfa9698
|
Merge pull request #3587 from wyfo/classmethod_into
feat: allow classmethods to receive `Py<PyType>`
|
2023-11-22 19:34:19 +00:00 |
|
Joseph Perez
|
627841f1e2
|
feat: support async fn in macros with coroutine implementation
|
2023-11-22 20:25:36 +01:00 |
|
Joseph Perez
|
744de3a142
|
feat: allow classmethod /pass_module to receive owned types
This is necessary for async functions
|
2023-11-22 07:45:59 +01:00 |
|
David Hewitt
|
abe518d164
|
Merge pull request #3586 from davidhewitt/semver-checks-v2
enable cargo-semver-checks, try 2
|
2023-11-20 07:07:44 +00:00 |
|
David Hewitt
|
7b07d6d21b
|
Merge pull request #3578 from davidhewitt/typed-helpers
Change return types of `py.None()`, `py.NotImplemented()` and `py.Ellipsis()` to typed singletons
|
2023-11-20 07:07:12 +00:00 |
|
David Hewitt
|
4a43b2f454
|
bump version to 0.21.0-dev
|
2023-11-19 06:41:10 +00:00 |
|
David Hewitt
|
bd0174aa5d
|
Change return types of py.None() , py.NotImplemented() and py.Ellipsis() to typed singletons
|
2023-11-17 16:16:19 +00:00 |
|
David Hewitt
|
a9305ab389
|
ci: move lints to new 1.74 cargo.toml tables
|
2023-11-17 15:41:52 +00:00 |
|
David Hewitt
|
c77deee18e
|
release: 0.20.0
|
2023-10-11 14:39:19 +02:00 |
|
David Hewitt
|
b73c06948c
|
Merge pull request #3504 from davidhewitt/classmethod-receiver
emit helpful error hint for classmethod with receiver
|
2023-10-10 21:35:34 +00:00 |
|
David Hewitt
|
6c90325a1c
|
deprecate undocumented #[__new__] form of #[new]
|
2023-10-10 08:47:03 +01:00 |
|
David Hewitt
|
ddc04ea093
|
emit helpful error hint for classmethod with receiver
|
2023-10-10 06:30:19 +01:00 |
|
David Hewitt
|
b3ee70db40
|
refactor parse_fn_type
|
2023-10-08 21:31:59 +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 |
|
David Hewitt
|
6c0386ec7e
|
remove branches for dead call and init attrs
|
2023-09-27 08:52:56 +01:00 |
|
David Hewitt
|
5798caf1f8
|
better Some -wrapping for default arguments
|
2023-09-21 21:14:44 +01:00 |
|
David Hewitt
|
e28403e772
|
call PyObject_GC_Untrack before deallocating
|
2023-09-09 22:29:58 +01:00 |
|
David Hewitt
|
4c46d81afd
|
simplify thread checker implementation
|
2023-09-03 14:15:26 +01:00 |
|
David Hewitt
|
f7503afbc8
|
remove all #py quoting
|
2023-08-18 14:04:38 +01:00 |
|
Adam Reichold
|
9363491d54
|
Merge pull request #3384 from DataTriny/pyclass_rename_variants
Add `rename_all` attribute to `#[pyclass]`
|
2023-08-16 19:06:37 +00:00 |
|
David Hewitt
|
eba2c59778
|
tidy up some file locations after dual licensing
|
2023-08-16 08:22:51 +01:00 |
|
DataTriny
|
3c3e9401a3
|
Dual-license
|
2023-08-15 23:39:45 +02:00 |
|
DataTriny
|
1a73ce6e60
|
Address review comments
|
2023-08-15 20:56:13 +02:00 |
|
DataTriny
|
f02fe9478d
|
Make rename_all accept a renaming rule, allow applying it to classes as well
|
2023-08-15 10:15:48 +02:00 |
|
DataTriny
|
a9e9ec628d
|
Add attribute to
|
2023-08-13 18:25:07 +02:00 |
|
David Hewitt
|
64adab1a76
|
add as_ptr and into_ptr inherent methods
|
2023-08-11 10:49:42 +01:00 |
|