Skip to content

Commit 1689f04

Browse files
chore(deps): update dependency mypy to v2 (master) (#342)
* chore(deps): update dependency mypy to v2 * cleanup unused ignores * bump --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jakob van Santen <jvansanten@gmail.com>
1 parent 3904b0e commit 1689f04

4 files changed

Lines changed: 202 additions & 130 deletions

File tree

ampel/cli/T2Command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def run(self, args: dict[str, Any], unknown_args: Sequence[str], sub_op: None |
165165

166166
# args['id_mapper'] is used for matching whereas id_mapper is potentially discarded for printing
167167
id_mapper = None if args.get('no_resolve_stock') else args['id_mapper']
168-
jsondump: Any = prettyjson if args.get('pretty_json') else lambda x: dumps(walk_and_encode(x)) # type: ignore[misc]
168+
jsondump: Any = prettyjson if args.get('pretty_json') else lambda x: dumps(walk_and_encode(x))
169169

170170
if sub_op == 'show':
171171

ampel/t3/stage/project/T3ChannelProjector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def channel_projection(self, dicts: Sequence[dict[str, Any]]) -> Sequence[dict[s
9191
elif subset := channel_set.intersection(elchan):
9292
channels = (
9393
list(subset)
94-
if len(subset) > 1 else next(iter(subset)) # type: ignore[arg-type]
94+
if len(subset) > 1 else next(iter(subset))
9595
)
9696
if self.unalterable:
9797
ret.append({**el, 'channel': channels})

0 commit comments

Comments
 (0)