Builds off #1239. This solution seems to be the best it can be with current python typing tools. In the future if https://github.com/python/typing/issues/548 ever gets approved it could be made slightly more generic but, for now this implementation is fine.
Builds off #1239. This solution seems to be the best it can be with current python typing tools. In the future if https://github.com/python/typing/issues/548 ever gets approved it could be made slightly more generic but, for now this implementation is fine.