Skip to content

Commit c820deb

Browse files
authored
Merge pull request #28 from tekktrik/doc/fix-cvar-typing
Use :rtype: to clarify types returned because of __get__()
2 parents 23a4c2b + 16cde52 commit c820deb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

adafruit_as7341.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,20 @@ class AS7341: # pylint:disable=too-many-instance-attributes, no-member
325325
_all_channels: Struct = Struct(_AS7341_ASTATUS, "<BHHHHHH")
326326
_led_current_bits: RWBits = RWBits(7, _AS7341_LED, 0)
327327
_led_enabled = RWBit(_AS7341_LED, 7)
328+
328329
atime: UnaryStruct = UnaryStruct(_AS7341_ATIME, "<B")
329330
"""The integration time step count.
330331
Total integration time will be ``(ATIME + 1) * (ASTEP + 1) * 2.78µS``
332+
333+
:rtype: int
331334
"""
335+
332336
astep: UnaryStruct = UnaryStruct(_AS7341_ASTEP_L, "<H")
333-
""" The integration time step size in 2.78 microsecond increments"""
337+
"""The integration time step size in 2.78 microsecond increments
338+
339+
:rtype: int
340+
"""
341+
334342
_gain: UnaryStruct = UnaryStruct(_AS7341_CFG1, "<B")
335343
_data_ready_bit: RWBit = RWBit(_AS7341_STATUS2, 6)
336344
"""

0 commit comments

Comments
 (0)