Closed nhairs closed 2 weeks ago
Per title, move to importlib.util.find_spec over try: import name; catch ImportError.
importlib.util.find_spec
try: import name; catch ImportError
This allows us to check for installed modules (i.e. orjson, msgspec) without actually importing them.
Ref: https://stackoverflow.com/a/14050282/12281814
Fixed in #27
Per title, move to
importlib.util.find_spec
overtry: import name; catch ImportError
.This allows us to check for installed modules (i.e. orjson, msgspec) without actually importing them.
Ref: https://stackoverflow.com/a/14050282/12281814