Fix mypy warning in _open()
authorAlexander Popov <alex.popov@linux.com>
Sun, 12 May 2024 13:44:29 +0000 (16:44 +0300)
committerAlexander Popov <alex.popov@linux.com>
Sun, 12 May 2024 13:44:29 +0000 (16:44 +0300)
commitf0541cf75b3a4bf5db3a1812d42e6b47a4bd711b
tree23871b61bb54eec18e1f8eaa4348da9eb637bc7d
parentdfa658fbd02239fa6481f97e6f81a42db3d9f871
Fix mypy warning in _open()

kernel_hardening_checker/__init__.py:28: error: Incompatible types in assignment (expression has type overloaded function, variable has type overloaded function)  [assignment]

Refactor the _open function to fix this and add the type hint by the way.
kernel_hardening_checker/__init__.py