Skip to content
Snippets Groups Projects
Commit 8a065aba authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:shirt: mypy

parent 41d22db7
No related branches found
No related tags found
1 merge request!62Backport 18.0 changes
import json
import pkgutil
from typing import Optional, Any
from typing import Any
from collections.abc import Generator
......@@ -4,6 +5,6 @@
def get_schemas() -> list[Any]:
def get_schemas() -> Generator[Any]:
for file_prefix in ("product",):
data: bytes | None = pkgutil.get_data(__name__, f"{file_prefix}.schema.json")
if data:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment