Skip to content

Commit

Permalink
Bump black from 23.12.1 to 24.3.0 (#12)
Browse files Browse the repository at this point in the history
* Bump black from 23.12.1 to 24.3.0

Bumps [black](https://github.com/psf/black) from 23.12.1 to 24.3.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.12.1...24.3.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* poetry run format

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: aoirint <aoirint@gmail.com>
  • Loading branch information
dependabot[bot] and aoirint committed Mar 26, 2024
1 parent 7351f61 commit 33f0efd
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ class LiveInboxApiNiconicoLiveProgramManager(ABC):
def upsert_all(
self,
upsert_objects: Iterable[LiveInboxApiNiconicoLiveProgramUpsertObject],
) -> None:
...
) -> None: ...
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class UpsertNiconicoLiveProgramsResponseInsertNiconicoLivePrograms(BaseModel):


class UpsertNiconicoLiveProgramsResponseData(BaseModel):
insert_niconico_live_programs: UpsertNiconicoLiveProgramsResponseInsertNiconicoLivePrograms
insert_niconico_live_programs: (
UpsertNiconicoLiveProgramsResponseInsertNiconicoLivePrograms
)


class UpsertNiconicoLiveProgramsResponseBody(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class LiveInboxApiNiconicoUserIconCacheMetadataManager(ABC):
def get_by_urls(
self,
urls: Iterable[str],
) -> list[LiveInboxApiNiconicoUserIconCacheMetadata]:
...
) -> list[LiveInboxApiNiconicoUserIconCacheMetadata]: ...

@abstractmethod
def save(
Expand All @@ -31,5 +30,4 @@ def save(
hash_md5: str,
content_type: str,
file_key: str,
) -> None:
...
) -> None: ...
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class GetNiconicoUserIconCacheByUrlsResponseNiconicoUserIconCache(BaseModel):


class GetNiconicoUserIconCacheByUrlsResponseData(BaseModel):
niconico_user_icon_caches: (
list[GetNiconicoUserIconCacheByUrlsResponseNiconicoUserIconCache]
)
niconico_user_icon_caches: list[
GetNiconicoUserIconCacheByUrlsResponseNiconicoUserIconCache
]


class GetNiconicoUserIconCacheByUrlsResponseBody(BaseModel):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ def check_exists(
self,
file_key: str,
content_type: str,
) -> bool:
...
) -> bool: ...

@abstractmethod
def save(
self,
file_key: str,
content_type: str,
content: bytes,
) -> None:
...
) -> None: ...
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,16 @@ class LiveInboxApiNiconicoUserManager(ABC):
@abstractmethod
def get_all(
self,
) -> list[LiveInboxApiNiconicoUser]:
...
) -> list[LiveInboxApiNiconicoUser]: ...

@abstractmethod
def create_users(
self,
create_objects: Iterable[LiveInboxApiNiconicoUserCreateObject],
) -> None:
...
) -> None: ...

@abstractmethod
def bulk_update_user_enabled(
self,
update_objects: Iterable[LiveInboxApiNiconicoUserEnabledUpdateObject],
) -> None:
...
) -> None: ...
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ def get_programs(
niconico_user_id: str,
offset: int = 0,
limit: int = 10,
) -> list[NiconicoApiNiconicoUserBroadcastProgram]:
...
) -> list[NiconicoApiNiconicoUserBroadcastProgram]: ...
3 changes: 1 addition & 2 deletions live_inbox_updater/niconico_api/niconico_user_client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ class NiconicoApiNiconicoUserClient(ABC):
def get_all(
self,
remote_niconico_user_ids: Iterable[str],
) -> Iterable[NiconicoApiNiconicoUser]:
...
) -> Iterable[NiconicoApiNiconicoUser]: ...
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ class NiconicoApiNiconicoUserIconClient(ABC):
def get(
self,
url: str,
) -> NiconicoApiNiconicoUserIcon:
...
) -> NiconicoApiNiconicoUserIcon: ...
48 changes: 24 additions & 24 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ boto3-stubs = {extras = ["s3"], version = "^1.34.3"}

[tool.poetry.group.dev.dependencies]
pysen = "^0.11.0"
black = "^23.12.0"
black = "^24.3.0"
isort = "^5.13.2"
flake8 = "^6.1.0"
flake8-bugbear = "^23.12.2"
Expand Down

0 comments on commit 33f0efd

Please sign in to comment.