Skip to content

Commit

Permalink
Annotate plugin attributes
Browse files Browse the repository at this point in the history
Solves `pydantic.errors.PydanticUserError: Field 'name' defined on a base class was overridden by a non-annotated attribute. All field definitions, including overrides, require a type annotation.`
  • Loading branch information
abkfenris committed May 21, 2024
1 parent 1332d0b commit 16a8e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpublish_intake/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def get_zarr_source(xpublish_id, dataset, request):
class IntakePlugin(Plugin):
"""Adds an Intake catalog endpoint"""

name = 'intake_catalog'
dataset_metadata = dict()
name: str = 'intake_catalog'
dataset_metadata: dict = dict()

app_router_prefix: str = '/intake'
app_router_tags: Sequence[str] = ['intake']
Expand Down

0 comments on commit 16a8e15

Please sign in to comment.