From 85d0aa213cfd6718d69115b82ada12bc5db56253 Mon Sep 17 00:00:00 2001 From: Saeed Rasooli Date: Fri, 3 Feb 2023 06:57:35 +0330 Subject: [PATCH] fix type for Glossary.addEntryObj, #424 --- pyglossary/glossary.py | 2 +- pyglossary/glossary_type.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyglossary/glossary.py b/pyglossary/glossary.py index c4cfa6ca9..c0788b4d5 100644 --- a/pyglossary/glossary.py +++ b/pyglossary/glossary.py @@ -469,7 +469,7 @@ def wordTitleStr( def getConfig(self, name: str, default: "Optional[str]") -> "Optional[str]": return self._config.get(name, default) - def addEntryObj(self, entry: Entry) -> None: + def addEntryObj(self, entry: "BaseEntry") -> None: self._data.append(entry) def newEntry( diff --git a/pyglossary/glossary_type.py b/pyglossary/glossary_type.py index 9a3428789..0e8f4b471 100644 --- a/pyglossary/glossary_type.py +++ b/pyglossary/glossary_type.py @@ -93,7 +93,7 @@ def wordTitleStr( def getConfig(self, name: str, default: "Optional[str]") -> "Optional[str]": raise NotImplementedError - def addEntryObj(self, entry: "Entry") -> None: + def addEntryObj(self, entry: "BaseEntry") -> None: raise NotImplementedError def newEntry(self, word: str, defi: str, defiFormat: str = "") -> "Entry":