Commit c1c8844
committed
Skip PyHamcrest typing in mypy
PyHamcrest ships py.typed but the annotations mislead mypy (e.g.
all_of/only_contains with Union[Matcher[T], T]). Treat the library as
Any by skipping imports until upstream fixes land (see
hamcrest/PyHamcrest#267).1 parent 1718a37 commit c1c8844
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | | - | |
| 54 | + | |
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| |||
0 commit comments