Skip to content

Commit 99e575c

Browse files
committed
Update: pyupgrade を Ruff の Lint ルールに追加
主に Type Hints 周りの古い記述をターゲットバージョン向けに更新してくれて助かる
1 parent 573d33a commit 99e575c

File tree

3 files changed

+363
-210
lines changed

3 files changed

+363
-210
lines changed

isdb_scanner/formatter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
# ruff: noqa: UP013
2+
13
import copy
24
import csv
35
import json
46
from io import StringIO
57
from pathlib import Path
6-
from typing import Any, TypedDict, cast
8+
from typing import Any, NotRequired, cast
79

810
from ruamel.yaml import YAML
9-
from typing_extensions import NotRequired
11+
from typing_extensions import TypedDict
1012

1113
from isdb_scanner.constants import TransportStreamInfo, TransportStreamInfoList
1214
from isdb_scanner.tuner import ISDBTuner

0 commit comments

Comments
 (0)