mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 11:33:51 +00:00
mypy: Enable new error explicit-override.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
d257002ad8
commit
a50eb2e809
@@ -2,6 +2,8 @@ import weakref
|
||||
from abc import ABCMeta, abstractmethod
|
||||
from typing import Any, ClassVar, Generic, MutableMapping, TypeVar
|
||||
|
||||
from typing_extensions import override
|
||||
|
||||
_KeyT = TypeVar("_KeyT")
|
||||
_DataT = TypeVar("_DataT")
|
||||
|
||||
@@ -28,6 +30,7 @@ class BaseNotes(Generic[_KeyT, _DataT], metaclass=ABCMeta):
|
||||
|
||||
__notes_map: ClassVar[MutableMapping[Any, Any]]
|
||||
|
||||
@override
|
||||
def __init_subclass__(cls, **kwargs: object) -> None:
|
||||
super().__init_subclass__(**kwargs)
|
||||
if not hasattr(cls, "__notes_map"):
|
||||
|
||||
Reference in New Issue
Block a user