Skip to content

Commit 0694d22

Browse files
committed
drop 'verbose' argument from list_boards()
1 parent 7a9d65e commit 0694d22

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [0.1.2] - 2024-07-11
99

10+
### Changed
11+
12+
- dropped 'verbose' argument from list_boards()
1013

1114
## [0.1.1] - 2024-07-11
1215

tycmd.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,18 @@ def identify(filename: Path | str) -> list[str]:
3535
return output.get("models", [])
3636

3737

38-
def list_boards(verbose: bool = True) -> list[dict]:
38+
def list_boards() -> list[dict]:
3939
"""
4040
List available boards.
4141
42-
Parameters
43-
----------
44-
verbose : bool, optional
45-
If True, include detailed information about devices. Default is True.
46-
4742
Returns
4843
-------
4944
list[dict]
5045
List of available devices.
5146
"""
52-
args = ["tycmd", "list", "-O", "json"] + (["-v"] if verbose else [])
53-
return json.loads(check_output(args, text=True))
47+
args = ["tycmd", "list", "-O", "json", "-v"]
48+
return_string = check_output(args, text=True)
49+
return json.loads(return_string)
5450

5551

5652
def version(full: bool = False) -> str:

0 commit comments

Comments
 (0)