mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-05-12 17:18:30 +02:00
fix: [mypy] Addressed mypy errors.
This commit is contained in:
parent
bee5f819d9
commit
2e4f1629fd
2 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ from stegano import tools
|
|||
def hide(
|
||||
image: Union[str, IO[bytes]],
|
||||
message: str,
|
||||
generator: Iterator[int] = None,
|
||||
generator: Union[None, Iterator[int]] = None,
|
||||
shift: int = 0,
|
||||
encoding: str = "UTF-8",
|
||||
auto_convert_rgb: bool = False,
|
||||
|
@ -65,7 +65,7 @@ def hide(
|
|||
|
||||
def reveal(
|
||||
encoded_image: Union[str, IO[bytes]],
|
||||
generator: Iterator[int] = None,
|
||||
generator: Union[None, Iterator[int]] = None,
|
||||
shift: int = 0,
|
||||
encoding: str = "UTF-8",
|
||||
):
|
||||
|
|
|
@ -229,7 +229,7 @@ class TestLSB(unittest.TestCase):
|
|||
lsb.hide(
|
||||
"./tests/sample-files/Lenna.png",
|
||||
message_to_hide,
|
||||
generators.unknown_generator(),
|
||||
generators.unknown_generator(), # type: ignore
|
||||
)
|
||||
|
||||
def tearDown(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue