dangerzone/dangerzone
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
..
gui Update typing hints for Mypy 1.1.1 2023-03-27 15:19:43 +03:00
isolation_provider Update typing hints for Mypy 1.1.1 2023-03-27 15:19:43 +03:00
__init__.py Remove separate dangerzone-container entry point, make CLI work with it, and refactor container code to be more DRY 2021-08-04 16:21:00 -07:00
args.py Update typing hints for Mypy 1.1.1 2023-03-27 15:19:43 +03:00
cli.py Allow users to disable timeouts 2023-02-15 23:48:36 +02:00
document.py Update typing hints for Mypy 1.1.1 2023-03-27 15:19:43 +03:00
errors.py Prevent adding duplicate documents 2022-11-30 12:49:18 +00:00
logic.py Sort OCR languages when loading them from json 2023-03-16 14:23:31 +00:00
settings.py Implement 'move to subdir' logic & store in settings 2022-11-24 11:16:30 +00:00
util.py Separate config dirs from temp dirs 2023-02-17 01:06:44 +02:00