Closed ipsingh06 closed 3 years ago
Is it valid to use it like that? Shouldn’t you use typing.Dict[Any, Any]
or dict
anyway?
I've found it to generally work with type checkers, though I agree the two other methods you mentioned should be preferred. I think this case should still be handled more gracefully because currently the build will fail with no helpful indicator as to where the issue is. What do you think?
Using an annotation of
typing.Dict
throws an error during Sphinx build.typing.Dict[Any, Any]
is fine.