Closed blondon1 closed 6 months ago
Making sure lambda: None fallback for display_func does not silently fail without informing the user
bool(lambda: None) # True
You can consider writing like this:
if env not in env_display_map: raise ValueError(f"Unsupported environment: {env}")
Making sure lambda: None fallback for display_func does not silently fail without informing the user