Remove Use Of import_optional_dependency
#1470
Labels
type: discussion
Open for conversation or brainstorming
type:enhancement
Improvements to existing features
Milestone
Is your feature request related to a problem? Please describe.
import_optional_dependency
was introduced in order to safely import optional dependencies while raising a helpful error message. Unfortunately this function removes the type hints on imports, and requires weird import patterns.Describe the solution you'd like
Refactor the optional import dependency mechanism to use more native python functionality. I.e.
Or
Describe alternatives you've considered
Adding type hint support to
import_optional_dependency
. Doesn't seem possible, and is still clunky to use.The text was updated successfully, but these errors were encountered: