Add missing typing.override annotation reported by Pyright (#3215)
This commit is contained in:
parent
f94e8b8984
commit
70c6a10c3c
|
|
@ -7,7 +7,7 @@ import urllib.request
|
|||
from dataclasses import dataclass, field
|
||||
from enum import Enum
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING, Any
|
||||
from typing import TYPE_CHECKING, Any, override
|
||||
|
||||
from pydantic import BaseModel, field_validator, model_validator
|
||||
|
||||
|
|
@ -146,6 +146,7 @@ class MirrorRegion:
|
|||
def json(self) -> dict[str, list[str]]:
|
||||
return {self.name: self.urls}
|
||||
|
||||
@override
|
||||
def __eq__(self, other: object) -> bool:
|
||||
if not isinstance(other, MirrorRegion):
|
||||
return NotImplemented
|
||||
|
|
|
|||
Loading…
Reference in New Issue