Skip to content

Commit

Permalink
Added a pylint disable because of yet another bug in pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis committed Dec 4, 2022
1 parent 1fbcafd commit 2980910
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
class Property(BaseModel):
"""A property."""

# pylint: disable=unsubscriptable-object
# Yet another pylint bug, see https://github.com/PyCQA/pylint/issues/1498
type: Any = Field(..., description="Valid type name.")
shape: Optional[list[str]] = Field(
None, description="List of dimension expressions."
Expand All @@ -43,6 +45,8 @@ class Property(BaseModel):
class Entity(BaseModel):
"""An entity."""

# pylint: disable=unsubscriptable-object

uri: AnyUrl = Field(..., description="Unique URI identifying the entity.")
description: str = Field("", description="A description of the entity.")
dimensions: Optional[dict[str, str]] = Field(
Expand Down

0 comments on commit 2980910

Please sign in to comment.