Closed johan-bjareholt closed 7 years ago
Should probably make it accept None
as a valid module_name for when we want to get the root log folder.
Also, this bug could probably be found by mypy
ahead of runtime.
Edit: mypy
wouldn't actually be able to typecheck it due to our use of the ensure_returned_path_exists
decorator and mypy's limited support for decorators: https://github.com/python/mypy/issues/3157
Edit 2: Actually managed to fix it by making the decorator typing more strict.
The support for None as a module_name is added in https://github.com/ActivityWatch/aw-core/pull/40