Commit 32299c8
authored
A couple of fixes to make CI tests more resilient (#211)
* Explicitly set PYTHONPATH=. in mypy tests
This prevents issues when marshmallow_dataclass is installed
in editable mode. (See #209, #207.)
* Don't fail tests upon warnings from external packages.
E.g. marshmallow<3.15 generates a deprecation warning from distutils.
There's no reason that should cause a test failure for us.
* Update black target-version config.
I have no idea whether this actually affects anything, but
might as well keep it up-to-date.
* Fix typing of Union._serialize parameter
This tracks a change in type of the `attr` parameter to
`Field._serialize` made in marshmallow 3.18.0.
Here we also switch to using keyword args to typeguard.check_type
in an attempt to protect against upcoming
[changes in its signature](https://typeguard.readthedocs.io/en/latest/api.html#typeguard.check_type).
* Cherry-pick PR #207: Fix broken user types after typing-inspect 0.8.0
This is cherry-picks PR#207 by @vit-zikmund1 parent ad4d654 commit 32299c8
File tree
4 files changed
+17
-10
lines changed- marshmallow_dataclass
- tests
4 files changed
+17
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
805 | 806 | | |
806 | 807 | | |
807 | 808 | | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | 809 | | |
813 | | - | |
| 810 | + | |
814 | 811 | | |
815 | 812 | | |
816 | 813 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
0 commit comments