Skip to content

Commit 604a0cf

Browse files
committed
Fix typing for 3.9+, run ruff format during lint
1 parent 3668cb1 commit 604a0cf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

jellyash/bundle.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
2-
from typing import Dict, Iterator, Union
2+
from collections.abc import Iterator
3+
from typing import Union
34

45
if sys.version_info >= (3, 11): # pragma: no cover
56
from typing import Self
@@ -10,10 +11,10 @@
1011

1112

1213
class Item:
13-
def __init__(self, item: Dict[str, str]):
14+
def __init__(self, item: dict[str, str]):
1415
self.item = item
1516

16-
def _raw_item(self) -> Dict[str, str]:
17+
def _raw_item(self) -> dict[str, str]:
1718
return self.item
1819

1920
def __getattr__(self, attr: str) -> Union[str, Self]:

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ deps =
2626
ruff
2727
commands =
2828
ruff check --exit-non-zero-on-fix jellyash tests
29+
ruff format --diff jellyash tests
2930

0 commit comments

Comments
 (0)