Commit c1f3d34
authored
fix(pyo3-macros): allow pyclass named Probe (#5837)
The `*` import was shadowing the name of the pyclass.
The PyMethods trait was only defined for the multiple-pymethods feature,
but it cannot be conditionally imported inside the macro.
I just defined the trait unconditionally.
Fixes #4792.1 parent 3ffad5a commit c1f3d34
File tree
3 files changed
+35
-16
lines changed- newsfragments
- pyo3-macros-backend/src
- tests/ui
3 files changed
+35
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2829 | 2829 | | |
2830 | 2830 | | |
2831 | 2831 | | |
2832 | | - | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
2833 | 2837 | | |
2834 | 2838 | | |
2835 | 2839 | | |
| |||
3010 | 3014 | | |
3011 | 3015 | | |
3012 | 3016 | | |
3013 | | - | |
3014 | | - | |
3015 | | - | |
| 3017 | + | |
| 3018 | + | |
3016 | 3019 | | |
3017 | 3020 | | |
3018 | 3021 | | |
3019 | | - | |
| 3022 | + | |
3020 | 3023 | | |
3021 | 3024 | | |
3022 | 3025 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
19 | 34 | | |
20 | 35 | | |
21 | 36 | | |
| |||
0 commit comments