Skip to main content
function Tips.config_silence
def Tips.config_silence(
*,
user: None | str = None,
repo: None | str = None
) -> typing.Any
The tips the config.json files silence, as a struct: user, the ids in tips.silence of the user’s ~/.aspect/config.json; repo, those of the repository’s .aspect/config.json; and warnings, what is wrong with an invalid one, whose ids are left out, each warning returned once per process. user and repo name other files ("" for none). function Tips.is_tip_id
def Tips.is_tip_id(
id: str,
/
) -> bool
Whether id can be a tip’s id: not empty, and no whitespace or comma (--tips:silence=a,b is one id, so a comma is always a mistake). function Tips.silence
def Tips.silence(
id: str | list[str] | tuple[str, …],
/,
*,
path: None | str = None
) -> typing.Any
Add id (one id, or a list) to tips.silence of the user’s ~/.aspect/config.json (or the file at path) in one write, creating it when missing, under a lock and atomically, every other key kept. None when done, already silenced included; else why not, as a string, and nothing written (one bad id writes none). function Tips.unsilence
def Tips.unsilence(
id: str | list[str] | tuple[str, …],
/,
*,
path: None | str = None
) -> typing.Any
Remove id (one id, or a list) from tips.silence of the user’s ~/.aspect/config.json (or the file at path), as silence writes it. None when done, already absent included; else why not, as a string, and nothing written.