Skip to content

Commit

Permalink
glossary_v2.py: fix type and remove GlossaryExtendedType
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 31, 2024
1 parent f2b57eb commit da03e71
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyglossary/glossary_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@
from .glossary_types import (
EntryListType,
EntryType,
GlossaryExtendedType,
GlossaryType,
RawEntryType,
)
from .plugin_prop import PluginProp
Expand Down Expand Up @@ -298,7 +296,7 @@ def updateEntryFilters(self) -> None:
entryFilters = []
config = self._config

glosArg = cast("GlossaryExtendedType", self)
glosArg = self

for configParam, default, filterClass in entryFiltersRules:
args = []
Expand Down Expand Up @@ -423,7 +421,7 @@ def _loadedEntryGen(self) -> Iterator[EntryType]:

filters = self._entryFiltersExtra
if self.progressbar:
filters.append(ShowProgressBar(cast("GlossaryExtendedType", self))) # pyright: ignore[reportArgumentType]
filters.append(ShowProgressBar(self)) # pyright: ignore[reportArgumentType]

self.progressInit("Writing")
for _entry in self._data:
Expand Down

0 comments on commit da03e71

Please sign in to comment.