Commit 1e230ea
committed
Make handling of bytes and bytesarray args more consistent
Fixes:
src\paho\mqtt\client.py:2233: error: Incompatible types in assignment (expression has type "bytes | bytearray", variable has type "bytes") [assignment]
src\paho\mqtt\client.py:3444: error: Argument 2 to "_packet_queue" of "Client" has incompatible type "bytearray"; expected "bytes" [arg-type]
src\paho\mqtt\client.py:3572: error: Argument 2 to "_packet_queue" of "Client" has incompatible type "bytearray"; expected "bytes" [arg-type]
src\paho\mqtt\client.py:3610: error: Argument 2 to "_packet_queue" of "Client" has incompatible type "bytearray"; expected "bytes" [arg-type]
src\paho\mqtt\client.py:3652: error: Argument 2 to "_packet_queue" of "Client" has incompatible type "bytearray"; expected "bytes" [arg-type]
src\paho\mqtt\client.py:3701: error: Argument 2 to "_packet_queue" of "Client" has incompatible type "bytearray"; expected "bytes" [arg-type]
src\paho\mqtt\client.py:4628: error: Module has no attribute "AF_UNIX"; maybe "AF_IPX"? [attr-defined]
src\paho\mqtt\client.py:4921: error: Incompatible types in assignment (expression has type "bytearray", variable has type "bytes") [assignment]1 parent 631a977 commit 1e230ea
1 file changed
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
463 | 468 | | |
464 | 469 | | |
465 | 470 | | |
| |||
832 | 837 | | |
833 | 838 | | |
834 | 839 | | |
835 | | - | |
| 840 | + | |
836 | 841 | | |
837 | 842 | | |
838 | 843 | | |
| |||
1074 | 1079 | | |
1075 | 1080 | | |
1076 | 1081 | | |
1077 | | - | |
| 1082 | + | |
1078 | 1083 | | |
1079 | 1084 | | |
1080 | 1085 | | |
| |||
1105 | 1110 | | |
1106 | 1111 | | |
1107 | 1112 | | |
1108 | | - | |
| 1113 | + | |
1109 | 1114 | | |
1110 | 1115 | | |
1111 | 1116 | | |
| |||
3359 | 3364 | | |
3360 | 3365 | | |
3361 | 3366 | | |
3362 | | - | |
| 3367 | + | |
3363 | 3368 | | |
3364 | 3369 | | |
3365 | 3370 | | |
| |||
4918 | 4923 | | |
4919 | 4924 | | |
4920 | 4925 | | |
4921 | | - | |
| 4926 | + | |
4922 | 4927 | | |
4923 | 4928 | | |
4924 | 4929 | | |
| |||
4951 | 4956 | | |
4952 | 4957 | | |
4953 | 4958 | | |
4954 | | - | |
| 4959 | + | |
4955 | 4960 | | |
4956 | 4961 | | |
4957 | 4962 | | |
| |||
4979 | 4984 | | |
4980 | 4985 | | |
4981 | 4986 | | |
4982 | | - | |
| 4987 | + | |
4983 | 4988 | | |
4984 | 4989 | | |
4985 | 4990 | | |
| |||
0 commit comments