Skip to content

Commit 3160bf5

Browse files
author
Vasu Jaganath
committed
specifing type: ignore reason of [override]
1 parent 8208fde commit 3160bf5

File tree

1 file changed

+2
-2
lines changed
  • src/sophios/api/utils/ict/ict_spec/metadata

1 file changed

+2
-2
lines changed

src/sophios/api/utils/ict/ict_spec/metadata/objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __str__(self) -> str:
4242
return self.root
4343

4444
@singledispatchmethod
45-
def __eq__(self, other: Any) -> bool: # type: ignore # pylint: disable=incompatible-type
45+
def __eq__(self, other: Any) -> bool: # type: ignore[override] # pylint: disable=incompatible-type
4646
"""Compare if two Author objects are equal."""
4747
msg = "invalid type for comparison."
4848
raise TypeError(msg)
@@ -82,7 +82,7 @@ def __str__(self) -> str:
8282
return self.root
8383

8484
@singledispatchmethod
85-
def __eq__(self, other: Any) -> bool: # type: ignore # pylint: disable=incompatible-type
85+
def __eq__(self, other: Any) -> bool: # type: ignore[override] # pylint: disable=incompatible-type
8686
"""Compare if two DOI objects are equal."""
8787
msg = "invalid type for comparison."
8888
raise TypeError(msg)

0 commit comments

Comments
 (0)