Skip to content

Commit 23c07cf

Browse files
authored
fix(deps): Update mypy to 1.17.0 (#1201)
* fix(deps): Update to mypy 1.17.0 * service: Stop using numpy's mypy plugin * service: Remove a cast that is no longer necessary
1 parent 7b79700 commit 23c07cf

4 files changed

Lines changed: 67 additions & 71 deletions

File tree

packages/generator/poetry.lock

Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/service/ni_measurement_plugin_sdk_service/session_management/_reservation.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ def _to_iterable(
8282
) -> Iterable[_T]:
8383
if value is None:
8484
return default or []
85-
elif isinstance(value, Iterable):
86-
# str implements Iterable[str] for iterating over characters.
87-
if isinstance(value, str):
88-
return [cast(_T, value)]
85+
elif isinstance(value, Iterable) and not isinstance(value, str):
8986
return value
9087
else:
9188
return [value]

0 commit comments

Comments
 (0)