Skip to content

Commit

Permalink
add example for ModuleAvailableCache
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jul 11, 2023
1 parent 6e62031 commit 74c3a25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lightning_utilities/core/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ class ModuleAvailableCache:
True
>>> bool(ModuleAvailableCache("unknown_package"))
False
>>> bool(ModuleAvailableCache("unknown.module.path"))
False
"""

def __init__(self, module: str) -> None:
Expand Down

0 comments on commit 74c3a25

Please sign in to comment.