File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -76,16 +76,14 @@ class ByteStream(Protocol):
76
76
* `usb_cdc.Serial`
77
77
"""
78
78
79
- # Should be `, /)`, but not available in Python 3.7.
80
- def read (self , count : Optional [int ] = None ) -> Optional [bytes ]:
79
+ def read (self , count : Optional [int ] = None , / ) -> Optional [bytes ]:
81
80
"""Read ``count`` bytes from the stream.
82
81
If ``count`` bytes are not immediately available,
83
82
or if the parameter is not specified in the call,
84
83
the outcome is implementation-dependent.
85
84
"""
86
85
87
- # Should be `, /)`, but not available in Python 3.7.
88
- def write (self , buf : ReadableBuffer ) -> Optional [int ]:
86
+ def write (self , buf : ReadableBuffer , / ) -> Optional [int ]:
89
87
"""Write the bytes in ``buf`` to the stream."""
90
88
91
89
Original file line number Diff line number Diff line change @@ -38,11 +38,7 @@ def value(self) -> float:
38
38
on the specifics of the class.
39
39
"""
40
40
41
- # TODO: this should be `value(self, input_value: float, /)` but can't
42
- # because currently mpy files are built and the `/` param isn't supported
43
- # in micro-python.
44
- # https://github.com/adafruit/Adafruit_CircuitPython_Typing/issues/36
45
41
# pylint: disable=no-self-use,unused-argument
46
42
@value .setter
47
- def value (self , input_value : float ):
43
+ def value (self , input_value : float , / ):
48
44
...
You can’t perform that action at this time.
0 commit comments