Commit efef47d
committed
ConsoleProtocol: Update Signatures to match ConsoleExpectMixin
The ConsoleExpectMixin has learned some new tricks over time.
But the ConsoleProtocol was not updated accordingly.
Every class implementing the ConsoleProtocol also uses the
ConsoleExpectMixin - so it's safe to update the signatures according to
the ConsoleExpectMixin.
For ConsoleProtocol.expect() I've used the type definition of the
underlying pexpect library.
I have not updated the return types, since it's not clear to me what the
ConsoleExpectMixin should return.
Signed-off-by: Chris Fiege <cfi@pengutronix.de>1 parent ef0f630 commit efef47d
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
28 | 39 | | |
29 | 40 | | |
30 | 41 | | |
| |||
0 commit comments