From 77741977a1cafae88c12e21dc30fc483deb302f8 Mon Sep 17 00:00:00 2001 From: Arthur Milchior Date: Mon, 6 Apr 2020 22:45:30 +0200 Subject: [PATCH] make _path static --- pylib/anki/decks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylib/anki/decks.py b/pylib/anki/decks.py index 4e980a5d7..0fb778f61 100644 --- a/pylib/anki/decks.py +++ b/pylib/anki/decks.py @@ -291,7 +291,8 @@ class DeckManager: ancestorPath = self._path(ancestorDeckName) return ancestorPath == self._path(descendantDeckName)[0 : len(ancestorPath)] - def _path(self, name: str) -> Any: + @staticmethod + def _path(name: str) -> Any: return name.split("::") def _basename(self, name: str) -> Any: