Skip to content

Commit a5cf7a3

Browse files
committed
Prepare release 1.7 (#362)
^
1 parent f9c4ca4 commit a5cf7a3

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,8 @@ jobs:
328328
runs-on: ubuntu-latest
329329
permissions:
330330
contents: write
331-
environment:
332-
RELEASE_TAG=${{ github.event.release.tag_name }}
331+
env:
332+
RELEASE_TAG: ${{ github.event.release.tag_name }}
333333
steps:
334334
- uses: actions/checkout@v4
335335
with:
File renamed without changes.

doc/development/changes/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Changelog
44
.. toctree::
55
:titlesonly:
66

7-
latest.rst
7+
1.7.rst
88
1.6.rst
99
1.5.rst
1010
1.4.rst

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ maintainers = [
5353
name = 'mne_lsl'
5454
readme = 'README.md'
5555
requires-python = '>=3.10'
56-
version = '1.7.0.dev0'
56+
version = '1.7.0'
5757

5858
[project.optional-dependencies]
5959
all = [

src/mne_lsl/lsl/stream_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ class StreamInfo(_BaseStreamInfo):
878878
Also called ``nominal_srate``, represents the sampling rate (in Hz) as
879879
advertised by the data source. If the sampling rate is irregular (e.g. for a
880880
trigger stream), the sampling rate is set to ``0``.
881-
dtype : str | dtype
881+
dtype : str | int | dtype
882882
Format of each channel. If your channels have different formats, consider
883883
supplying multiple streams or use the largest type that can hold them all.
884884
One of ``('string', 'float32', 'float64', 'int8', 'int16', 'int32')``.
@@ -896,9 +896,9 @@ def __init__(
896896
stype: str,
897897
n_channels: int,
898898
sfreq: float,
899-
dtype: str,
899+
dtype: str | int | DTypeLike,
900900
source_id: str,
901-
):
901+
) -> None:
902902
check_type(name, (str,), "name")
903903
check_type(stype, (str,), "stype")
904904
n_channels = ensure_int(n_channels, "n_channels")

src/mne_lsl/lsl/stream_inlet.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(
6363
max_buffered: float = 360,
6464
recover: bool = True,
6565
processing_flags: str | Sequence[str] | None = None,
66-
):
66+
) -> None:
6767
check_type(sinfo, (_BaseStreamInfo,), "sinfo")
6868
chunk_size = ensure_int(chunk_size, "chunk_size")
6969
if chunk_size < 0:
@@ -130,7 +130,7 @@ def __init__(
130130
# variable to define if the stream is open or not sinfo_ = inlet.get_sinfo()
131131
self._stream_is_open = False
132132

133-
def _del(self):
133+
def _del(self) -> None:
134134
"""Destroy a :class:`~mne_lsl.lsl.StreamInlet` explicitly."""
135135
logger.debug(f"Destroying {self.__class__.__name__}..")
136136
try:
@@ -157,7 +157,7 @@ def _del(self):
157157
"done."
158158
)
159159

160-
def __del__(self):
160+
def __del__(self) -> None:
161161
"""Destroy a :class:`~mne_lsl.lsl.StreamInlet`.
162162
163163
The inlet will automatically disconnect.

src/mne_lsl/lsl/stream_outlet.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(
4242
sinfo: _BaseStreamInfo,
4343
chunk_size: int = 1,
4444
max_buffered: float = 360,
45-
):
45+
) -> None:
4646
check_type(sinfo, (_BaseStreamInfo,), "sinfo")
4747
chunk_size = ensure_int(chunk_size, "chunk_size")
4848
if chunk_size < 1:
@@ -75,7 +75,7 @@ def __init__(
7575
self._do_push_chunk_n = fmt2push_chunk_n[self._dtype]
7676
self._buffer_sample = self._dtype * self._n_channels
7777

78-
def _del(self):
78+
def _del(self) -> None:
7979
"""Destroy a :class:`~mne_lsl.lsl.StreamOutlet` explicitly."""
8080
logger.debug(f"Destroying {self.__class__.__name__}..")
8181
try:
@@ -97,7 +97,7 @@ def _del(self):
9797
"done."
9898
)
9999

100-
def __del__(self):
100+
def __del__(self) -> None:
101101
"""Destroy a :class:`~mne_lsl.lsl.StreamOutlet`.
102102
103103
The outlet will no longer be discoverable after destruction and all connected
@@ -277,7 +277,7 @@ def wait_for_consumers(self, timeout: float | None) -> bool:
277277
278278
Parameters
279279
----------
280-
timeout : float
280+
timeout : float | None
281281
Timeout duration in seconds.
282282
283283
Returns

0 commit comments

Comments
 (0)