Skip to content

Commit 3ef1ecf

Browse files
black
1 parent 1949fc6 commit 3ef1ecf

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def lint(session):
9898
)
9999
if is_latest_python(session):
100100
# we run black only on the newest Python version to ensure that the code is formatted with the latest version
101-
session.install("black ~= 24.4")
101+
session.install("black ~= 25.1")
102102
session.run("black", "--check", ".")
103103

104104

pydsdl/_bit_length_set/_bit_length_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def elementwise_sum_k_multicombinations(self, k: int) -> "BitLengthSet": # prag
347347

348348
@staticmethod
349349
def elementwise_sum_cartesian_product(
350-
sets: typing.Iterable[typing.Union[typing.Iterable[int], int]]
350+
sets: typing.Iterable[typing.Union[typing.Iterable[int], int]],
351351
) -> "BitLengthSet": # pragma: no cover
352352
"""
353353
:meta private:

pydsdl/_dsdl_definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,5 +536,5 @@ def _unittest_type_from_path_inference_edge_case(temp_dsdl_factory) -> None: #
536536

537537
def _unittest_from_first_in(temp_dsdl_factory) -> None: # type: ignore
538538
dsdl_file = temp_dsdl_factory.new_file(Path("repo/uavcan/foo/bar/435.baz.1.0.dsdl"), "@sealed")
539-
dsdl_def = DSDLDefinition.from_first_in(dsdl_file.resolve(), [(dsdl_file.parent.parent / "..")])
539+
dsdl_def = DSDLDefinition.from_first_in(dsdl_file.resolve(), [dsdl_file.parent.parent / ".."])
540540
assert dsdl_def.full_name == "uavcan.foo.bar.baz"

pydsdl/_expression/_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Set(Container):
3232
class _Decorator:
3333
@staticmethod
3434
def homotypic_binary_operator(
35-
inferior: typing.Callable[["Set", "Set"], _O]
35+
inferior: typing.Callable[["Set", "Set"], _O],
3636
) -> typing.Callable[["Set", "Set"], _O]:
3737
def wrapper(self: "Set", other: "Set") -> _O:
3838
assert isinstance(self, Set) and isinstance(other, Set)

pydsdl/_serializable/_composite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,7 @@ def iterate_fields_with_offsets(
722722

723723
# +--[UNIT TESTS]-----------------------------------------------------------------------------------------------------+
724724

725+
725726
def _unittest_composite_types() -> None: # pylint: disable=too-many-statements
726727
from typing import Optional
727728
from pytest import raises

0 commit comments

Comments
 (0)