importtypingastfromuziimportContainer,providers_T_PasswordHasher=t.TypeVar("_T_PasswordHasher",bound=t.Callable[[str],str])defhash_password(password:str,salt:str,rounds:int=5000,algo:t.Literal["sha256","sha512","md5"]="md5",):return"hashed_password"container=Container()container[_T_PasswordHasher]=providers.Callable(hash_password,salt="my-secret",rounds=1000,algo="sha256")# or use the helper methodcontainer.callable(_T_PasswordHasher,hash_password,salt="my-secret",rounds=1000,algo="sha256")