Skip to content

Commit

Permalink
fix newline
Browse files Browse the repository at this point in the history
  • Loading branch information
bachorp committed Dec 15, 2024
1 parent e8dba49 commit 8812c1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lazy_imports/lazy_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,8 @@ def load(module: ModuleType) -> None:
def module_source(name: str, package: Union[str, None]) -> str:
"""Returns the source code of the module `name`.
If `name` is relative, `package` must be supplied."""
If `name` is relative, `package` must be supplied.
"""
spec = importlib.util.find_spec(name, package)
if spec is None:
raise ImportError(f"could not find module {name}{'' if package is None else f' in package {package}'}")
Expand Down

0 comments on commit 8812c1b

Please sign in to comment.