From 2acc62f38fb5c674170d1b9d2e97af02c329f586 Mon Sep 17 00:00:00 2001 From: safishamsi Date: Wed, 19 Aug 2026 14:07:48 +0100 Subject: [PATCH] fix(obsidian): make _obsidian_tag docstring a raw string (#2862) The docstring documents the `\w` regex class; as a non-raw string that is an invalid escape sequence (DeprecationWarning now, SyntaxError in a future Python). Mark it raw. --- graphify/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphify/export.py b/graphify/export.py index 19b94478..6ff60715 100644 --- a/graphify/export.py +++ b/graphify/export.py @@ -98,7 +98,7 @@ def backup_if_protected(out_dir: Path) -> "Path | None": return None def _obsidian_tag(name: str) -> str: - """Sanitize a community name for use as an Obsidian tag. + r"""Sanitize a community name for use as an Obsidian tag. Obsidian tags accept letters from any language plus digits, hyphens, underscores and slashes; spaces and most punctuation are not allowed, and a