style: turn on ruff UP and B rules and fix every finding

This commit is contained in:
imSp4rky
2026-11-25 16:34:09 -07:00
parent 1a63076df2
commit d8058a3610
264 changed files with 2950 additions and 2966 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
import xml.etree.ElementTree as ET
from typing import Optional
import pytest
@@ -66,5 +65,5 @@ def test_the_first_decodable_descriptor_wins() -> None:
@pytest.mark.parametrize(
("representation", "expected"), [(config((COUNT, "6"), tag="Representation"), 5.1), (None, 2.0)]
)
def test_the_representation_overrides_the_adaptation_set(representation: Optional[ET.Element], expected: float) -> None:
def test_the_representation_overrides_the_adaptation_set(representation: ET.Element | None, expected: float) -> None:
assert DASH.get_audio_channels(config((COUNT, "2")), representation) == expected