Skip to content

Commit

Permalink
Fix typing for 3.9+, run ruff format during lint
Browse files Browse the repository at this point in the history
  • Loading branch information
s-t-e-v-e-n-k committed Nov 2, 2024
1 parent 3668cb1 commit 604a0cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jellyash/bundle.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import sys
from typing import Dict, Iterator, Union
from collections.abc import Iterator
from typing import Union

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


class Item:
def __init__(self, item: Dict[str, str]):
def __init__(self, item: dict[str, str]):
self.item = item

def _raw_item(self) -> Dict[str, str]:
def _raw_item(self) -> dict[str, str]:
return self.item

def __getattr__(self, attr: str) -> Union[str, Self]:
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ deps =
ruff
commands =
ruff check --exit-non-zero-on-fix jellyash tests
ruff format --diff jellyash tests

0 comments on commit 604a0cf

Please sign in to comment.