Update cura/CrashHandler.py

Add typing to pruneSensitiveData

Co-Authored-By: Jaime van Kessel <nallath@gmail.com>
This commit is contained in:
Nino van Hooff 2020-02-24 16:14:12 +01:00 committed by GitHub
parent 62dfadecdf
commit 2cd6149ef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ class CrashHandler:
self._createDialog()
@staticmethod
def pruneSensitiveData(obj):
def pruneSensitiveData(obj: Any) -> Any:
if type(obj) is list:
return [CrashHandler.pruneSensitiveData(item) for item in obj]
if type(obj) is dict: