Is this acceptable?
from abc import ABC, abstractmethod
from typing import Any
class A(ABC):
@abstractmethod
def test(self) -> Any:
...
class B(A):
def test(self) -> int:
return 1
class C(A):
def test(self) -> str:
return "yes"
To clarify, I know they can, I just want to know if this is acceptable in terms of good practices.