Below is an example of a TypedDict:
class A(TypedDict):
a: int
b: int
How to specify only one of the two paramaters need to be provided while maintaining the TypedDict/
i.e. if a is provided b is not required and vice verse.
I can put both marked as Optional or not required but then I run into exception since one of those two parameters is needed. I am trying to find the cleanest way of specifing.