dangerzone/tests
Alex Pyrgiotis 8b846820d2
Update typing hints for Mypy 1.1.1
Due to a bump in our Python dependencies, we now install Mypy 1.1.1
instead of 0.982. This change triggered the following errors:

* Incompatible default for argument <a> (default has type
  None, argument has type <t>):

  Mypy further explains here that PEP 484 prohibits implicit Optional,
  so we need to make these types explicit Optional.

* Unused "type: ignore" comment, use narrower [method-assign] instead of
  [assignment]:

  Mypy has specialized some of its lints, meaning that we should switch
  to the newer variants.

Also, it detected several other small inconsistencies. We fix all of
these errors in this commit.
2023-03-27 15:19:43 +03:00
..
test_docs Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
__init__.py Sample PDFs: rename to include file format in name 2023-02-09 09:02:33 +00:00
test_cli.py Update typing hints for Mypy 1.1.1 2023-03-27 15:19:43 +03:00
test_document.py Add unit tests to cover archive-related methods 2022-11-24 11:16:34 +00:00
test_util.py tests: Run Mypy against tests 2022-10-25 19:09:23 +03:00