Skip to content

Commit

Permalink
remove glos arg from compress func
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Dec 31, 2024
1 parent 994bca4 commit 1d0c164
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 2 additions & 3 deletions pyglossary/compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import logging
import os
from os.path import join
from typing import TYPE_CHECKING, Any
from typing import TYPE_CHECKING

if TYPE_CHECKING:
import io
Expand Down Expand Up @@ -114,8 +114,7 @@ def _zipFileAdd(zf: zipfile.ZipFile, filename: str) -> None:
_zipFileAdd(zf, fname)


# TODO: remove _glos arg
def compress(_glos: Any, filename: str, compression: str) -> str:
def compress(filename: str, compression: str) -> str:
"""
Filename is the existing file path.
Expand Down
6 changes: 1 addition & 5 deletions pyglossary/glossary_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,11 +977,7 @@ def _write(
def _compressOutput(self, filename: str, compression: str) -> str:
from .compression import compress

return compress(
cast("GlossaryType", self),
filename,
compression,
)
return compress(filename, compression)

def _switchToSQLite(
self,
Expand Down

0 comments on commit 1d0c164

Please sign in to comment.