Просмотр исходного кода

【完善】串口设备自动补全功能

SummerGift 6 лет назад
Родитель
Сommit
017a15cb18
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      docs/code-completion/machine.py

+ 1 - 1
docs/code-completion/machine.py

@@ -345,7 +345,7 @@ class UART(object):
         """
         """
         ...
         ...
 
 
-    def read(self, nbytes: Optional[int]) -> bytes:
+    def read(self, nbytes: Optional[int] = None) -> bytes:
         """Read characters. If ``nbytes`` is specified then read at most that many
         """Read characters. If ``nbytes`` is specified then read at most that many
         bytes, otherwise read as much data as possible.
         bytes, otherwise read as much data as possible.