Skip to content

Commit a14f5c3

Browse files
Mike ProsserMike Prosser
authored andcommitted
cleanup
1 parent 62dbd68 commit a14f5c3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/nitypes/waveform/_digital/_waveform.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,8 @@ class DigitalWaveform(Generic[TDigitalState]):
173173
174174
* :attr:`DigitalWaveformSignal.signal_index` - The position in the :attr:`DigitalWaveform.signals`
175175
collection (0-based from the first signal). signal_index 0 is the rightmost column in the data.
176-
* :attr:`DigitalWaveformSignal.column_index` - The position in the :attr:`DigitalWaveform.data`
177-
array's second dimension (0-based from the first column). column_index 0 is the leftmost column
178-
in the data.
176+
* :attr:`DigitalWaveformSignal.column_index` - The column in the :attr:`DigitalWaveform.data`
177+
array, e.g. `waveform.data[:, column_index]`. column_index 0 is the leftmost column in the data.
179178
180179
These indices are reversed with respect to each other. signal_index 0 (line 0) corresponds to
181180
the highest column_index, and the highest signal_index (the highest line) corresponds to

src/nitypes/waveform/_extended_properties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import operator
44
from collections.abc import Callable, Iterator, Mapping, MutableMapping
5-
from typing import TYPE_CHECKING
5+
from typing import TYPE_CHECKING, TypeAlias
66

77
from nitypes.waveform.typing import ExtendedPropertyValue
88

@@ -12,7 +12,7 @@
1212
UNIT_DESCRIPTION = "NI_UnitDescription"
1313

1414
if TYPE_CHECKING:
15-
OnKeyChangedCallback = Callable[[str], None]
15+
OnKeyChangedCallback: TypeAlias = Callable[[str], None]
1616

1717

1818
class ExtendedPropertyDictionary(MutableMapping[str, ExtendedPropertyValue]):

0 commit comments

Comments
 (0)