Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 22, 2024
1 parent 7c89e89 commit 31fa745
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
- id: check-added-large-files

- repo: https://github.com/psf/black
rev: "24.4.0"
rev: "23.10.0"
hooks:
- id: black

Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ six==1.16.0 ; python_version >= "3.11" and python_version < "4.0"
sniffio==1.3.0 ; python_version >= "3.11" and python_version < "4.0"
snowballstemmer==2.2.0 ; python_version >= "3.11" and python_version < "4.0"
soupsieve==2.5 ; python_version >= "3.11" and python_version < "4.0"
sphinx-autodoc2 @ git+https://github.com/jag-k/sphinx-autodoc2.git@HEAD ; python_version >= "3.11" and python_version < "4.0"
sphinx-autodoc2 @ git+https://github.com/jag-k/sphinx-autodoc2.git@f84739a7639230c8b8f77c4098ffe4b95b67a62d ; python_version >= "3.11" and python_version < "4.0"
sphinx-basic-ng==1.0.0b2 ; python_version >= "3.11" and python_version < "4.0"
sphinx-copybutton==0.5.2 ; python_version >= "3.11" and python_version < "4.0"
sphinx-inline-tabs==2023.4.21 ; python_version >= "3.11" and python_version < "4.0"
Expand Down
2 changes: 1 addition & 1 deletion media_parser/database/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MongoConfig(BaseConfig):
collection: str | None = None
allow_population_by_field_name = True
arbitrary_types_allowed = True
json_encoders = {ObjectId: str} # noqa: RUF012
json_encoders = {ObjectId: str}


class MongoModel(BaseModel, Generic[ID]):
Expand Down
2 changes: 1 addition & 1 deletion media_parser/server/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def stream_media(media: Media) -> Iterator[bytes]:
async with aiohttp.ClientSession() as session:
async with session.get(media.url, headers=media.headers) as res:
print(res.headers)
async for (content, b) in res.content.iter_chunks():
async for content, b in res.content.iter_chunks():
yield content


Expand Down

0 comments on commit 31fa745

Please sign in to comment.