Commit fda83ebf authored by Philipp Sommer's avatar Philipp Sommer
Browse files

Merge branch '9-job-failed-297484' into 'master'

Resolve "Job Failed #297484"

Closes #9

See merge request digital-earth/dasf/dasf-progress-api!6
parents cb76b4ad 5ce5330e
Pipeline #38208 passed with stage
in 36 seconds
...@@ -72,6 +72,8 @@ class BaseReport(BaseModel): ...@@ -72,6 +72,8 @@ class BaseReport(BaseModel):
repr=False, repr=False,
) )
__root__: BaseReport
def __init__( def __init__(
self, self,
*args, *args,
...@@ -105,7 +107,7 @@ class BaseReport(BaseModel): ...@@ -105,7 +107,7 @@ class BaseReport(BaseModel):
""" """
combined_type: Any = cls combined_type: Any = cls
combined_type = cls._combine_subclasses(combined_type) combined_type = cls._combine_subclasses(combined_type)
Model: Type[BaseModel] = create_model( Model: Type[BaseReport] = create_model( # type: ignore
"Report", "Report",
__root__=(combined_type, Field(description="Report type")), __root__=(combined_type, Field(description="Report type")),
) )
......
...@@ -53,13 +53,8 @@ dev = ...@@ -53,13 +53,8 @@ dev =
mypy mypy
[options.package_data] [options.package_data]
demessaging = deprogressapi =
py.typed py.typed
templates/*.py.jinja2
[options.entry_points]
console_scripts =
de-backend = demessaging.__main__:_main
[mypy] [mypy]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment