Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 23, 2024
1 parent 588d110 commit df9a61c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ dotenv: [ .env ]

tasks:
default:
silent: true
cmds:
- ruff check .
- black .
Expand All @@ -24,7 +23,7 @@ tasks:
--input-file-type graphql
--output gql/model.py
--output-model-type dataclasses.dataclass
# --use-standard-collections
# --use-standard-collections

gen-grpc:
desc: generate grpc python files
Expand Down
4 changes: 2 additions & 2 deletions gql/app.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from pathlib import Path
from typing import Any, Iterator

import php_serialize
from ariadne import ObjectType, QueryType, gql
from ariadne.asgi import GraphQL
from ariadne.contrib.federation import make_federated_schema
from sqlalchemy import select

from chii.compat import phpseralize
from chii.config import config
from chii.const import CollectionType
from chii.db import sa
Expand Down Expand Up @@ -40,7 +40,7 @@ async def timeline_collection(*_: Any) -> list[CollectTimeline]:

result = []
for row in rows:
meme = phpseralize.loads(row.memo.encode())
meme = php_serialize.loads(row.memo.encode())
if not row.batch:
result.append(
CollectTimeline(
Expand Down
19 changes: 16 additions & 3 deletions poetry.lock

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

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pre-commit = "==4.0.0"
mypy = "==1.11.2"
types-protobuf = "^5.27.0.20240920"
types-six = "^1.16.21.20240513"
grpc-stubs = "^1.53.0.5"

[tool.poetry-plugin-bump]
commit_msg = 'bump: v{version}'
Expand All @@ -60,7 +61,7 @@ addopts = '-rav'
env = ['D:TESTING=true', 'SQLALCHEMY_WARN_20=true']

[tool.mypy]
ignore_missing_imports = true
ignore_missing_imports = false
warn_return_any = true
warn_unused_configs = true
show_error_codes = true
Expand Down

0 comments on commit df9a61c

Please sign in to comment.