Skip to content

Commit

Permalink
Fix new PyLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 15, 2024
1 parent b3292b4 commit 6283b24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion admin/c2cgeoportal_admin/schemas/dimensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
from c2cgeoportal_commons.models.main import Dimension


def dimensions_schema_node(prop: InstrumentedAttribute[Any]) -> colander.SequenceSchema:
def dimensions_schema_node(
prop: InstrumentedAttribute[Any], # pylint: disable=unsubscriptable-object
) -> colander.SequenceSchema:
"""Get the scheme of the dimensions."""
return colander.SequenceSchema(
GeoFormSchemaNode(Dimension, name="dimension", widget=MappingWidget(template="dimension")),
Expand Down
4 changes: 3 additions & 1 deletion admin/c2cgeoportal_admin/schemas/restriction_areas.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
from c2cgeoportal_commons.models.main import RestrictionArea


def restrictionareas_schema_node(prop: InstrumentedAttribute[Any]) -> colander.SequenceSchema:
def restrictionareas_schema_node(
prop: InstrumentedAttribute[Any], # pylint: disable=unsubscriptable-object
) -> colander.SequenceSchema:
"""Get the schema of a restriction area."""
return colander.SequenceSchema(
GeoFormManyToManySchemaNode(RestrictionArea, None),
Expand Down

0 comments on commit 6283b24

Please sign in to comment.