Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump black from 23.12.1 to 24.3.0 #12

Merged
merged 3 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading