From 3d931b11f99a571d1823367bfc1b0421907dc49d Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 26 Apr 2022 02:18:43 -0400 Subject: [PATCH] Island: Fix incorrect type hint in AuthenticationService --- .../cc/services/authentication/authentication_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/services/authentication/authentication_service.py b/monkey/monkey_island/cc/services/authentication/authentication_service.py index ddb096215..93fbf32f4 100644 --- a/monkey/monkey_island/cc/services/authentication/authentication_service.py +++ b/monkey/monkey_island/cc/services/authentication/authentication_service.py @@ -1,3 +1,5 @@ +from pathlib import Path + import bcrypt from common.utils.exceptions import ( @@ -23,7 +25,7 @@ class AuthenticationService: # static/singleton hybrids. At the moment, this requires invasive refactoring that's # not a priority. @classmethod - def initialize(cls, data_dir: str, user_datastore: IUserDatastore): + def initialize(cls, data_dir: Path, user_datastore: IUserDatastore): cls.DATA_DIR = data_dir cls.user_datastore = user_datastore