Skip to content

Commit

Permalink
Bump black from 24.10.0 to 25.1.0 in /requirements/partial (#2831)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisa-beerboom authored Feb 6, 2025
1 parent 59e955f commit 2fc3e49
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion openslides_backend/action/action_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def handle_request(
else:

def transform_to_list(
tuple: tuple[WriteRequest | None, ActionResults | None]
tuple: tuple[WriteRequest | None, ActionResults | None],
) -> tuple[list[WriteRequest], ActionResults | None]:
return ([tuple[0]] if tuple[0] is not None else [], tuple[1])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_dependent_action_data_agenda_item(

@staticmethod
def remove_agenda_prefix_from_fieldnames(
instance: dict[str, Any]
instance: dict[str, Any],
) -> dict[str, Any]:
prefix_len = len(AGENDA_PREFIX)
extra_field = f"{AGENDA_PREFIX}create" # This field should not be provided to the AgendaItemCreate action.
Expand Down
4 changes: 2 additions & 2 deletions openslides_backend/action/mixins/import_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class BaseImportJsonUploadAction(SingularActionMixin, Action):

@staticmethod
def count_warnings_in_payload(
data: list[dict[str, str] | list[Any]] | dict[str, Any]
data: list[dict[str, str] | list[Any]] | dict[str, Any],
) -> int:
count = 0
for col in data:
Expand All @@ -176,7 +176,7 @@ def count_warnings_in_payload(

@staticmethod
def get_value_from_union_str_object(
field: str | dict[str, Any] | None
field: str | dict[str, Any] | None,
) -> str | None:
if type(field) is dict:
return field.get("value", "")
Expand Down
2 changes: 1 addition & 1 deletion requirements/partial/requirements_development.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
aiosmtpd==1.4.6
autoflake==2.3.1
black==24.10.0
black==25.1.0
debugpy==1.8.12
flake8==7.1.1
isort==6.0.0
Expand Down
2 changes: 1 addition & 1 deletion tests/system/action/user/test_merge_together.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ def assert_merge_with_polls_correct(
def build_expected_user_dates(
voted_present_user_delegated_merged: list[
tuple[bool, bool, int, int | None, int | None, int | None]
]
],
) -> list[dict[str, Any]]:
return [
{
Expand Down

0 comments on commit 2fc3e49

Please sign in to comment.