Multiple definition of OtbApp type
The OtbApp
defined here is also defined as a TypeVar here. The latter should be removed. More generally, TypeVar
should only be used to define generic types, that is, types which may be different depending on the uses, but that need to be the same in different places of the same use.
For instance:
T = TypeVar("T")
def concat(l1: list[T], l2: list[T]) -> list[T]:
...