Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion toltec/hooks/install_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
methods and add them to scripts if found.
"""

import inspect
import logging

from typing import Set, Iterable
Expand All @@ -20,7 +21,7 @@
def add_method(name: str, src: str, *depends: Iterable[str]) -> None:
"""Add a method to be automatically added to scripts that use it"""
METHODS[name] = (
src,
inspect.cleandoc(src),
depends,
)

Expand Down