Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime typechecking with typeguard #46

Closed
surajpaib opened this issue Mar 5, 2023 · 1 comment
Closed

Runtime typechecking with typeguard #46

surajpaib opened this issue Mar 5, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@surajpaib
Copy link
Collaborator

🚀 Feature Request

I came across this nice library: https://typeguard.readthedocs.io/en/stable/userguide.html
It lets us dynamically type-check for specific functions and modules or call them as needed.

I suggest we replace our existing checking for types with things like is_data_type_supported with this library. We can also see if we want to runtime check every function/class. It would be nice to handle expected behavior through these type checks rather than through explicit checks coded by us.

@surajpaib surajpaib added the enhancement New feature or request label Mar 5, 2023
@ibro45
Copy link
Collaborator

ibro45 commented Jul 12, 2023

What do we think of this now? I think it'd also be useful/replacement for the ensure_dict_schema

@ibro45 ibro45 closed this as completed Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants