Yes it is rather unfortunate, Python's typing system doesn't support dynamically creating types like you can in TypeScript :/
Could you explain what you mean by this? I'm not clear on what typescript behavior this describes.
https://www.typescriptlang.org/docs/handbook/utility-types.h...