Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Nice typing, I am not very sure about the difference between using the typing module or numpy.typing module and the standard types (e.g. typing.Dict vs. dict), np.ndarray vs. numpy.typing.NDArray). However down the line it might be useful to be using the typing module type hints. I think they let you do a bit more (e.g. NDArray[np.integer] or typing.Dict[str, Dict[str, int]] [(e.g.)](https://stackoverflow.com/questions/52593803/how-to-set-the-python-type-hinting-for-a-dictionary-variable). (though this might be possible with pyton standard types). But they don't seem to have everything covered yet, like str or int #51

Closed
lauraporta opened this issue May 4, 2023 · 1 comment

Comments

@lauraporta
Copy link
Member

          Nice typing, I am not very sure about the difference between using the `typing` module or `numpy.typing` module and the standard types (e.g. `typing.Dict` vs. `dict`), `np.ndarray` vs. `numpy.typing.NDArray`). However down the line it might be useful to be using the typing module type hints.  I think they let you do a bit more (e.g. `NDArray[np.integer]` or `typing.Dict[str, Dict[str, int]]`  [(e.g.)](https://stackoverflow.com/questions/52593803/how-to-set-the-python-type-hinting-for-a-dictionary-variable). (though this might be possible with pyton standard types). But they don't seem to have everything covered yet, like `str` or `int`

Originally posted by @JoeZiminski in #49 (comment)

@lauraporta
Copy link
Member Author

horrible automatic issue creation, closing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant