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

doc: added safe typing to dtcwt #575

Merged
merged 2 commits into from
Mar 19, 2024
Merged

doc: added safe typing to dtcwt #575

merged 2 commits into from
Mar 19, 2024

Conversation

mrava87
Copy link
Collaborator

@mrava87 mrava87 commented Mar 16, 2024

This PR adds typing annotations for dtcwt objects in a safe way, such that it doesn't result in an error if the library is not installed

@mrava87 mrava87 requested a review from cako March 16, 2024 18:48
@cako
Copy link
Collaborator

cako commented Mar 19, 2024

Original was working, but giving some issues in PyLance. To make it happy I just introduced a type variable instead of using a type alias. Should be good to go now!

@mrava87
Copy link
Collaborator Author

mrava87 commented Mar 19, 2024

Good stuff :)

@mrava87 mrava87 merged commit ad3d9cc into PyLops:dev Mar 19, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants