Closed mccalluc closed 3 weeks ago
If the optional install isn't so optional, use import_optional_dependency and get a good error message; If it really is optional, use with optional_dependency, and it will just skip the body if not found.
import_optional_dependency
with optional_dependency
context managers can't skip code. Closing.
If the optional install isn't so optional, use
import_optional_dependency
and get a good error message; If it really is optional, usewith optional_dependency
, and it will just skip the body if not found.