Force an abstract class attribute to be implemented by concrete class
Force an abstract class attribute to be implemented by concrete class Question: Considering this abstract class and a class implementing it: from abc import ABC class FooBase(ABC): foo: str bar: str baz: int def __init__(self): self.bar = "bar" self.baz = "baz" class Foo(FooBase): foo: str = "hello" The idea here is that a Foo class …